From f689ad3712ab49cc145f08ba0540043ee9ce5cdc Mon Sep 17 00:00:00 2001 From: David Mitchell Date: Wed, 3 Dec 2014 16:55:46 +0000 Subject: 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. --- make_ext.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'make_ext.pl') 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; -- cgit v1.2.1