X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=f0756cda07229b5b0638e489e2d9517f086a7b19;hb=dfa11004a2d5ffded0323bb85317ed444a90d2ac;hp=5a940248ce54e2d63292db36648b4a386ca96084;hpb=688fcdda5c37b86784f8a923b636bdbbf47181d5;p=gitmo%2FMoose.git diff --git a/Makefile.PL b/Makefile.PL index 5a94024..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.53'; -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(), +);