aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2011-01-12 08:47:17 +0800
committerbrooks <brooks@FreeBSD.org>2011-01-12 08:47:17 +0800
commitf83dcedc6d6e39bcd768d1f3324e9b5d99881c83 (patch)
tree48717917aed67af01a8de7b284291bd8260f05bf /www
parentf82764b5aa993e7af36978f5db9642e6e487f6f9 (diff)
downloadfreebsd-ports-gnome-f83dcedc6d6e39bcd768d1f3324e9b5d99881c83.tar.gz
freebsd-ports-gnome-f83dcedc6d6e39bcd768d1f3324e9b5d99881c83.tar.zst
freebsd-ports-gnome-f83dcedc6d6e39bcd768d1f3324e9b5d99881c83.zip
Update to the latest trac-downloads module for trac 0.12. [1]
On versions of python where it will throw a exception, don't bother including the sets module and ignoring the exception. The process of doing so clusters logs an script output. Submitted by: Michiel van Baak <michiel at vanbaak.info> [1] Feature safe: yes
Diffstat (limited to 'www')
-rw-r--r--www/trac-downloads/Makefile14
-rw-r--r--www/trac-downloads/distinfo4
-rw-r--r--www/trac-downloads/files/no-sets-module.diff17
3 files changed, 29 insertions, 6 deletions
diff --git a/www/trac-downloads/Makefile b/www/trac-downloads/Makefile
index d78d45dacab9..25c8f4e72030 100644
--- a/www/trac-downloads/Makefile
+++ b/www/trac-downloads/Makefile
@@ -20,8 +20,8 @@ COMMENT= A trac plugin providing a downloads section
RUN_DEPENDS+= tracd:${PORTSDIR}/www/trac
BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools
-TRAC_VERSION= 0.11
-PLUGIN_VERSION= 0.2
+TRAC_VERSION= 0.12
+PLUGIN_VERSION= 0.3
USE_PYTHON= yes
NO_BUILD= yes
@@ -34,10 +34,16 @@ PLIST_FILES= %%PYTHON_SITELIBDIR%%/${PYDISTUTILS_PKGNAME}-${PLUGIN_VERSION}-py${
.if defined(BOOTSTRAP)
do-fetch:
${MKDIR} ${WRKDIR}
- svn export http://trac-hacks.org/svn/downloadsplugin/0.11/ ${WRKSRC}
+ svn export http://trac-hacks.org/svn/downloadsplugin/${TRAC_VERSION}/ ${WRKSRC}
${MKDIR} ${_DISTDIR}
cd ${WRKDIR} && \
tar cfvz ${_DISTDIR}/${DISTNAME}.tar.gz ${DISTNAME}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} >= 260
+EXTRA_PATCHES= ${PATCHDIR}/no-sets-module.diff
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/www/trac-downloads/distinfo b/www/trac-downloads/distinfo
index ec55694583df..0265908ddef8 100644
--- a/www/trac-downloads/distinfo
+++ b/www/trac-downloads/distinfo
@@ -1,2 +1,2 @@
-SHA256 (trac/downloadsplugin-0.11.0.2.tar.gz) = 6a4557341619ea9b347b772f87d6a2a62c842a352c18c7f1963a9668a792713f
-SIZE (trac/downloadsplugin-0.11.0.2.tar.gz) = 14066
+SHA256 (trac/downloadsplugin-0.12.0.3.tar.gz) = 31a3dc9a4198aaf4341d65159a5e81dd3b3cc54c6263853ad05786298497390d
+SIZE (trac/downloadsplugin-0.12.0.3.tar.gz) = 18676
diff --git a/www/trac-downloads/files/no-sets-module.diff b/www/trac-downloads/files/no-sets-module.diff
new file mode 100644
index 000000000000..fe8e717c38de
--- /dev/null
+++ b/www/trac-downloads/files/no-sets-module.diff
@@ -0,0 +1,17 @@
+
+$FreeBSD$
+
+--- tracdownloads/tags.py.orig
++++ tracdownloads/tags.py
+@@ -1,11 +1,5 @@
+ # -*- coding: utf-8 -*-
+
+-# Deprecated as for Python 2.6.
+-try:
+- import sets
+-except:
+- pass
+-
+ # Trac imports.
+ from trac.core import *
+ from trac.resource import Resource