2012-10-26 20:58:07 +02:00
|
|
|
# Created by: Gerrit Beine <gerrit.beine@gmx.de>
|
2007-05-27 21:36:26 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pendingticket
|
2009-01-20 00:49:38 +01:00
|
|
|
PORTVERSION= 0.0.4
|
2012-10-26 20:58:07 +02:00
|
|
|
PORTREVISION= 3
|
2007-05-27 21:36:26 +02:00
|
|
|
CATEGORIES= www devel python
|
|
|
|
MASTER_SITES= http://www.gerritbeine.de/download/trac/
|
|
|
|
PKGNAMEPREFIX= trac-
|
|
|
|
DISTNAME= ${PORTNAME}plugin-${PORTVERSION}
|
|
|
|
|
2009-05-07 00:15:18 +02:00
|
|
|
MAINTAINER= glarkin@FreeBSD.org
|
2007-05-27 21:36:26 +02:00
|
|
|
COMMENT= Support for pending tickets
|
|
|
|
|
|
|
|
RUN_DEPENDS+= tracd:${PORTSDIR}/www/trac
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}plugin/removependingplugin
|
2012-10-26 20:58:07 +02:00
|
|
|
USE_PYTHON= -2.7
|
|
|
|
USE_PYDISTUTILS= easy_install
|
|
|
|
PYDISTUTILS_PKGNAME= RemovePendingStatusPlugin
|
|
|
|
PLIST_FILES= bin/close_old_pending.py \
|
|
|
|
bin/migrate_pending_attrib_to_status.py \
|
|
|
|
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
|
2007-05-27 21:36:26 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
cd ${WRKDIR}/${PORTNAME}plugin && ${PATCH} < ${PATCHDIR}/close_old_pending.py.patch
|
|
|
|
${REINPLACE_CMD} -e "s,%%PYTHON%%,${PYTHON_CMD}," ${WRKDIR}/${PORTNAME}plugin/close_old_pending.py
|
2009-01-20 00:49:38 +01:00
|
|
|
cd ${WRKDIR}/${PORTNAME}plugin && ${PATCH} < ${PATCHDIR}/migrate_pending_attrib_to_status.py.patch
|
|
|
|
${REINPLACE_CMD} -e "s,%%PYTHON%%,${PYTHON_CMD}," ${WRKDIR}/${PORTNAME}plugin/migrate_pending_attrib_to_status.py
|
2007-05-27 21:36:26 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}plugin/close_old_pending.py ${PREFIX}/bin
|
2009-01-20 00:49:38 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}plugin/migrate_pending_attrib_to_status.py ${PREFIX}/bin
|
2007-05-27 21:36:26 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|