X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=2a35240bf998d6d1880b3782170827830ce343c8;hb=f42e9bcb30295ed63ffd9154a6cf442f8f2e49a9;hp=ea6d149db1c7b76f3a5a5bb3d9a67435dfda04e2;hpb=0d267aac56d1cdbd4358e92fae9244d71258d58a;p=p5sagit%2FDevel-Declare.git diff --git a/Makefile.PL b/Makefile.PL index ea6d149..2a35240 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -2,14 +2,30 @@ use inc::Module::Install 0.67; use 5.008001; +use ExtUtils::Depends; + name 'Devel-Declare'; all_from 'lib/Devel/Declare.pm'; requires 'Scalar::Util'; -build_requires 'Test::More'; +requires 'B::Hooks::OP::Check' => '0.10'; +requires 'B::Hooks::EndOfScope'; +requires 'Sub::Name'; + +build_requires 'B::Hooks::OP::Check' => '0.10'; + +configure_requires 'ExtUtils::Depends'; +configure_requires 'B::Hooks::OP::Check' => '0.10'; + +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' - } + }, + $pkg->get_makefile_vars, );