From gaod@cse.tw  Wed Aug 14 20:22:01 2013
Return-Path: <gaod@cse.tw>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 13A797FC
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 14 Aug 2013 20:22:01 +0000 (UTC)
	(envelope-from gaod@cse.tw)
Received: from cse.tw (cse.tw [140.138.145.234])
	by mx1.freebsd.org (Postfix) with ESMTP id D763E2446
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 14 Aug 2013 20:22:00 +0000 (UTC)
Received: from cse.tw (localhost [127.0.0.1])
	by cse.tw (Postfix) with ESMTP id E08E5187E5A2
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 15 Aug 2013 04:23:03 +0800 (CST)
Received: (from gaod@localhost)
	by cse.tw (8.14.5/8.14.5/Submit) id r7EKN3Fo074657;
	Thu, 15 Aug 2013 04:23:03 +0800 (CST)
	(envelope-from gaod)
Message-Id: <201308142023.r7EKN3Fo074657@cse.tw>
Date: Thu, 15 Aug 2013 04:23:03 +0800 (CST)
From: Hung-Yi Chen <gaod@hychen.org>
Reply-To: Hung-Yi Chen <gaod@hychen.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [MAINTAINER] www/trac-watchlist: Fix file permission & patch for Trac 1.0
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>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:    wg
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 14 20:30:00 UTC 2013
>Closed-Date:    Thu Aug 15 11:10:34 UTC 2013
>Last-Modified:  Thu Aug 15 11:20:00 UTC 2013
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->wg 
Responsible-Changed-By: wg 
Responsible-Changed-When: Thu Aug 15 10:39:36 UTC 2013 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=181307 
State-Changed-From-To: open->closed 
State-Changed-By: wg 
State-Changed-When: Thu Aug 15 11:10:32 UTC 2013 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=181307 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/181307: commit references a PR
Date: Thu, 15 Aug 2013 11:10:14 +0000 (UTC)

 Author: wg
 Date: Thu Aug 15 11:10:05 2013
 New Revision: 324757
 URL: http://svnweb.freebsd.org/changeset/ports/324757
 
 Log:
   www/trac-watchlist: fix for trac 1.0
   
   - Fix to work with trac 1.0
   - Fix file permission
   
   PR:		ports/181307
   Submitted by:	Hung-Yi Chen <gaod hychen.org> (maintainer)
 
 Added:
   head/www/trac-watchlist/files/
   head/www/trac-watchlist/files/patch-tracwatchlist_util.py   (contents, props changed)
 Modified:
   head/www/trac-watchlist/Makefile
 
 Modified: head/www/trac-watchlist/Makefile
 ==============================================================================
 --- head/www/trac-watchlist/Makefile	Thu Aug 15 10:32:22 2013	(r324756)
 +++ head/www/trac-watchlist/Makefile	Thu Aug 15 11:10:05 2013	(r324757)
 @@ -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 @@ USE_PYDISTUTILS=	easy_install
  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>
 
 Added: head/www/trac-watchlist/files/patch-tracwatchlist_util.py
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/www/trac-watchlist/files/patch-tracwatchlist_util.py	Thu Aug 15 11:10:05 2013	(r324757)
 @@ -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) )
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
