Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Mar 2013 05:55:45 +0800 (CST)
From:      Hung-Yi Chen <gaod@hychen.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/177424: [NEW PORT] www/trac-subtickets: A plugin ffers sub-ticket feature for managing tickets
Message-ID:  <201303272155.r2RLtj8t091550@cse.tw>
Resent-Message-ID: <201303272200.r2RM01HF087002@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177424
>Category:       ports
>Synopsis:       [NEW PORT] www/trac-subtickets: A plugin ffers sub-ticket feature for managing tickets
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 27 22:00:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Hung-Yi Chen
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD cse.tw 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64

>Description:
	This plugin offers sub-ticket feature for managing tickets.

        WWW: http://trac-hacks.org/wiki/SubticketsPlugin
>How-To-Repeat:
>Fix:


--- trac-subtickets.diff begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 0)
+++ Makefile	(working copy)
@@ -0,0 +1,30 @@
+# Created by: Hung-Yi Chen <gaod@hychen.org>
+# $FreeBSD$
+
+PORTNAME=	subtickets
+PORTVERSION=	0.2.0.${GITDATE}
+CATEGORIES=	www devel python
+MASTER_SITES=   https://github.com/itota/trac-subtickets-plugin/tarball/${GITVERSION}/
+DISTNAME=       itota-trac-subtickets-plugin-a0fc153
+PKGNAMEPREFIX=	trac-
+
+MAINTAINER=	gaod@hychen.org
+COMMENT=	Offers sub-ticket feature for managing tickets
+
+LICENSE=	BSD
+
+GITVERSION=	a0fc153
+GITDATE=	20130328
+RUN_DEPENDS+=	tracd:${PORTSDIR}/www/trac
+
+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=		%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
+
+.include <bsd.port.mk>
Index: distinfo
===================================================================
--- distinfo	(revision 0)
+++ distinfo	(working copy)
@@ -0,0 +1,2 @@
+SHA256 (itota-trac-subtickets-plugin-a0fc153.tar.gz) = 02d41766c2efeb70fabebb269afcbac5af1c1bcbbfc09e1f33f1cc0056c031b2
+SIZE (itota-trac-subtickets-plugin-a0fc153.tar.gz) = 7444
Index: files/patch-setup.cfg
===================================================================
--- files/patch-setup.cfg	(revision 0)
+++ files/patch-setup.cfg	(working copy)
@@ -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:
Index: files/patch-tracsubtickets_api.py
===================================================================
--- files/patch-tracsubtickets_api.py	(revision 0)
+++ files/patch-tracsubtickets_api.py	(working copy)
@@ -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'])
+ 
Index: pkg-descr
===================================================================
--- pkg-descr	(revision 0)
+++ pkg-descr	(working copy)
@@ -0,0 +1,3 @@
+This plugin offers sub-ticket feature for managing tickets.
+
+WWW: http://trac-hacks.org/wiki/SubticketsPlugin
--- trac-subtickets.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303272155.r2RLtj8t091550>