aboutsummaryrefslogtreecommitdiff
path: root/www/p5-Catalyst-View-JSON/Makefile
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2006-12-26 01:37:12 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2006-12-26 01:37:12 +0000
commitad455800b6cbad78098680b764326fd67eacb23f (patch)
tree590ea6b4b17b212d3887a22873deb1135654069f /www/p5-Catalyst-View-JSON/Makefile
parent374c329ee912a7049cc169412ff8e4ae22758f11 (diff)
Notes
Diffstat (limited to 'www/p5-Catalyst-View-JSON/Makefile')
-rw-r--r--www/p5-Catalyst-View-JSON/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/www/p5-Catalyst-View-JSON/Makefile b/www/p5-Catalyst-View-JSON/Makefile
index dd1648965811..edf2cfa29792 100644
--- a/www/p5-Catalyst-View-JSON/Makefile
+++ b/www/p5-Catalyst-View-JSON/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= Catalyst-View-JSON
-PORTVERSION= 0.12
+PORTVERSION= 0.14
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Catalyst
@@ -16,12 +16,21 @@ MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Catalyst View handler that returns stash data in JSON format
BUILD_DEPENDS= ${RUN_DEPENDS}
-RUN_DEPENDS= p5-JSON>=1.00:${PORTSDIR}/converters/p5-JSON \
- p5-Catalyst-Runtime>=5.7000:${PORTSDIR}/www/p5-Catalyst-Runtime \
+RUN_DEPENDS= p5-Catalyst-Runtime>=5.7000:${PORTSDIR}/www/p5-Catalyst-Runtime \
p5-Catalyst-Devel>=1.00:${PORTSDIR}/www/p5-Catalyst-Devel
+OPTIONS= JSONSYCK "Use JSON::Syck rather than JSON::Converter" off
+
PERL_CONFIGURE= yes
MAN3= Catalyst::Helper::View::JSON.3 Catalyst::View::JSON.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_JSONSYCK)
+RUN_DEPENDS+= p5-YAML-Syck>0:${PORTSDIR}/textproc/p5-YAML-Syck
+.else
+RUN_DEPENDS+= p5-JSON>=1.00:${PORTSDIR}/converters/p5-JSON
+.endif
+
+.include <bsd.port.post.mk>