X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=dd795f6d8afc751d2a8a8ee23820d48f3a6d162d;hb=mxd_parameterized_bug;hp=b41dbd148b25d061fbeb4e04626aa1092635bd3d;hpb=b9a35c84131e13830d041a7af60b245d272abda4;p=p5sagit%2FDevel-Declare.git diff --git a/Makefile.PL b/Makefile.PL index b41dbd1..dd795f6 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,20 +1,38 @@ -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'; -build_requires 'B::Hooks::EndOfScope'; +requires 'Scalar::Util' => 1.11; # set_prototype appeared in this version +requires 'B::Hooks::OP::Check' => '0.18'; +requires 'B::Hooks::EndOfScope' => '0.05'; +requires 'Sub::Name'; + +build_requires 'B::Hooks::OP::Check' => '0.18'; + +# 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.18'; + +test_requires 'Test::More' => '0.88'; + +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, );