Bug 181307 - [MAINTAINER] www/trac-watchlist: Fix file permission & patch for Trac 1.0
Summary: [MAINTAINER] www/trac-watchlist: Fix file permission & patch for Trac 1.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-14 21:30 UTC by Hung-Yi Chen
Modified: 2013-08-15 12:20 UTC (History)
0 users

See Also:


Attachments
www_trac-watchlist.diff (1.82 KB, patch)
2013-08-14 21:30 UTC, Hung-Yi Chen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hung-Yi Chen 2013-08-14 21:30:00 UTC
        Fix file permission.
        Add a patch for Trac 1.0 compatibility.
Comment 1 William Grzybowski freebsd_committer 2013-08-15 11:39:36 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wg

I'll take it.
Comment 2 dfilter service freebsd_committer 2013-08-15 12:10:14 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"
Comment 3 William Grzybowski freebsd_committer 2013-08-15 12:10:32 UTC
State Changed
From-To: open->closed

Committed. Thanks!