Modified: trunk/dports/python/py-jinja/Portfile (83223 => 83230)
--- trunk/dports/python/py26-jinja/Portfile 2011-08-28 23:30:12 UTC (rev 83223)
+++ trunk/dports/python/py-jinja/Portfile 2011-08-29 05:39:28 UTC (rev 83230)
@@ -1,13 +1,14 @@
# $Id$
PortSystem 1.0
-PortGroup python26 1.0
+PortGroup python 1.0
-name py26-jinja
+name py-jinja
version 1.2
+revision 1
categories-append devel
license BSD
-maintainers nomaintainer
+maintainers rickvanderzwet.nl:info
description Python based sandboxed template engine
long_description \
Jinja is a sandboxed template engine written in pure Python licensed\
@@ -25,8 +26,17 @@
sha1 46fcf22ce2a1d432296ebfe16bcf11ce17f5c097 \
rmd160 5b0a9ba2241e8ec6417b382384bbe3e1bf4dba8a
-depends_lib-append port:py26-distribute
+python.versions 25 26
+python.default_version 26
+if {$subport != $name} {
+ depends_lib-append port:py${python.version}-distribute
+ patchfiles patch-setup.py.diff
+ post-patch {
+ reinplace "s|@@NAME@@|${subport}|g" ${worksrcpath}/setup.py
+ }
+}
+
livecheck.type regex
livecheck.url http://pypi.python.org/pypi/Jinja/
livecheck.regex {Jinja ([0-9.]+)}