[107433] trunk/dports/python

jmr at macports.org jmr at macports.org
Sat Jun 29 00:44:17 PDT 2013


Revision: 107433
          https://trac.macports.org/changeset/107433
Author:   jmr at macports.org
Date:     2013-06-29 00:44:17 -0700 (Sat, 29 Jun 2013)
Log Message:
-----------
py*-couchdb: unify

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

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

Removed Paths:
-------------
    trunk/dports/python/py25-couchdb/
    trunk/dports/python/py26-couchdb/
    trunk/dports/python/py27-couchdb/

Modified: trunk/dports/python/py-couchdb/Portfile
===================================================================
--- trunk/dports/python/py27-couchdb/Portfile	2013-06-28 22:38:07 UTC (rev 107430)
+++ trunk/dports/python/py-couchdb/Portfile	2013-06-29 07:44:17 UTC (rev 107433)
@@ -1,9 +1,9 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python27 1.0
+PortGroup           python 1.0
 
-name                py27-couchdb
+name                py-couchdb
 version             0.8
 categories          python www
 platforms           darwin
@@ -25,13 +25,18 @@
                     sha1 35004c40084097f03dc06a20556b84762e0214c7 \
                     rmd160 d67c310a07d558cdb7be6f12ad871c722f72dcbd
 
-# Use py27-setuptools as a library dependency instead of a build
-# dependency because couchdb/__init__.py uses setuptools's
-# pkg_resources module.
-depends_lib-append  port:py27-cjson \
-                    port:py27-httplib2 \
-                    port:py27-setuptools
+python.versions     25 26 27
 
-livecheck.type      regex
-livecheck.url       http://pypi.python.org/pypi/CouchDB
-livecheck.regex     {CouchDB ([0-9]+\.[0-9]+(?:\.[0-9]+)?)}
+if {$subport ne $name} {
+    # Use py-setuptools as a library dependency instead of a build
+    # dependency because couchdb/__init__.py uses setuptools's
+    # pkg_resources module.
+    depends_lib-append  port:py${python.version}-cjson \
+                        port:py${python.version}-httplib2 \
+                        port:py${python.version}-setuptools
+    livecheck.type      none
+} else {
+    livecheck.type      regex
+    livecheck.url       http://pypi.python.org/pypi/CouchDB
+    livecheck.regex     {CouchDB ([0-9]+\.[0-9]+(?:\.[0-9]+)?)}
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130629/43e51b02/attachment.html>


More information about the macports-changes mailing list