X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=b7a73c3b08ac8d14209db068911eff6a7477b4f1;hb=a1d84fdc64b3007b8dd1560c5b6b123554a06ea5;hp=e02d953bfa7345d49a1026e9df5d3e0e99948133;hpb=eafc1dab0ebd73e592fda42a9db18d6d4a64c96b;p=perl%2Fmodules%2FRegexp-Wildcards.git diff --git a/Makefile.PL b/Makefile.PL index e02d953..b7a73c3 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -2,17 +2,36 @@ use strict; use warnings; use ExtUtils::MakeMaker; +my $BUILD_REQUIRES = { + 'ExtUtils::MakeMaker' => 0, + 'Test::More' => 0, +}; + +sub build_req { + my $tometa = ' >> $(DISTVNAME)/META.yml;'; + my $build_req = 'echo "build_requires:" ' . $tometa; + foreach my $mod ( sort { lc $a cmp lc $b } keys %$BUILD_REQUIRES ) { + my $ver = $BUILD_REQUIRES->{$mod}; + $build_req .= sprintf 'echo " %-30s %s" %s', "$mod:", $ver, $tometa; + } + return $build_req; +} + WriteMakefile( - NAME => 'Regexp::Wildcards', - AUTHOR => 'Vincent Pit ', - LICENSE => 'perl', - VERSION_FROM => 'lib/Regexp/Wildcards.pm', - ABSTRACT_FROM => 'lib/Regexp/Wildcards.pm', - PL_FILES => {}, - PREREQ_PM => { - 'Test::More' => 0, + NAME => 'Regexp::Wildcards', + AUTHOR => 'Vincent Pit ', + LICENSE => 'perl', + VERSION_FROM => 'lib/Regexp/Wildcards.pm', + ABSTRACT_FROM => 'lib/Regexp/Wildcards.pm', + PL_FILES => {}, + PREREQ_PM => { + 'Exporter' => 0, 'Text::Balanced' => 0, }, - dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, - clean => { FILES => 'Regexp-Wildcards-*' }, + dist => { + PREOP => 'pod2text lib/Regexp/Wildcards.pm > $(DISTVNAME)/README; ' + . build_req, + COMPRESS => 'gzip -9f', SUFFIX => 'gz' + }, + clean => { FILES => 'Regexp-Wildcards-* *.gcov *.gcda *.gcno cover_db' }, );