aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2015-04-16 20:37:57 +0800
committermat <mat@FreeBSD.org>2015-04-16 20:37:57 +0800
commitd9533c4e4735eeb94f9973fdff277b3e45b00b7e (patch)
treefbadd972411ed32c8971a85e047b89949fc96f18
parentbd428b1e40b75df39a1031ef3fa0e3dd49a49b07 (diff)
downloadfreebsd-ports-gnome-d9533c4e4735eeb94f9973fdff277b3e45b00b7e.tar.gz
freebsd-ports-gnome-d9533c4e4735eeb94f9973fdff277b3e45b00b7e.tar.zst
freebsd-ports-gnome-d9533c4e4735eeb94f9973fdff277b3e45b00b7e.zip
Perl 5.21.1 has the same Encode, so trim the script installed by this and its
man page. Sponsored by: Absolight
-rw-r--r--converters/p5-Encode/Makefile11
-rw-r--r--converters/p5-Encode/pkg-plist2
2 files changed, 10 insertions, 3 deletions
diff --git a/converters/p5-Encode/Makefile b/converters/p5-Encode/Makefile
index d6b1bc426444..b6ca506b774f 100644
--- a/converters/p5-Encode/Makefile
+++ b/converters/p5-Encode/Makefile
@@ -17,7 +17,16 @@ LICENSE_COMB= dual
USE_PERL5= configure
USES= perl5
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 502101
+PLIST_FILES+= bin/encguess man/man1/encguess.1.gz
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|bin/enc2xs||; s|bin/piconv||' ${WRKSRC}/Makefile.PL
+.if ${PERL_LEVEL} >= 502101
+ @${REINPLACE_CMD} -e 's|bin/encguess||' ${WRKSRC}/Makefile.PL
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/converters/p5-Encode/pkg-plist b/converters/p5-Encode/pkg-plist
index 1eaf5dfd2aa5..bbf17ca6c64d 100644
--- a/converters/p5-Encode/pkg-plist
+++ b/converters/p5-Encode/pkg-plist
@@ -1,4 +1,3 @@
-bin/encguess
%%SITE_ARCH%%/Encode.pm
%%SITE_ARCH%%/Encode/Alias.pm
%%SITE_ARCH%%/Encode/Byte.pm
@@ -60,4 +59,3 @@ bin/encguess
%%PERL5_MAN3%%/Encode::Supported.3.gz
%%PERL5_MAN3%%/Encode::Unicode::UTF7.3.gz
%%PERL5_MAN3%%/encoding.3.gz
-man/man1/encguess.1.gz