aboutsummaryrefslogtreecommitdiffstats
path: root/converters/p5-JSON-PP
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2013-10-07 01:24:06 +0800
committersunpoet <sunpoet@FreeBSD.org>2013-10-07 01:24:06 +0800
commitdc6fa8a050536998bd62523a48c651a64f329af1 (patch)
tree095878eae7b016375738ba41c8793b2a50049a1f /converters/p5-JSON-PP
parent01bdc5f15dcf175874fba0431e8431bf391f9949 (diff)
downloadfreebsd-ports-gnome-dc6fa8a050536998bd62523a48c651a64f329af1.tar.gz
freebsd-ports-gnome-dc6fa8a050536998bd62523a48c651a64f329af1.tar.zst
freebsd-ports-gnome-dc6fa8a050536998bd62523a48c651a64f329af1.zip
- Support STAGEDIR
- Cleanup Makefile
Diffstat (limited to 'converters/p5-JSON-PP')
-rw-r--r--converters/p5-JSON-PP/Makefile11
-rw-r--r--converters/p5-JSON-PP/files/pkg-install.in9
-rw-r--r--converters/p5-JSON-PP/pkg-plist3
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