diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2013-10-06 17:24:06 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2013-10-06 17:24:06 +0000 |
commit | 6dfe64386ba79e96f8005f839bb6f52fd3879d13 (patch) | |
tree | 095878eae7b016375738ba41c8793b2a50049a1f /converters | |
parent | c86fe50ca2539fadab1348a35461d4f7230b00e1 (diff) | |
download | ports-6dfe64386ba79e96f8005f839bb6f52fd3879d13.tar.gz ports-6dfe64386ba79e96f8005f839bb6f52fd3879d13.zip |
Notes
Diffstat (limited to 'converters')
-rw-r--r-- | converters/p5-JSON-PP/Makefile | 11 | ||||
-rw-r--r-- | converters/p5-JSON-PP/files/pkg-install.in | 9 | ||||
-rw-r--r-- | converters/p5-JSON-PP/pkg-plist | 3 |
3 files changed, 6 insertions, 17 deletions
diff --git a/converters/p5-JSON-PP/Makefile b/converters/p5-JSON-PP/Makefile index 6774342d27b8..0886ef5b5d73 100644 --- a/converters/p5-JSON-PP/Makefile +++ b/converters/p5-JSON-PP/Makefile @@ -17,13 +17,6 @@ LICENSE_COMB= dual USE_PERL5= configure USES= perl5 -MAN1= p5json_pp.1 -MAN3= JSON::PP.3 \ - JSON::PP::Boolean.3 - -SUB_FILES= pkg-install - -NO_STAGE= yes .include <bsd.port.pre.mk> .if ${PERL_LEVEL} < 501400 @@ -37,6 +30,8 @@ pre-patch: @${REINPLACE_CMD} -e 's|bin/json_pp|bin/p5json_pp|' ${WRKSRC}/MANIFEST ${WRKSRC}/Makefile.PL post-install: - @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.if ${PERL_LEVEL} < 501400 + ${CP} -p ${STAGEDIR}${PREFIX}/bin/p5json_pp ${STAGEDIR}${PREFIX}/bin/json_pp +.endif .include <bsd.port.post.mk> diff --git a/converters/p5-JSON-PP/files/pkg-install.in b/converters/p5-JSON-PP/files/pkg-install.in deleted file mode 100644 index 75c3ab625642..000000000000 --- a/converters/p5-JSON-PP/files/pkg-install.in +++ /dev/null @@ -1,9 +0,0 @@ -#!/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 diff --git a/converters/p5-JSON-PP/pkg-plist b/converters/p5-JSON-PP/pkg-plist index b72eff78a580..eb20bc7b16a1 100644 --- a/converters/p5-JSON-PP/pkg-plist +++ b/converters/p5-JSON-PP/pkg-plist @@ -3,6 +3,9 @@ bin/p5json_pp %%SITE_PERL%%/JSON/PP.pm %%SITE_PERL%%/JSON/PP/Boolean.pm %%SITE_PERL%%/%%PERL_ARCH%%/auto/JSON/PP/.packlist +%%PERL5_MAN3%%/JSON::PP.3.gz +%%PERL5_MAN3%%/JSON::PP::Boolean.3.gz +man/man1/p5json_pp.1.gz @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/JSON/PP @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/JSON @dirrm %%SITE_PERL%%/JSON/PP |