diff options
author | rea <rea@FreeBSD.org> | 2011-08-22 19:47:35 +0800 |
---|---|---|
committer | rea <rea@FreeBSD.org> | 2011-08-22 19:47:35 +0800 |
commit | 5466888bc9770d1544a3e99dcfb0be26bf5ad417 (patch) | |
tree | ee8210a2945bbfbc58d638d89791632f49e56f38 /www | |
parent | d8a32fd3688e6d4d8a5d26fcf0e5e9b9e9acc899 (diff) | |
download | freebsd-ports-gnome-5466888bc9770d1544a3e99dcfb0be26bf5ad417.tar.gz freebsd-ports-gnome-5466888bc9770d1544a3e99dcfb0be26bf5ad417.tar.zst freebsd-ports-gnome-5466888bc9770d1544a3e99dcfb0be26bf5ad417.zip |
New port: www/trac-defaultcc
This plugin automatically adds a default CC list when a new ticket
is created, based on its initial component.
Approved by: erwin (mentor)
Feature safe: yes
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/trac-defaultcc/Makefile | 46 | ||||
-rw-r--r-- | www/trac-defaultcc/distinfo | 2 | ||||
-rw-r--r-- | www/trac-defaultcc/pkg-descr | 4 | ||||
-rw-r--r-- | www/trac-defaultcc/pkg-plist | 1 |
5 files changed, 54 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index eb1f702f05f2..e2cfcd2cd358 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1803,6 +1803,7 @@ SUBDIR += trac-customfieldadmin SUBDIR += trac-customroadmap SUBDIR += trac-datefield + SUBDIR += trac-defaultcc SUBDIR += trac-discussion SUBDIR += trac-down SUBDIR += trac-downloads diff --git a/www/trac-defaultcc/Makefile b/www/trac-defaultcc/Makefile new file mode 100644 index 000000000000..0e2c983bece0 --- /dev/null +++ b/www/trac-defaultcc/Makefile @@ -0,0 +1,46 @@ +# New ports collection makefile for: trac-autocomplete +# Date created: August 18, 2011 +# Whom: Eygene Ryabinkin <rea@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= defaultcc +PORTVERSION= 0.1 +CATEGORIES= www python +MASTER_SITES= http://dist.codelabs.ru/fbsd/trac-${PORTNAME}/ +PKGNAMEPREFIX= trac- +DISTNAME= ${PORTNAME}plugin-r${REL} + +MAINTAINER= rea@FreeBSD.org +COMMENT= A plugin that adds default CC value for tickets + +BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools +RUN_DEPENDS+= trac>=0.11:${PORTSDIR}/www/trac + +USE_PYTHON= yes +USE_ZIP= yes +NO_BUILD= yes + +USE_PYDISTUTILS= yes +PYDISTUTILS_PKGNAME= Default_CC +PYDISTUTILS_NOEGGINFO= yes + +WRKSRC= ${WRKDIR}/${PORTNAME}plugin/trunk +REL= 10605 +PLIST_SUB+= PYTHON_VER=${PYTHON_VER} + +# We must fix file permissions -- ZIP file have 0000 for every file. +# Directory permissions are fine (they aren't stored inside ZIP +# file), but we set them too -- just in case. +post-extract: + @${FIND} ${WRKSRC} -type f | ${XARGS} ${CHMOD} 644 + @${FIND} ${WRKSRC} -type d | ${XARGS} ${CHMOD} 755 + +# Target to generate packaging list +plist: + @${FIND} ${PYTHON_SITELIBDIR}/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg -type f | ${SED} -e's|^${PYTHON_SITELIBDIR}/|%%PYTHON_SITELIBDIR%%/|;s|/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py[[:digit:]\.]*.egg|/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py%%PYTHON_VER%%.egg|' + @${FIND} ${PYTHON_SITELIBDIR}/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg -type d -mindepth 1 | ${SORT} -r | ${SED} -e's|^${PYTHON_SITELIBDIR}/|@dirrm %%PYTHON_SITELIBDIR%%/|;s|/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py[[:digit:]\.]*.egg|/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py%%PYTHON_VER%%.egg|' + @[ -d ${PYTHON_SITELIBDIR}/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg ] && ${ECHO} '@dirrm %%PYTHON_SITELIBDIR%%/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py%%PYTHON_VER%%.egg' + +.include <bsd.port.mk> diff --git a/www/trac-defaultcc/distinfo b/www/trac-defaultcc/distinfo new file mode 100644 index 000000000000..e002ffb4ffa0 --- /dev/null +++ b/www/trac-defaultcc/distinfo @@ -0,0 +1,2 @@ +SHA256 (defaultccplugin-r10605.zip) = 5fbc6969327f7bdbc9e0fc8e97624e7af0ee740f501cd5cd203dec8905f594cf +SIZE (defaultccplugin-r10605.zip) = 5043 diff --git a/www/trac-defaultcc/pkg-descr b/www/trac-defaultcc/pkg-descr new file mode 100644 index 000000000000..71610bce7206 --- /dev/null +++ b/www/trac-defaultcc/pkg-descr @@ -0,0 +1,4 @@ +This plugin automatically adds a default CC list +when a new ticket is created, based on its initial component. + +WWW: http://trac-hacks.org/wiki/DefaultCcPlugin diff --git a/www/trac-defaultcc/pkg-plist b/www/trac-defaultcc/pkg-plist new file mode 100644 index 000000000000..cf38919f1fcf --- /dev/null +++ b/www/trac-defaultcc/pkg-plist @@ -0,0 +1 @@ +%%PYTHON_SITELIBDIR%%/Default_CC-0.1-py%%PYTHON_VER%%.egg |