[84849] trunk/dports/python

jmr at macports.org jmr at macports.org
Mon Oct 3 09:28:44 PDT 2011


Revision: 84849
          http://trac.macports.org/changeset/84849
Author:   jmr at macports.org
Date:     2011-10-03 09:28:42 -0700 (Mon, 03 Oct 2011)
Log Message:
-----------
unify py*-jinja2, part 2

Modified Paths:
--------------
    trunk/dports/python/py-jinja2/Portfile

Added Paths:
-----------
    trunk/dports/python/py-jinja2/

Removed Paths:
-------------
    trunk/dports/python/py27-jinja2/

Modified: trunk/dports/python/py-jinja2/Portfile
===================================================================
--- trunk/dports/python/py27-jinja2/Portfile	2011-10-03 11:36:00 UTC (rev 84838)
+++ trunk/dports/python/py-jinja2/Portfile	2011-10-03 16:28:42 UTC (rev 84849)
@@ -2,9 +2,9 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python27 1.0
+PortGroup           python 1.0
 
-name                py27-jinja2
+name                py-jinja2
 version             2.6
 categories-append   devel
 license             BSD
@@ -28,9 +28,14 @@
                     sha1 f122aeb324b2009bbcee341d0f001a047ac4bbe5 \
                     rmd160 77829eabfc71dd6cf7eece1fe5d0b96b21de3b18
 
-depends_lib         port:py27-distribute \
-                    port:py27-markupsafe
+python.versions     24 25 26 27
 
-livecheck.type  regex
-livecheck.url   http://pypi.python.org/pypi/Jinja2/
-livecheck.regex {Jinja2 ([0-9\.]+)}
+if {$subport != $name} {
+    depends_lib     port:py${python.version}-distribute \
+                    port:py${python.version}-markupsafe
+    livecheck.type  none
+} else {
+    livecheck.type  regex
+    livecheck.url   http://pypi.python.org/pypi/Jinja2/
+    livecheck.regex {Jinja2 ([0-9\.]+)}
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111003/0e65c154/attachment.html>


More information about the macports-changes mailing list