Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Aug 2013 04:23:03 +0800 (CST)
From:      Hung-Yi Chen <gaod@hychen.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/181307: [MAINTAINER] www/trac-watchlist: Fix file permission & patch for Trac 1.0
Message-ID:  <201308142023.r7EKN3Fo074657@cse.tw>
Resent-Message-ID: <201308142030.r7EKU3Ug090424@freefall.freebsd.org>

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

>Number:         181307
>Category:       ports
>Synopsis:       [MAINTAINER] www/trac-watchlist: Fix file permission & patch for Trac 1.0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 14 20:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Hung-Yi Chen
>Release:        FreeBSD 9.1-RELEASE-p5 amd64
>Organization:
>Environment:
System: FreeBSD cse.tw 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #0: Sat Jul 27 01:14:23 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
        Fix file permission.
        Add a patch for Trac 1.0 compatibility.
>How-To-Repeat:
>Fix:


--- www_trac-watchlist.diff begins here ---
Index: www/trac-watchlist/Makefile
===================================================================
--- www/trac-watchlist/Makefile	(revision 324742)
+++ www/trac-watchlist/Makefile	(working copy)
@@ -3,6 +3,7 @@
 
 PORTNAME=	watchlist
 PORTVERSION=	1.0.${SVN_REV}
+PORTREVISION=	1
 CATEGORIES=	www devel python
 MASTER_SITES=	http://distfiles.cse.tw/ \
 		http://trac-hacks.org/changeset/${SVN_REV}/watchlistplugin?old_path=/&format=zip&filename=/
@@ -26,6 +27,9 @@
 FETCH_BEFORE_ARGS=	-o ${DISTFILES}
 PYDISTUTILS_PKGNAME=	TracWatchlistPlugin
 PYDISTUTILS_PKGVERSION=	${PORTVERSION:C/.${SVN_REV}//g}
-#PLIST_FILES=		%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
 
+post-extract:
+	@${FIND} ${WRKSRC} -type f | ${XARGS} ${CHMOD} 644
+	@${FIND} ${WRKSRC} -type d | ${XARGS} ${CHMOD} 755
+
 .include <bsd.port.mk>
Index: www/trac-watchlist/files/patch-tracwatchlist_util.py
===================================================================
--- www/trac-watchlist/files/patch-tracwatchlist_util.py	(revision 0)
+++ www/trac-watchlist/files/patch-tracwatchlist_util.py	(working copy)
@@ -0,0 +1,13 @@
+--- tracwatchlist/util.py.orig	2013-08-15 04:15:56.000000000 +0800
++++ tracwatchlist/util.py	2013-08-15 04:16:05.000000000 +0800
+@@ -198,8 +198,8 @@
+ try:
+     from  babel.dates        import  get_datetime_format, get_date_format, get_time_format
+     def datetime_format(format='medium', locale=LC_TIME):
+-        time_format = unicode(get_time_format(format, locale))
+-        date_format = unicode(get_date_format(format, locale))
++        time_format = unicode(get_time_format(format, locale=locale))
++        date_format = unicode(get_date_format(format, locale=locale))
+         return convert_LDML_to_MySQL( get_datetime_format(format, locale)\
+                 .replace('{0}', time_format)\
+                 .replace('{1}', date_format) )
--- www_trac-watchlist.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?201308142023.r7EKN3Fo074657>