Perl 5.21.1 has the same Encode, so trim the script installed by this and its

man page.

Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold
2015-04-16 12:37:57 +00:00
parent d7534a0d39
commit a154ddc754
2 changed files with 10 additions and 3 deletions

View File

@@ -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>

View File

@@ -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