1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

- Rename bin/json_pp to bin/p5json_pp to avoid CONFLICTS with lang/perl5.14

- Bump PORTREVISION for PLIST change

Reported by:	kwm
Obtained from:	lth (devel/p5-Module-CoreList)
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2011-09-17 07:35:57 +00:00
parent 904b3fa5f3
commit 8bb921a385
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=281884
3 changed files with 31 additions and 3 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= JSON-PP
PORTVERSION= 2.27200
PORTREVISION= 1
CATEGORIES= converters perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:MAKAMAKA
@ -17,8 +18,25 @@ COMMENT= A JSON::XS compatible pure-Perl module
PERL_CONFIGURE= yes
MAN1= json_pp.1
MAN1= p5json_pp.1
MAN3= JSON::PP.3 \
JSON::PP::Boolean.3
.include <bsd.port.mk>
SUB_FILES= pkg-install
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501400
PLIST_SUB= BIN_JSON_PP=""
.else
PLIST_SUB= BIN_JSON_PP="@comment "
.endif
pre-patch:
@${MV} ${WRKSRC}/bin/json_pp ${WRKSRC}/bin/p5json_pp
@${REINPLACE_CMD} -e 's|bin/json_pp|bin/p5json_pp|' ${WRKSRC}/MANIFEST ${WRKSRC}/Makefile.PL
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>

View File

@ -0,0 +1,9 @@
#!/bin/sh
case $2 in
POST-INSTALL)
if ! test -f %%PREFIX%%/bin/json_pp; then
echo "===> Reinstalling missing %%PREFIX%%/bin/json_pp"
cp -p %%PREFIX%%/bin/p5json_pp %%PREFIX%%/bin/json_pp
fi
esac

View File

@ -1,4 +1,5 @@
bin/json_pp
%%BIN_JSON_PP%%bin/json_pp
bin/p5json_pp
%%SITE_PERL%%/JSON/PP.pm
%%SITE_PERL%%/JSON/PP/Boolean.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/JSON/PP/.packlist