summaryrefslogtreecommitdiff
path: root/make_ext.pl
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2014-12-03 16:55:46 +0000
committerDavid Mitchell <davem@iabyn.com>2014-12-03 17:01:49 +0000
commitf689ad3712ab49cc145f08ba0540043ee9ce5cdc (patch)
tree50da4badd3373e735f084411d5b89d31a1aa7897 /make_ext.pl
parent95a2e48fd5a4c8e221149d1c1de129f30eaeadce (diff)
downloadperl-f689ad3712ab49cc145f08ba0540043ee9ce5cdc.tar.gz
special-case Pod::Checker ABSTRACT
Currently the auto-generated Makefile.PL for Pod::Checker raises a warning with MakeMaker, since the abstract in the pod isn't parseable. Also, the package's own Makefile.PL doesn't work with blead (I didn't exactly understand what the issue was, but porting/dual_lift.t complained about missing utilities). So the most expedient hack is to special-case the ABSTRACT in make_ext.pl.
Diffstat (limited to 'make_ext.pl')
-rw-r--r--make_ext.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/make_ext.pl b/make_ext.pl
index a237cb6cc4..12926f8f4f 100644
--- a/make_ext.pl
+++ b/make_ext.pl
@@ -381,6 +381,17 @@ sub build_extension {
($value = $fromname) =~ s/\.pm\z/.pod/;
$value = $fromname unless -e $value;
}
+
+ if ($mname eq 'Pod::Checker') {
+ # the abstract in the .pm file is unparseable by MM,
+ # so special-case it. We can't use the package's own
+ # Makefile.PL, as it doesn't handle the executable scripts
+ # right.
+ $key = 'ABSTRACT';
+ # this is copied from the CPAN Makefile.PL v 1.171
+ $value = 'Pod::Checker verifies POD documentation contents for compliance with the POD format specifications';
+ }
+
open my $fh, '>', 'Makefile.PL'
or die "Can't open Makefile.PL for writing: $!";
printf $fh <<'EOM', $0, $mname, $fromname, $key, $value;