From e77540ccc59091d6b7e3d692d2a16ff5da4958f2 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Thu, 31 Dec 2009 17:53:45 +0000 Subject: Add the Trac TicketImportPlugin. It lets you import into Trac a series of tickets from a CSV file or from an Excel file. --- www/trac-ticketimport/Makefile | 50 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 www/trac-ticketimport/Makefile (limited to 'www/trac-ticketimport/Makefile') diff --git a/www/trac-ticketimport/Makefile b/www/trac-ticketimport/Makefile new file mode 100644 index 000000000000..ff26dba21eb4 --- /dev/null +++ b/www/trac-ticketimport/Makefile @@ -0,0 +1,50 @@ +# New ports collection makefile for: trac-ticketimport +# Date created: Dec 31, 2009 +# Whom: Brooks Davis +# +# $FreeBSD$ +# + +PORTNAME= ${PYDISTUTILS_PKGNAME:S;^Trac;;S;Plugin$;;:L} +PORTVERSION= 0.7c +CATEGORIES= www devel python +MASTER_SITES= ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= brooks +PKGNAMEPREFIX= trac- + +MAINTAINER= brooks@freebsd.org +COMMENT= Import or update tickets from a CSV file or Excel file + +RUN_DEPENDS+= tracd:${PORTSDIR}/www/trac \ + ${PYTHON_PKGNAMEPREFIX}xlrd>=0.7.1:${PORTSDIR}/textproc/py-xlrd +BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools + +USE_PYTHON= yes +USE_PYDISTUTILS=easy_install +PYDISTUTILS_PKGNAME= TicketImport + +# Maintainter targets below this point + +# Retrieve the latest version from SVN and package in a tarball. +.if defined(BOOTSTRAP) +FETCH_DEPENDS+= svn:${PORTSDIR}/devel/subversion +do-fetch: + ${MKDIR} ${WRKDIR} + cd ${WRKDIR} && \ + svn export http://trac-hacks.org/svn/ticketimportplugin/0.11/ \ + ${DISTNAME} + cd ${WRKDIR} && tar cvf ${DISTDIR}/${DISTNAME}.tar.gz ${DISTNAME} +.endif + +# Create a pkg-plist after the package is installed. +EGGDIR= ${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG} +PLIST_EGGDIR= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% +build-plist: + ${FIND} ${EGGDIR} -type f | \ + ${SED} -e 's|${EGGDIR}|${PLIST_EGGDIR}|' | \ + ${SORT} > pkg-plist + ${FIND} ${EGGDIR} -type d | \ + ${SED} -e 's|${EGGDIR}|@dirrm ${PLIST_EGGDIR}|' | \ + ${SORT} -r >> pkg-plist + +.include -- cgit v1.2.3