Index: Mk/bsd.port.mk =================================================================== --- Mk/bsd.port.mk (revision 302151) +++ Mk/bsd.port.mk (working copy) @@ -1444,6 +1444,10 @@ .include "${PORTSDIR}/Mk/bsd.gecko.mk" .endif +.if defined(USE_GITHUB) +.include "${PORTSDIR}/Mk/bsd.github.mk" +.endif + .if defined(WANT_GNOME) || defined(USE_GNOME) || defined(INSTALLS_ICONS) .include "${PORTSDIR}/Mk/bsd.gnome.mk" .endif Index: Mk/bsd.github.mk =================================================================== --- Mk/bsd.github.mk (revision 0) +++ Mk/bsd.github.mk (working copy) @@ -0,0 +1,31 @@ +# -*- tab-width: 4; -*- +# ex: ts=4 +# + +# This file contains some variable definitions that are used to make your life +# easier when dealing with ports hosted on GitHub.com. It's automatically +# included when USE_GITHUB is defined. +# +# The variables: +# +# USE_GITHUB - the port uses the GitHub infrastructure (this file) +# default: not set +# +# 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 +# default: not set, mandatory +# + +MASTER_SITES?= GH +GH_PROJECT?= ${PORTNAME} +GH_TAGNAME?= ${DISTVERSION} +WRKSRC?= ${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT} + Index: Mk/bsd.github.mk =================================================================== --- Mk/bsd.github.mk (revision 0) +++ Mk/bsd.github.mk (working copy) Property changes on: Mk/bsd.github.mk ___________________________________________________________________ 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 Index: Mk/bsd.sites.mk =================================================================== --- Mk/bsd.sites.mk (revision 302151) +++ Mk/bsd.sites.mk (working copy) @@ -515,6 +515,11 @@ http://www5.get-e.org/%SUBDIR%/_files/ .endif +.if !defined(IGNORE_MASTER_SITE_GITHUB) +MASTER_SITE_GITHUB+= \ + https://nodeload.github.com/%SUBDIR% +.endif + .if !defined(IGNORE_MASTER_SITE_GNOME) MASTER_SITE_GNOME+= \ ftp://ftp.belnet.be/mirror/ftp.gnome.org/%SUBDIR%/ \ @@ -1461,6 +1466,7 @@ # Macro magic MASTER_SITES_ABBREVS= CPAN:PERL_CPAN \ + GH:GITHUB \ NL:NETLIB \ SF:SOURCEFORGE \ SFJP:SOURCEFORGE_JP \ @@ -1474,6 +1480,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/tivoka/Makefile =================================================================== --- www/tivoka/Makefile (revision 0) +++ www/tivoka/Makefile (working copy) @@ -0,0 +1,35 @@ +# 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} + +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 0) +++ 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