X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=b965a355ae0b81e8b8ae6674ec5e90ecc75ab0f1;hb=d5a4de482c43bead8a87003b9fe640d479a9f1a3;hp=09df2f657d6203d63468b721d7acb1f94478987f;hpb=94caac6e9e3af7e002f7eef2bed2e2bf2bb6d2a8;p=p5sagit%2FDevel-Declare.git diff --git a/Makefile.PL b/Makefile.PL index 09df2f6..b965a35 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,12 +1,40 @@ -use inc::Module::Install 0.67; +use inc::Module::Install 0.91; + +use 5.008001; + +use ExtUtils::Depends; name 'Devel-Declare'; all_from 'lib/Devel/Declare.pm'; -build_requires 'Test::More'; +requires 'Scalar::Util' => 1.11; # set_prototype appeared in this version +requires 'B::Hooks::OP::Check' => '0.19'; +requires 'B::Hooks::EndOfScope' => '0.05'; +requires 'Sub::Name'; + +build_requires 'B::Hooks::OP::Check' => '0.19'; + +# minimum version that works on Win32+gcc +configure_requires 'ExtUtils::Depends' => 0.302; + +# minimum version that depends on ExtUtils::Depends 0.302 +configure_requires 'B::Hooks::OP::Check' => '0.19'; + +test_requires 'Test::More' => '0.88'; +test_requires 'Test::Requires' => '0'; + +# r/w: p5sagit@git.shadowcat.co.uk:Devel-Declare.git +repository 'git://git.shadowcat.co.uk/p5sagit/Devel-Declare.git'; + +postamble(<<'EOM'); +$(OBJECT) : stolen_chunk_of_toke.c +EOM + +my $pkg = ExtUtils::Depends->new('Devel::Declare', 'B::Hooks::OP::Check'); WriteMakefile( dist => { - PREOP => 'pod2text lib/Devel/Declare.pm >$(DISTVNAME)/README' - } + PREOP => 'pod2text lib/Devel/Declare.pm >README' + }, + $pkg->get_makefile_vars, );