diff options
author | wg <wg@FreeBSD.org> | 2013-08-15 19:10:05 +0800 |
---|---|---|
committer | wg <wg@FreeBSD.org> | 2013-08-15 19:10:05 +0800 |
commit | 9830a6de0ba506f40335b6ecf8a42940ede891dc (patch) | |
tree | 58b532591ccbd9aa51c090f454cd6084c70e9c43 /www | |
parent | b215d59f4b10dba715ff338916544a8b9b65347c (diff) | |
download | freebsd-ports-gnome-9830a6de0ba506f40335b6ecf8a42940ede891dc.tar.gz freebsd-ports-gnome-9830a6de0ba506f40335b6ecf8a42940ede891dc.tar.zst freebsd-ports-gnome-9830a6de0ba506f40335b6ecf8a42940ede891dc.zip |
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)
Diffstat (limited to 'www')
-rw-r--r-- | www/trac-watchlist/Makefile | 6 | ||||
-rw-r--r-- | www/trac-watchlist/files/patch-tracwatchlist_util.py | 13 |
2 files changed, 18 insertions, 1 deletions
diff --git a/www/trac-watchlist/Makefile b/www/trac-watchlist/Makefile index fd3fd120c095..099138c8fe50 100644 --- a/www/trac-watchlist/Makefile +++ b/www/trac-watchlist/Makefile @@ -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> diff --git a/www/trac-watchlist/files/patch-tracwatchlist_util.py b/www/trac-watchlist/files/patch-tracwatchlist_util.py new file mode 100644 index 000000000000..9b3ce7b23e7a --- /dev/null +++ b/www/trac-watchlist/files/patch-tracwatchlist_util.py @@ -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) ) |