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 <perl@profvince.com>',
- 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 <perl@profvince.com>',
+ LICENSE => 'perl',
+ VERSION_FROM => 'lib/Regexp/Wildcards.pm',
+ ABSTRACT_FROM => 'lib/Regexp/Wildcards.pm',
+ PL_FILES => {},
+ PREREQ_PM => {
+ 'Carp' => 0,
+ '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 Debian_CPANTS.txt' },
);