aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-ExtUtils-PkgConfig
diff options
context:
space:
mode:
authorskv <skv@FreeBSD.org>2003-11-03 02:15:37 +0800
committerskv <skv@FreeBSD.org>2003-11-03 02:15:37 +0800
commit4a7b3a4ddb99e23029ae4a9a5197682443837e3d (patch)
tree7057f02a7da18f18c16bc415d84802cf14b5b918 /devel/p5-ExtUtils-PkgConfig
parent7d938847e4f43b6a1098651fd64898a2b2522ec6 (diff)
downloadfreebsd-ports-gnome-4a7b3a4ddb99e23029ae4a9a5197682443837e3d.tar.gz
freebsd-ports-gnome-4a7b3a4ddb99e23029ae4a9a5197682443837e3d.tar.zst
freebsd-ports-gnome-4a7b3a4ddb99e23029ae4a9a5197682443837e3d.zip
Unbreak build:
add workaround for fucking /(config|setup)\.*\.pm$/ in MM_Unix.pm
Diffstat (limited to 'devel/p5-ExtUtils-PkgConfig')
-rw-r--r--devel/p5-ExtUtils-PkgConfig/Makefile10
-rw-r--r--devel/p5-ExtUtils-PkgConfig/files/500600-Makefile.PL18
2 files changed, 25 insertions, 3 deletions
diff --git a/devel/p5-ExtUtils-PkgConfig/Makefile b/devel/p5-ExtUtils-PkgConfig/Makefile
index 8189bf1f397f..1bd32159438d 100644
--- a/devel/p5-ExtUtils-PkgConfig/Makefile
+++ b/devel/p5-ExtUtils-PkgConfig/Makefile
@@ -17,8 +17,6 @@ COMMENT= Simplistic interface to pkg-config
RUN_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
-BROKEN= Broken pkg-plist
-
PERL_CONFIGURE= yes
MAN3= ExtUtils::PkgConfig.3
@@ -26,4 +24,10 @@ MAN3= ExtUtils::PkgConfig.3
post-patch:
@${PERL} -pi -e '$$_="" if $$.==1' ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500800
+EXTRA_PATCHES= ${PATCHDIR}/500600-Makefile.PL
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-ExtUtils-PkgConfig/files/500600-Makefile.PL b/devel/p5-ExtUtils-PkgConfig/files/500600-Makefile.PL
new file mode 100644
index 000000000000..6f5ed8f7cd27
--- /dev/null
+++ b/devel/p5-ExtUtils-PkgConfig/files/500600-Makefile.PL
@@ -0,0 +1,18 @@
+--- Makefile.PL.orig Wed Sep 17 08:07:33 2003
++++ Makefile.PL Sun Nov 2 21:13:30 2003
+@@ -45,4 +45,14 @@
+ rpmbuild -ba --define \"_topdir $cwd/rpms\" perl-\$(DISTNAME).spec
+ "
+ }
+-package MAIN;
++sub manifypods {
++ my $self=shift;
++ $self->{MAN3PODS}->{'lib/ExtUtils/PkgConfig.pm'}='$(INST_MAN3DIR)/ExtUtils::PkgConfig.$(MAN3EXT)';
++ $self->SUPER::manifypods(@_);
++}
++sub constants {
++ my $self=shift;
++ $self->{MAN3PODS}->{'lib/ExtUtils/PkgConfig.pm'}='$(INST_MAN3DIR)/ExtUtils::PkgConfig.$(MAN3EXT)';
++ $self->SUPER::constants(@_);
++}
++