X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=f0756cda07229b5b0638e489e2d9517f086a7b19;hb=a559205a7d18e6fe2476d0710b253e6674804d9a;hp=55eb1ac25ad3c9e5bbf58486c8b81abbc30496b4;hpb=3285fae9bbb607d017c000b71fa138def7fb37d2;p=gitmo%2FMoose.git diff --git a/Makefile.PL b/Makefile.PL index 55eb1ac..f0756cd 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,30 +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 'Scalar::Util' => $win32 ? '1.17' : '1.18'; -requires 'Carp'; -requires 'Class::MOP' => '0.52'; -requires 'Sub::Name' => '0.02'; -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('t/*.t t/*/*.t'); +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(), +);