X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=f0756cda07229b5b0638e489e2d9517f086a7b19;hb=dfa11004a2d5ffded0323bb85317ed444a90d2ac;hp=11bef517c0aa19c96f0584e08bc140e5b49037ee;hpb=e606ae5f848070d889472329819c95f5ba763ca3;p=gitmo%2FMoose.git diff --git a/Makefile.PL b/Makefile.PL index 11bef51..f0756cd 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,31 +1,35 @@ use strict; use warnings; -use inc::Module::Install; -name 'Moose'; -all_from 'lib/Moose.pm'; -license 'perl'; +BEGIN { + eval { require ExtUtils::MakeMaker::Dist::Zilla::Develop }; + if ($@) { + warn + "You need to install ExtUtils::MakeMaker::Dist::Zilla::Develop to run this Makefile.PL\n"; + exit 1; + } -# Scalar::Util 1.18 doesn't work on Windows -my $win32 = !! ( $^O eq 'Win32' or $^O eq 'cygwin' ); + eval { require Test::Inline }; + if ($@) { + warn "You need to install Test::Inline to run this Makefile.PL\n"; + exit 1; + } -# prereqs -requires 'perl' => '5.008'; -requires 'Scalar::Util' => $win32 ? '1.17' : '1.18'; -requires 'Carp'; -requires 'Class::MOP' => '0.65'; -requires 'List::MoreUtils'; -requires 'Sub::Exporter' => '0.972'; + ExtUtils::MakeMaker::Dist::Zilla::Develop->import(); +} -# only used by oose.pm, not Moose.pm :P -requires 'Filter::Simple' => '0'; +use lib 'inc'; -# things the tests need -build_requires 'Test::More' => '0.62'; -build_requires 'Test::Exception' => '0.21'; -build_requires 'Test::LongString'; +use MMHelper; +use MyInline; -tests_recursive; +system( $^X, 'author/extract-inline-tests', '--quiet' ); -WriteAll(); +eval MMHelper::my_package_subs(); +WriteMakefile( + NAME => 'Moose', + test => { TESTS => 't/*.t t/*/*.t' }, + CCFLAGS => MMHelper::ccflags_static('dev'), + MMHelper::mm_args(), +);