aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2005-10-11 21:29:41 +0800
committererwin <erwin@FreeBSD.org>2005-10-11 21:29:41 +0800
commit70b914f3d5aad35b45b2cd0d3b6db76a2516fc17 (patch)
treeffffd431ae71029d19057faf815cae71aab2355a
parentcb704309893307144e05dbfbfadb4146992b728c (diff)
downloadfreebsd-ports-gnome-70b914f3d5aad35b45b2cd0d3b6db76a2516fc17.tar.gz
freebsd-ports-gnome-70b914f3d5aad35b45b2cd0d3b6db76a2516fc17.tar.zst
freebsd-ports-gnome-70b914f3d5aad35b45b2cd0d3b6db76a2516fc17.zip
On newer versions of perl (>5.6), this port installs some
extra files. Deinstall them depending on the installed per version. Prodded by: kris
-rw-r--r--devel/p5-Locale-libintl/Makefile12
-rw-r--r--devel/p5-Locale-libintl/pkg-plist5
2 files changed, 14 insertions, 3 deletions
diff --git a/devel/p5-Locale-libintl/Makefile b/devel/p5-Locale-libintl/Makefile
index ca5e92646989..2ab6c41b4aef 100644
--- a/devel/p5-Locale-libintl/Makefile
+++ b/devel/p5-Locale-libintl/Makefile
@@ -19,8 +19,6 @@ COMMENT= Internationalization library for Perl
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/File/Spec.pm:${PORTSDIR}/devel/p5-PathTools
RUN_DEPENDS= ${BUILD_DEPENDS}
-BROKEN= Incomplete pkg-plist
-
PERL_CONFIGURE= yes
USE_GETTEXT= yes
@@ -171,4 +169,12 @@ MAN3= Locale::RecodeData::IBM862.3 \
Locale::RecodeData::IBM290.3 \
Locale::RecodeData::IBM903.3 \
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} > 500600
+PLIST_SUB= NEWPERL=""
+.else
+PLIST_SUB= NEWPERL="@comment "
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Locale-libintl/pkg-plist b/devel/p5-Locale-libintl/pkg-plist
index f25194a37a60..417b9ec13509 100644
--- a/devel/p5-Locale-libintl/pkg-plist
+++ b/devel/p5-Locale-libintl/pkg-plist
@@ -145,6 +145,11 @@
%%SITE_PERL%%/Locale/Recode.pm
%%SITE_PERL%%/Locale/gettext_xs.pod
%%SITE_PERL%%/Locale/Messages.pm
+%%NEWPERL%%%%SITE_PERL%%/Locale/gettext_xs.pm
+%%NEWPERL%%%%SITE_PERL%%/mach/auto/Locale/gettext_xs/gettext_xs.so
+%%NEWPERL%%%%SITE_PERL%%/mach/auto/Locale/gettext_xs/gettext_xs.bs
+%%NEWPERL%%@dirrm %%SITE_PERL%%/mach/auto/Locale/gettext_xs
+%%NEWPERL%%@unexec rmdir %D/%%SITE_PERL%%/mach/auto/Locale
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/libintl-perl
@dirrm %%SITE_PERL%%/Locale/RecodeData
@dirrm %%SITE_PERL%%/Locale/Recode