aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwen <wen@FreeBSD.org>2010-04-21 09:02:14 +0800
committerwen <wen@FreeBSD.org>2010-04-21 09:02:14 +0800
commiteda2be5e412551ec5b53ea21aa6dd8a3d3442b39 (patch)
tree1cbb88eef285683b65e8d8923aeb39f299bd6c47
parent9b595c150b90bd2827c985be5726812622e0f1ef (diff)
downloadfreebsd-ports-gnome-eda2be5e412551ec5b53ea21aa6dd8a3d3442b39.tar.gz
freebsd-ports-gnome-eda2be5e412551ec5b53ea21aa6dd8a3d3442b39.tar.zst
freebsd-ports-gnome-eda2be5e412551ec5b53ea21aa6dd8a3d3442b39.zip
JSON::RPC::Dispatcher can make any PSGI/Plack aware server a
JSON-RPC 2.0 server. This will allow you to expose your custom functionality as a web service in a relatiely tiny amount of code, as you can see above. This module follows the draft specficiation for JSON-RPC 2.0. More information can be found at: http://groups.google.com/group/json-rpc/web/json-rpc-2-0. WWW: http://search.cpan.org/dist/JSON-RPC-Dispatcher/
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-JSON-RPC-Dispatcher/Makefile29
-rw-r--r--devel/p5-JSON-RPC-Dispatcher/distinfo3
-rw-r--r--devel/p5-JSON-RPC-Dispatcher/pkg-descr10
-rw-r--r--devel/p5-JSON-RPC-Dispatcher/pkg-plist10
5 files changed, 53 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 7b35367612ed..ccf02cb642d7 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1695,6 +1695,7 @@
SUBDIR += p5-JQuery
SUBDIR += p5-JSON-RPC
SUBDIR += p5-JSON-RPC-Common
+ SUBDIR += p5-JSON-RPC-Dispatcher
SUBDIR += p5-Java
SUBDIR += p5-Lexical-Alias
SUBDIR += p5-Lexical-Persistence
diff --git a/devel/p5-JSON-RPC-Dispatcher/Makefile b/devel/p5-JSON-RPC-Dispatcher/Makefile
new file mode 100644
index 000000000000..d257b2147506
--- /dev/null
+++ b/devel/p5-JSON-RPC-Dispatcher/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: p5-JSON-RPC-Dispatcher
+# Date created: 21 April, 2010
+# Whom: Wen Heping <wenheping@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= JSON-RPC-Dispatcher
+PORTVERSION= 0.0402
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= wen@FreeBSD.org
+COMMENT= A JSON-RPC 2.0 server
+
+BUILD_DEPENDS= p5-JSON>=2.16:${PORTSDIR}/converters/p5-JSON \
+ p5-Log-Any>=0.11:${PORTSDIR}/devel/p5-Log-Any \
+ p5-Moose>=0.93:${PORTSDIR}/devel/p5-Moose \
+ p5-Plack>=0.9913:${PORTSDIR}/www/p5-Plack
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= YES
+
+MAN3= JSON::RPC::Dispatcher.3 \
+ JSON::RPC::Dispatcher::App.3 \
+ JSON::RPC::Dispatcher::Procedure.3
+
+.include <bsd.port.mk>
diff --git a/devel/p5-JSON-RPC-Dispatcher/distinfo b/devel/p5-JSON-RPC-Dispatcher/distinfo
new file mode 100644
index 000000000000..77b27dc70cc9
--- /dev/null
+++ b/devel/p5-JSON-RPC-Dispatcher/distinfo
@@ -0,0 +1,3 @@
+MD5 (JSON-RPC-Dispatcher-0.0402.tar.gz) = 29356410bc52f26d5e0a891b81a93680
+SHA256 (JSON-RPC-Dispatcher-0.0402.tar.gz) = fddbf45d19ebd86574be54d03befaf00b53ef1dfd7b6319c7fa4ce147b04e264
+SIZE (JSON-RPC-Dispatcher-0.0402.tar.gz) = 15028
diff --git a/devel/p5-JSON-RPC-Dispatcher/pkg-descr b/devel/p5-JSON-RPC-Dispatcher/pkg-descr
new file mode 100644
index 000000000000..4b7fa9e52903
--- /dev/null
+++ b/devel/p5-JSON-RPC-Dispatcher/pkg-descr
@@ -0,0 +1,10 @@
+JSON::RPC::Dispatcher can make any PSGI/Plack aware server a
+JSON-RPC 2.0 server. This will allow you to expose your custom
+functionality as a web service in a relatiely tiny amount of
+code, as you can see above.
+
+This module follows the draft specficiation for JSON-RPC 2.0.
+More information can be found at:
+http://groups.google.com/group/json-rpc/web/json-rpc-2-0.
+
+WWW: http://search.cpan.org/dist/JSON-RPC-Dispatcher/
diff --git a/devel/p5-JSON-RPC-Dispatcher/pkg-plist b/devel/p5-JSON-RPC-Dispatcher/pkg-plist
new file mode 100644
index 000000000000..73e8bea2fd02
--- /dev/null
+++ b/devel/p5-JSON-RPC-Dispatcher/pkg-plist
@@ -0,0 +1,10 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/JSON/RPC/Dispatcher/.packlist
+%%SITE_PERL%%/JSON/RPC/Dispatcher.pm
+%%SITE_PERL%%/JSON/RPC/Dispatcher/App.pm
+%%SITE_PERL%%/JSON/RPC/Dispatcher/Procedure.pm
+@dirrm %%SITE_PERL%%/JSON/RPC/Dispatcher
+@dirrmtry %%SITE_PERL%%/JSON/RPC
+@dirrmtry %%SITE_PERL%%/JSON
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/JSON/RPC/Dispatcher
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/JSON/RPC
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/JSON