aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2013-07-16 13:41:40 +0800
committermiwi <miwi@FreeBSD.org>2013-07-16 13:41:40 +0800
commitca04376785301224bb00797bd6c8392ac2d1c901 (patch)
treefe1d9fb1552866edddac49ad5a8855a3dbdbe7bf /www
parent9d042503b98cb9a32402c4071e0edc2ce8fe3349 (diff)
downloadfreebsd-ports-gnome-ca04376785301224bb00797bd6c8392ac2d1c901.tar.gz
freebsd-ports-gnome-ca04376785301224bb00797bd6c8392ac2d1c901.tar.zst
freebsd-ports-gnome-ca04376785301224bb00797bd6c8392ac2d1c901.zip
This plugin offers sub-ticket feature for managing tickets.
WWW: http://trac-hacks.org/wiki/SubticketsPlugin PR: ports/177424 Submitted by: Hung-Yi Chen <gaod@hychen.org>
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/trac-subtickets/Makefile33
-rw-r--r--www/trac-subtickets/distinfo2
-rw-r--r--www/trac-subtickets/files/patch-setup.cfg10
-rw-r--r--www/trac-subtickets/files/patch-tracsubtickets_api.py20
-rw-r--r--www/trac-subtickets/pkg-descr3
6 files changed, 69 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 7d008e05ec56..5fef570f018b 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1956,6 +1956,7 @@
SUBDIR += trac-scrumburndown
SUBDIR += trac-simpleticket
SUBDIR += trac-spam-filter
+ SUBDIR += trac-subtickets
SUBDIR += trac-tags
SUBDIR += trac-themeengine
SUBDIR += trac-ticketimport
diff --git a/www/trac-subtickets/Makefile b/www/trac-subtickets/Makefile
new file mode 100644
index 000000000000..ae56bb080ac7
--- /dev/null
+++ b/www/trac-subtickets/Makefile
@@ -0,0 +1,33 @@
+# Created by: Hung-Yi Chen <gaod@hychen.org>
+# $FreeBSD$
+
+PORTNAME= subtickets
+PORTVERSION= 0.2.0.${GITDATE}
+CATEGORIES= www devel python
+MASTER_SITES= http://distfiles.cse.tw/ \
+ https://github.com/itota/trac-subtickets-plugin/tarball/${GITVERSION}/
+PKGNAMEPREFIX= trac-
+DISTNAME= itota-trac-subtickets-plugin-a0fc153
+
+MAINTAINER= gaod@hychen.org
+COMMENT= Offers sub-ticket feature for managing tickets
+
+LICENSE= BSD
+
+RUN_DEPENDS= tracd:${PORTSDIR}/www/trac
+
+GITVERSION= a0fc153
+GITDATE= 20130328
+
+WRKSRC= ${WRKDIR}/${PORTNAME}plugin/0.12
+WRKSRC= ${WRKDIR}/itota-trac-${PORTNAME}-plugin-${GITVERSION}
+USE_PYTHON= -2.7
+USE_PYDISTUTILS= easy_install
+
+FETCH_ARGS= -Fpr
+PYDISTUTILS_PKGNAME= TracSubTicketsPlugin
+PYDISTUTILS_PKGVERSION= ${PORTVERSION:C/${GITDATE}//g}dev
+PLIST_FILES= bin/check-trac-subtickets \
+ %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
+
+.include <bsd.port.mk>
diff --git a/www/trac-subtickets/distinfo b/www/trac-subtickets/distinfo
new file mode 100644
index 000000000000..724f045315a4
--- /dev/null
+++ b/www/trac-subtickets/distinfo
@@ -0,0 +1,2 @@
+SHA256 (itota-trac-subtickets-plugin-a0fc153.tar.gz) = 02d41766c2efeb70fabebb269afcbac5af1c1bcbbfc09e1f33f1cc0056c031b2
+SIZE (itota-trac-subtickets-plugin-a0fc153.tar.gz) = 7444
diff --git a/www/trac-subtickets/files/patch-setup.cfg b/www/trac-subtickets/files/patch-setup.cfg
new file mode 100644
index 000000000000..5895cb9db87b
--- /dev/null
+++ b/www/trac-subtickets/files/patch-setup.cfg
@@ -0,0 +1,10 @@
+--- setup.cfg.orig 2013-03-28 05:06:54.072148000 +0800
++++ setup.cfg 2013-03-28 05:06:59.650566000 +0800
+@@ -1,6 +1,6 @@
+ [egg_info]
+ tag_build = .dev
+-tag_date = True
++tag_date = False
+
+ [extract_messages]
+ add_comments = TRANSLATOR:
diff --git a/www/trac-subtickets/files/patch-tracsubtickets_api.py b/www/trac-subtickets/files/patch-tracsubtickets_api.py
new file mode 100644
index 000000000000..bd3dc2a5c1b7
--- /dev/null
+++ b/www/trac-subtickets/files/patch-tracsubtickets_api.py
@@ -0,0 +1,20 @@
+--- tracsubtickets/api.py.orig 2013-03-28 05:19:20.898573000 +0800
++++ tracsubtickets/api.py 2013-03-28 05:19:46.107341000 +0800
+@@ -153,7 +153,7 @@
+ (parent, ticket.id))
+ # add a comment to old parent
+ xticket = Ticket(self.env, parent)
+- xticket.save_changes(author, _('Remove a subticket #%s.') % ticket.id)
++ xticket.save_changes(author, _('Remove a subticket #%s. (%s)') % (ticket.id, ticket['summary']))
+ tn = TicketNotifyEmail(self.env)
+ tn.notify(xticket, newticket=False, modtime=xticket['changetime'])
+
+@@ -164,7 +164,7 @@
+ (parent, ticket.id))
+ # add a comment to new parent
+ xticket = Ticket(self.env, parent)
+- xticket.save_changes(author, _('Add a subticket #%s.') % ticket.id)
++ xticket.save_changes(author, _('Add a subticket #%s. (%s)') % (ticket.id, ticket['summary']))
+ tn = TicketNotifyEmail(self.env)
+ tn.notify(xticket, newticket=False, modtime=xticket['changetime'])
+
diff --git a/www/trac-subtickets/pkg-descr b/www/trac-subtickets/pkg-descr
new file mode 100644
index 000000000000..aca581164563
--- /dev/null
+++ b/www/trac-subtickets/pkg-descr
@@ -0,0 +1,3 @@
+This plugin offers sub-ticket feature for managing tickets.
+
+WWW: http://trac-hacks.org/wiki/SubticketsPlugin