X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=0b003b746bd78b7939b48c7a53ad3921a306c087;hb=d5257287196a43aabbde52e3c09581d5da24b50d;hp=315aa133594dbffa2fa670c340b8204fb6ef9c5e;hpb=21c1861888f69168d6ade4690b79b806752f56d8;p=perl%2Fmodules%2Fre-engine-Hooks.git diff --git a/Makefile.PL b/Makefile.PL index 315aa13..0b003b7 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -16,6 +16,16 @@ my %PREREQ_PM = ( 'DynaLoader' => 0, ); +my %BUILD_REQUIRES = ( + 'ExtUtils::Depends' => 0, + 'ExtUtils::MakeMaker' => 0, + 'File::Spec' => 0, + 'POSIX' => 0, + 'Test::More' => 0, + 'blib' => 0, + %PREREQ_PM, +); + my %META = ( configure_requires => { 'ExtUtils::Depends' => 0, @@ -23,23 +33,37 @@ my %META = ( 'File::Spec' => 0, }, build_requires => { - 'ExtUtils::Depends' => 0, - 'ExtUtils::MakeMaker' => 0, - 'File::Spec' => 0, - 'POSIX' => 0, - 'Test::More' => 0, - 'blib' => 0, - %PREREQ_PM, + %BUILD_REQUIRES, }, dynamic_config => 1, resources => { - bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist", + bugtracker => "http://rt.cpan.org/Dist/Display.html?Name=$dist", homepage => "http://search.cpan.org/dist/$dist/", license => 'http://dev.perl.org/licenses/', repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git", }, ); +my $latest_dev_rev = 19; + +sub is_outdated_dev_perl { + my ($rev) = "$]" =~ /^5\.([0-9]{2}[13579])/; + + return unless defined $rev; + + return $rev < $latest_dev_rev; +} + +if (is_outdated_dev_perl) { + print STDERR < $file, ABSTRACT_FROM => $file, PL_FILES => {}, + BUILD_REQUIRES => \%BUILD_REQUIRES, PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => '5.010001', META_MERGE => \%META, dist => { - PREOP => "pod2text $file > \$(DISTVNAME)/README", + PREOP => "pod2text -u $file > \$(DISTVNAME)/README", COMPRESS => 'gzip -9f', SUFFIX => 'gz' }, XSPROTOARG => '-noprototypes',