X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=f0756cda07229b5b0638e489e2d9517f086a7b19;hb=d6e927d0ca41fc1cf21ab9790c8c2eb6bc42a6a0;hp=c9c054400eb1683cfb3c68c77da7168718fce569;hpb=f3c4e20e4056cb645da9fc64f0a248579caa70f3;p=gitmo%2FMoose.git diff --git a/Makefile.PL b/Makefile.PL index c9c0544..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.47'; -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(), +);