aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorskv <skv@FreeBSD.org>2004-12-30 01:20:00 +0800
committerskv <skv@FreeBSD.org>2004-12-30 01:20:00 +0800
commitfe1da90690c12ce1b241c8b484e531e4fbf5be85 (patch)
tree2b699f8e2d0ef9c8904e896f2d97e2a4219e497f
parent1145db63b565b84e23dc2effc97f602a19122ab7 (diff)
downloadfreebsd-ports-gnome-fe1da90690c12ce1b241c8b484e531e4fbf5be85.tar.gz
freebsd-ports-gnome-fe1da90690c12ce1b241c8b484e531e4fbf5be85.tar.zst
freebsd-ports-gnome-fe1da90690c12ce1b241c8b484e531e4fbf5be85.zip
Fix packaging on broken ExtUtils::MakeMaker
-rw-r--r--textproc/p5-XML-SAX-Machines/Makefile8
-rw-r--r--textproc/p5-XML-SAX-Machines/files/500503-Makefile.PL12
2 files changed, 19 insertions, 1 deletions
diff --git a/textproc/p5-XML-SAX-Machines/Makefile b/textproc/p5-XML-SAX-Machines/Makefile
index 2ca05d69b03c..bfa9c91d0cdf 100644
--- a/textproc/p5-XML-SAX-Machines/Makefile
+++ b/textproc/p5-XML-SAX-Machines/Makefile
@@ -34,4 +34,10 @@ post-install:
${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500800
+EXTRA_PATCHES= ${PATCHDIR}/500503-Makefile.PL
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-XML-SAX-Machines/files/500503-Makefile.PL b/textproc/p5-XML-SAX-Machines/files/500503-Makefile.PL
new file mode 100644
index 000000000000..24ed3894a9ae
--- /dev/null
+++ b/textproc/p5-XML-SAX-Machines/files/500503-Makefile.PL
@@ -0,0 +1,12 @@
+--- Makefile.PL.orig Wed Dec 29 20:16:15 2004
++++ Makefile.PL Wed Dec 29 20:18:39 2004
+@@ -49,3 +49,9 @@
+ install_site_config:
+ $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) -I$(INST_LIB) -I$(INSTALLSITELIB) -MXML::SAX::Machines::ConfigHelper -we 'XML::SAX::Machines::ConfigHelper::_write_site_config_if_absent(shift)' $(INSTALLSITELIB)
+ POSTAMBLE_END
++
++sub MY::manifypods {
++ package MY; my $self=shift;
++ $self->{MAN3PODS}->{'lib/XML/SAX/Machines/ConfigHelper.pm'}='$(INST_MAN3DIR)/XML::SAX::Machines::ConfigHelper.$(MAN3EXT)';
++ $self->SUPER::manifypods(@_);
++}