aboutsummaryrefslogtreecommitdiffstats
path: root/www/tivoka
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2012-08-20 18:04:13 +0800
committergahr <gahr@FreeBSD.org>2012-08-20 18:04:13 +0800
commitf6ab43415bc2d6ab0ba26e8d28b357352a487571 (patch)
treecac6f48477470396266c563c1f8b70c7a329f87a /www/tivoka
parent5d8dc91e457d2518fc902ecede2100a98a7d1262 (diff)
downloadfreebsd-ports-gnome-f6ab43415bc2d6ab0ba26e8d28b357352a487571.tar.gz
freebsd-ports-gnome-f6ab43415bc2d6ab0ba26e8d28b357352a487571.tar.zst
freebsd-ports-gnome-f6ab43415bc2d6ab0ba26e8d28b357352a487571.zip
- Add support for fetching from GitHub in bsd.sites.mk
- Document the mechanism in CHANGES - Add www/tivoka (a JSON-RPC client/server library in PHP) which uses the GitHub mechanism Approved by: beat (portmgr) after exp-run
Diffstat (limited to 'www/tivoka')
-rw-r--r--www/tivoka/Makefile36
-rw-r--r--www/tivoka/distinfo2
-rw-r--r--www/tivoka/pkg-descr5
-rw-r--r--www/tivoka/pkg-plist26
4 files changed, 69 insertions, 0 deletions
diff --git a/www/tivoka/Makefile b/www/tivoka/Makefile
new file mode 100644
index 000000000000..bbfc4b49dd93
--- /dev/null
+++ b/www/tivoka/Makefile
@@ -0,0 +1,36 @@
+# New ports collection Makefile for: tivoka
+# Date created: 16 July 2012
+# Whom: gahr
+#
+# $FreeBSD$
+#
+
+PORTNAME= tivoka
+PORTVERSION= 3.0.1
+CATEGORIES= www
+
+MAINTAINER= gahr@FreeBSD.org
+COMMENT= JSON-RPC client/server library for PHP
+
+LICENSE= MIT
+
+USE_PHP= json filter
+NO_BUILD= yes
+
+USE_GITHUB= yes
+GH_ACCOUNT= marcelklehr
+GH_COMMIT= 4cbf436
+
+LIBDIR= ${PREFIX}/lib/php/${PHP_EXT_DIR}/${PORTNAME}
+PLIST_SUB+= LIBDIR=${LIBDIR:S/${PREFIX}\///}
+
+do-install:
+ @${MKDIR} ${LIBDIR}
+ @${INSTALL_DATA} ${WRKSRC}/include.php ${LIBDIR}
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} lib ${LIBDIR}
+.if !defined(NOPORTEXAMPLES)
+ @${MKDIR} ${EXAMPLESDIR}
+ @cd ${WRKSRC}/example && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/www/tivoka/distinfo b/www/tivoka/distinfo
new file mode 100644
index 000000000000..5931f0beca0c
--- /dev/null
+++ b/www/tivoka/distinfo
@@ -0,0 +1,2 @@
+SHA256 (tivoka-3.0.1.tar.gz) = 373b4793932b60973591fc8dc79897fc03610e224e5641bc3f6afd7f2b361982
+SIZE (tivoka-3.0.1.tar.gz) = 10605
diff --git a/www/tivoka/pkg-descr b/www/tivoka/pkg-descr
new file mode 100644
index 000000000000..826b332a3c1e
--- /dev/null
+++ b/www/tivoka/pkg-descr
@@ -0,0 +1,5 @@
+tivoka is a JSON-RPC client and server for PHP 5.3+. For convenience,
+you can easily switch between JSON-RPC 1.0 and JSON-RPC 2.0 without
+having to change your code.
+
+WWW: http://marcelklehr.github.com/tivoka/
diff --git a/www/tivoka/pkg-plist b/www/tivoka/pkg-plist
new file mode 100644
index 000000000000..1a7c37fd4054
--- /dev/null
+++ b/www/tivoka/pkg-plist
@@ -0,0 +1,26 @@
+%%LIBDIR%%/include.php
+%%LIBDIR%%/lib/Tivoka/Client.php
+%%LIBDIR%%/lib/Tivoka/Client/BatchRequest.php
+%%LIBDIR%%/lib/Tivoka/Client/Connection.php
+%%LIBDIR%%/lib/Tivoka/Client/NativeInterface.php
+%%LIBDIR%%/lib/Tivoka/Client/Notification.php
+%%LIBDIR%%/lib/Tivoka/Client/Request.php
+%%LIBDIR%%/lib/Tivoka/Exception/ConnectionException.php
+%%LIBDIR%%/lib/Tivoka/Exception/Exception.php
+%%LIBDIR%%/lib/Tivoka/Exception/InvalidParamsException.php
+%%LIBDIR%%/lib/Tivoka/Exception/ProcedureException.php
+%%LIBDIR%%/lib/Tivoka/Exception/RemoteProcedureException.php
+%%LIBDIR%%/lib/Tivoka/Exception/SpecException.php
+%%LIBDIR%%/lib/Tivoka/Exception/SyntaxException.php
+%%LIBDIR%%/lib/Tivoka/Server.php
+%%LIBDIR%%/lib/Tivoka/Server/MethodWrapper.php
+%%LIBDIR%%/lib/Tivoka/Server/Server.php
+%%LIBDIR%%/lib/Tivoka/Tivoka.php
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/client.php
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/server.php
+@dirrm %%LIBDIR%%/lib/Tivoka/Server
+@dirrm %%LIBDIR%%/lib/Tivoka/Exception
+@dirrm %%LIBDIR%%/lib/Tivoka/Client
+@dirrm %%LIBDIR%%/lib/Tivoka
+@dirrm %%LIBDIR%%/lib
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%