View | Details | Raw Unified | Return to bug 181307
Collapse All | Expand All

(-)www/trac-watchlist/Makefile (-1 / +5 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	watchlist
4
PORTNAME=	watchlist
5
PORTVERSION=	1.0.${SVN_REV}
5
PORTVERSION=	1.0.${SVN_REV}
6
PORTREVISION=	1
6
CATEGORIES=	www devel python
7
CATEGORIES=	www devel python
7
MASTER_SITES=	http://distfiles.cse.tw/ \
8
MASTER_SITES=	http://distfiles.cse.tw/ \
8
		http://trac-hacks.org/changeset/${SVN_REV}/watchlistplugin?old_path=/&format=zip&filename=/
9
		http://trac-hacks.org/changeset/${SVN_REV}/watchlistplugin?old_path=/&format=zip&filename=/
Lines 26-31 Link Here
26
FETCH_BEFORE_ARGS=	-o ${DISTFILES}
27
FETCH_BEFORE_ARGS=	-o ${DISTFILES}
27
PYDISTUTILS_PKGNAME=	TracWatchlistPlugin
28
PYDISTUTILS_PKGNAME=	TracWatchlistPlugin
28
PYDISTUTILS_PKGVERSION=	${PORTVERSION:C/.${SVN_REV}//g}
29
PYDISTUTILS_PKGVERSION=	${PORTVERSION:C/.${SVN_REV}//g}
29
#PLIST_FILES=		%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
30
30
31
post-extract:
32
	@${FIND} ${WRKSRC} -type f | ${XARGS} ${CHMOD} 644
33
	@${FIND} ${WRKSRC} -type d | ${XARGS} ${CHMOD} 755
34
31
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)www/trac-watchlist/files/patch-tracwatchlist_util.py (+13 lines)
Line 0 Link Here
1
--- tracwatchlist/util.py.orig	2013-08-15 04:15:56.000000000 +0800
2
+++ tracwatchlist/util.py	2013-08-15 04:16:05.000000000 +0800
3
@@ -198,8 +198,8 @@
4
 try:
5
     from  babel.dates        import  get_datetime_format, get_date_format, get_time_format
6
     def datetime_format(format='medium', locale=LC_TIME):
7
-        time_format = unicode(get_time_format(format, locale))
8
-        date_format = unicode(get_date_format(format, locale))
9
+        time_format = unicode(get_time_format(format, locale=locale))
10
+        date_format = unicode(get_date_format(format, locale=locale))
11
         return convert_LDML_to_MySQL( get_datetime_format(format, locale)\
12
                 .replace('{0}', time_format)\
13
                 .replace('{1}', date_format) )

Return to bug 181307