Revision
107433
Author
jmr@macports.org
Date
2013-06-29 00:44:17 -0700 (Sat, 29 Jun 2013)

Log Message

py*-couchdb: unify

Modified Paths

Added Paths

Removed Paths

Diff

Modified: trunk/dports/python/py-couchdb/Portfile (107430 => 107433)


--- 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]+)?)}
+}