X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=54f4ca6b98c1a81e40ebe1efb07d4cb7576fb7aa;hb=37c7d2c479b1a6a10e0791c79dfe40e6094545c7;hp=78d08c1843ec01a209259a8c59ad88699bf25eb1;hpb=284dc4395a9a68cf167f7e2f28dc5236208c61de;p=gitmo%2FMoose.git diff --git a/Makefile.PL b/Makefile.PL index 78d08c1..54f4ca6 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,19 +1,19 @@ use strict; use warnings; -use inc::Module::Install 0.91; -use Module::Install::ExtraTests; +use inc::Module::Install 0.98; use Module::Install::AuthorRequires; -use 5.008001; +use 5.008003; +check_broken_extratests(); check_conflicts(); name 'Moose'; -perl_version '5.008001'; +perl_version '5.008003'; all_from 'lib/Moose.pm'; license 'perl'; requires 'Carp'; -requires 'Class::MOP' => '0.98'; +requires 'Class::MOP' => '1.02'; requires 'Data::OptList' => '0'; requires 'List::MoreUtils' => '0.12'; requires 'Scalar::Util' => '1.19'; @@ -32,16 +32,18 @@ author_requires 'Test::Spelling'; author_requires 'Test::Pod::Coverage'; author_requires 'Test::NoTabs'; -if ( $Module::Install::AUTHOR || $ENV{IS_MAINTAINER} ) { +if ( is_maintainer() ) { system( $^X, 'author/extract-inline-tests' ); } -extra_tests(); tests_recursive(); +repository 'git://git.moose.perl.org/Moose.git'; +add_metadata(x_authority => 'cpan:STEVAN'); + WriteAll(); -# Use the cpan-smolder-stable script in the Moose svn root to figure +# Use the xt/author/test-my-dependents.t test to figure # out what on CPAN will break with the latest Moose, then update this # before a release. sub check_conflicts { @@ -54,13 +56,14 @@ sub check_conflicts { 'MooseX::Attribute::Prototype' => '0.10', 'MooseX::ClassAttribute' => '0.09', 'MooseX::MethodAttributes' => '0.18', - 'MooseX::NonMoose' => '0.05', + 'MooseX::NonMoose' => '0.07', 'MooseX::Params::Validate' => '0.05', 'MooseX::Role::Cmd' => '0.06', 'MooseX::Role::WithOverloading' => '0.04', 'MooseX::Singleton' => '0.19', 'MooseX::StrictConstructor' => '0.07', 'MooseX::Types' => '0.19', + 'Pod::Elemental' => '0.093280', 'namespace::autoclean' => '0.08', 'KiokuDB' => '0.41', ); @@ -97,3 +100,19 @@ EOF sleep 4; } + +sub is_maintainer { + return $Module::Install::AUTHOR || $ENV{IS_MAINTAINER}; +} + +sub check_broken_extratests { + return unless is_maintainer(); + + if ( exists $Module::Install::ExtraTests::{VERSION} && Module::Install::ExtraTests->VERSION < 0.007 ) { + print STDERR <<'EOR'; +You have a broken version of Module::Install::ExtraTests installed. +Please upgrade to version 0.007 or newer and re-run Makefile.PL +EOR + exit 0; + } +}