aboutsummaryrefslogtreecommitdiff
path: root/converters/p5-JSON
diff options
context:
space:
mode:
Diffstat (limited to 'converters/p5-JSON')
-rw-r--r--converters/p5-JSON/Makefile19
-rw-r--r--converters/p5-JSON/distinfo4
-rw-r--r--converters/p5-JSON/pkg-plist2
3 files changed, 19 insertions, 6 deletions
diff --git a/converters/p5-JSON/Makefile b/converters/p5-JSON/Makefile
index e95da8756899..dec27a955c44 100644
--- a/converters/p5-JSON/Makefile
+++ b/converters/p5-JSON/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= JSON
-PORTVERSION= 0.99
-PORTREVISION= 1
+PORTVERSION= 1.00
CATEGORIES= converters perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= ../../authors/id/M/MA/MAKAMAKA
@@ -16,8 +15,20 @@ PKGNAMEPREFIX= p5-
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Perl extension to convert to JSON (JavaScript Object Notation)
+BUILD_DEPENDS= ${SITE_PERL}/HTTP/Request.pm:${PORTSDIR}/www/p5-libwww
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
PERL_CONFIGURE= yes
-MAN3= JSON.3 JSON::Converter.3 JSON::Parser.3 \
+MAN3= Apache::JSONRPC.3 JSON.3 JSON::Converter.3 JSON::Parser.3 \
JSONRPC.3 JSONRPC::Transport::HTTP.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+IGNORE= Port requires perl 5.6.0 or later. Install lang/perl5.8 and try again
+.endif
+.if ${PERL_LEVEL} < 500800
+BUILD_DEPENDS+= ${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/converters/p5-JSON/distinfo b/converters/p5-JSON/distinfo
index 77dff7388520..d21d162a5427 100644
--- a/converters/p5-JSON/distinfo
+++ b/converters/p5-JSON/distinfo
@@ -1,2 +1,2 @@
-MD5 (JSON-0.99.tar.gz) = 24a0c501a462d72f342733cfc0a7e468
-SIZE (JSON-0.99.tar.gz) = 12891
+MD5 (JSON-1.00.tar.gz) = 1915ad570304b61cabdcf80c1291add3
+SIZE (JSON-1.00.tar.gz) = 19005
diff --git a/converters/p5-JSON/pkg-plist b/converters/p5-JSON/pkg-plist
index 5508c07fd832..d987bb6e320e 100644
--- a/converters/p5-JSON/pkg-plist
+++ b/converters/p5-JSON/pkg-plist
@@ -1,3 +1,4 @@
+%%SITE_PERL%%/Apache/JSONRPC.pm
%%SITE_PERL%%/JSON.pm
%%SITE_PERL%%/JSON/Converter.pm
%%SITE_PERL%%/JSON/Parser.pm
@@ -8,3 +9,4 @@
@dirrm %%SITE_PERL%%/JSONRPC/Transport
@dirrm %%SITE_PERL%%/JSONRPC
@dirrm %%SITE_PERL%%/JSON
+@unexec rmdir %D/%%SITE_PERL%%/Apache 2>/dev/null || true