X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=6eb0b0f9269accccd90b3b2898c9119d78f1aede;hb=f6130c6c162cbee417f8defc222f8b8eadf22b8a;hp=e8eb490eebfe2fdcb693863c1f145430582fca0a;hpb=477f1f61a1b71a5518d22a9fdae005251d78c576;p=gitmo%2FMoose.git diff --git a/Makefile.PL b/Makefile.PL index e8eb490..6eb0b0f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,73 +1,32 @@ use strict; use warnings; -use inc::Module::Install; -check_conflicts(); +use Config; +use ExtUtils::MakeMaker; -name 'Moose'; -all_from 'lib/Moose.pm'; -license 'perl'; +use lib 'inc'; -# prereqs -requires 'perl' => '5.008'; -requires 'Scalar::Util' => '1.19'; -requires 'Carp'; -requires 'Class::MOP' => '0.68'; -requires 'List::MoreUtils'; -requires 'Sub::Exporter' => '0.972'; -requires 'Task::Weaken' => '0'; +use MMHelper; +use MyInline; -# only used by oose.pm, not Moose.pm :P -requires 'Filter::Simple' => '0'; +warn <<'EOF'; -# things the tests need -build_requires 'Test::More' => '0.77'; -build_requires 'Test::Exception' => '0.21'; -build_requires 'Test::LongString'; + ********************************* WARNING ********************************** -tests_recursive(); + This module uses Dist::Zilla for development. This Makefile.PL will let you + run the tests, but you are encouraged to install Dist::Zilla and the needed + plugins if you intend on doing any serious hacking. -WriteAll(); - -# Use the cpan-smolder-stable script in the Moose svn root to figure -# out what on CPAN will break with the latest Moose, then update this -# before a release. -sub check_conflicts { - my %conflicts = ( - 'MooseX::Singleton' => '0.11', - 'MooseX::Params::Validate' => '0.05', - 'Fey::ORM' => '0.10', - ); - - my $found = 0; - for my $mod ( sort keys %conflicts ) { - eval "require $mod"; - next if $@; - - my $installed = $mod->VERSION(); - if ( $installed le $conflicts{$mod} ) { - - print <<"EOF"; - -*** - This version of Moose conflicts with the version of - $mod ($installed) you have installed. - - You will need to upgrade $mod after installing - this version of Moose. -*** + **************************************************************************** EOF - $found = 1; - } - } - - return unless $found; +system( $^X, 'author/extract-inline-tests', '--quiet' ); - # More or less copied from Module::Build - return if $ENV{PERL_MM_USE_DEFAULT}; - return unless -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT)); +eval MMHelper::my_package_subs(); - sleep 4; -} +WriteMakefile( + NAME => 'Moose', + test => { TESTS => 't/*.t t/*/*.t' }, + MMHelper::mm_args('dev'), +);