X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=f0756cda07229b5b0638e489e2d9517f086a7b19;hb=a559205a7d18e6fe2476d0710b253e6674804d9a;hp=cb6139f5cc45fb4ed088850f620ea92794434daa;hpb=1edfdf1c2c930faea9d3b5e9fed40928fec420b0;p=gitmo%2FMoose.git diff --git a/Makefile.PL b/Makefile.PL index cb6139f..f0756cd 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,28 +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.46'; -requires 'Sub::Name' => '0.02'; -requires 'Sub::Exporter' => '0.972'; -requires 'B'; + ExtUtils::MakeMaker::Dist::Zilla::Develop->import(); +} -# things the tests need -build_requires 'Test::More' => '0.62'; -build_requires 'Test::Exception' => '0.21'; -build_requires 'Test::LongString'; +use lib 'inc'; -tests('t/*.t t/*/*.t'); +use MMHelper; +use MyInline; -WriteAll(); +system( $^X, 'author/extract-inline-tests', '--quiet' ); +eval MMHelper::my_package_subs(); + +WriteMakefile( + NAME => 'Moose', + test => { TESTS => 't/*.t t/*/*.t' }, + CCFLAGS => MMHelper::ccflags_static('dev'), + MMHelper::mm_args(), +);