X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=8a51d812cc2c514b4ef6460aa314f9f97f3dc39b;hb=ec25cea764afbf3b9802c6833fc0b7bca960f94b;hp=e2aec530a294e84a6e0c29dd2cdaf5120b473886;hpb=323ae557f7cdab8861315cd7fc67dd31b26dbfcf;p=p5sagit%2FDevel-Declare.git diff --git a/Makefile.PL b/Makefile.PL index e2aec53..8a51d81 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,13 +1,39 @@ -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'; -requires 'Scalar::Util'; -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::Warn'; + +repository 'git://github.com/rafl/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, );