Index: Mk/bsd.sites.mk =================================================================== --- Mk/bsd.sites.mk (revision 302458) +++ Mk/bsd.sites.mk (working copy) @@ -515,6 +515,33 @@ http://www5.get-e.org/%SUBDIR%/_files/ .endif +.if !defined(IGNORE_MASTER_SITE_GITHUB) +# +# In order to use GitHub your port must define USE_GITHUB and the following +# variables: +# +# GH_ACCOUNT - account name of the GitHub user hosting the project +# default: not set, mandatory +# +# GH_PROJECT - name of the project on GitHub +# default: ${PORTNAME} +# +# GH_TAGNAME - name of the tag to download (master, 2.0.1, ...) +# default: ${DISTVERSION} +# +# GH_COMMIT - first 7 digits of the commit that generated GH_TAGNAME +# (man git-describe(1)) +# default: not set, mandatory +# +.if defined(USE_GITHUB) +MASTER_SITE_GITHUB+= https://nodeload.github.com/%SUBDIR% +MASTER_SITES+= GH +GH_PROJECT?= ${PORTNAME} +GH_TAGNAME?= ${DISTVERSION} +WRKSRC= ${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT} +.endif +.endif + .if !defined(IGNORE_MASTER_SITE_GNOME) MASTER_SITE_GNOME+= \ ftp://ftp.belnet.be/mirror/ftp.gnome.org/%SUBDIR%/ \ @@ -1461,6 +1488,7 @@ # Macro magic MASTER_SITES_ABBREVS= CPAN:PERL_CPAN \ + GH:GITHUB \ NL:NETLIB \ SF:SOURCEFORGE \ SFJP:SOURCEFORGE_JP \ @@ -1474,6 +1502,7 @@ CSME:myports \ DEBIAN:pool/main/${PORTNAME:C/^((lib)?.).*$/\1/}/${PORTNAME} \ GCC:releases/${DISTNAME} \ + GITHUB:${GH_ACCOUNT}/${GH_PROJECT}/tarball/${GH_TAGNAME}?dummy=/ \ GNOME:sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} \ GNU:${PORTNAME} \ HORDE:${PORTNAME} \ Index: www/Makefile =================================================================== --- www/Makefile (revision 302458) +++ www/Makefile (working copy) @@ -1830,6 +1830,7 @@ SUBDIR += tinymce3 SUBDIR += tinyproxy SUBDIR += tinytinyhttpd + SUBDIR += tivoka SUBDIR += tntnet SUBDIR += tokyopromenade SUBDIR += tomcat-native Index: www/tivoka/pkg-descr =================================================================== --- www/tivoka/pkg-descr (revision 0) +++ www/tivoka/pkg-descr (working copy) @@ -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/ Index: www/tivoka/pkg-descr =================================================================== --- www/tivoka/pkg-descr (revision 302458) +++ www/tivoka/pkg-descr (working copy) Property changes on: www/tivoka/pkg-descr ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: www/tivoka/distinfo =================================================================== --- www/tivoka/distinfo (revision 0) +++ www/tivoka/distinfo (working copy) @@ -0,0 +1,2 @@ +SHA256 (tivoka-3.0.1.tar.gz) = 373b4793932b60973591fc8dc79897fc03610e224e5641bc3f6afd7f2b361982 +SIZE (tivoka-3.0.1.tar.gz) = 10605 Index: www/tivoka/distinfo =================================================================== --- www/tivoka/distinfo (revision 302458) +++ www/tivoka/distinfo (working copy) Property changes on: www/tivoka/distinfo ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: www/tivoka/pkg-plist =================================================================== --- www/tivoka/pkg-plist (revision 0) +++ www/tivoka/pkg-plist (working copy) @@ -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%% Index: www/tivoka/pkg-plist =================================================================== --- www/tivoka/pkg-plist (revision 302458) +++ www/tivoka/pkg-plist (working copy) Property changes on: www/tivoka/pkg-plist ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: www/tivoka/Makefile =================================================================== --- www/tivoka/Makefile (revision 0) +++ www/tivoka/Makefile (working copy) @@ -0,0 +1,37 @@ +# New ports collection Makefile for: tivoka +# Date created: 16 July 2012 +# Whom: gahr +# +# $FreeBSD$ +# + +PORTNAME= tivoka +PORTVERSION= 3.0.1 +CATEGORIES= www +MASTER_SITES= http://www.gahr.ch/tivoka/ + +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 Index: www/tivoka/Makefile =================================================================== --- www/tivoka/Makefile (revision 302458) +++ www/tivoka/Makefile (working copy) Property changes on: www/tivoka/Makefile ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property