[98963] trunk/dports/python

jmr at macports.org jmr at macports.org
Mon Oct 22 09:36:27 PDT 2012


Revision: 98963
          http://trac.macports.org//changeset/98963
Author:   jmr at macports.org
Date:     2012-10-22 09:36:26 -0700 (Mon, 22 Oct 2012)
Log Message:
-----------
py*-curl: unify

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

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

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

Modified: trunk/dports/python/py-curl/Portfile
===================================================================
--- trunk/dports/python/py-curl/Portfile	2012-03-24 01:35:49 UTC (rev 91134)
+++ trunk/dports/python/py-curl/Portfile	2012-10-22 16:36:26 UTC (rev 98963)
@@ -1,7 +1,7 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-curl
 version			7.19.0
@@ -16,25 +16,35 @@
 homepage		http://pycurl.sourceforge.net/
 master_sites	${homepage}/download
 distname		pycurl-${version}
-checksums		sha1 3fb59eca1461331bb9e9e8d6fe3b23eda961a416
+checksums       md5 919d58fe37e69fe87ce4534d8b6a1c7b \
+                sha1 3fb59eca1461331bb9e9e8d6fe3b23eda961a416 \
+                rmd160 dab547b3db67ed30cafb556a1a383f567064de49
 
-depends_lib-append	port:curl
+python.versions	24 25 26 27
 
-build.args		--curl-config=${prefix}/bin/curl-config
+if {$subport != $name} {
+    depends_lib-append	port:curl
 
-test.run		yes
-test.target
-test.env		PYTHONPATH=./build/lib*
-test.cmd		${python.bin} tests/test_internals.py tests/test_memleak.py
+    build.args		--curl-config=${prefix}/bin/curl-config
 
-destroot.args	${build.args}
+    test.run		yes
+    test.target
+    test.env		PYTHONPATH=./build/lib*
+    test.cmd		${python.bin} tests/test_internals.py tests/test_memleak.py
 
-post-destroot {
-	file delete -force ${destroot}${prefix}/share/doc/${name}
-	file rename ${destroot}${prefix}/share/doc/pycurl \
-		${destroot}${prefix}/share/doc/${name}
+    destroot.args	${build.args}
+
+    if {${python.version} <= 25} {
+        post-destroot {
+            file delete -force ${destroot}${prefix}/share/doc/${subport}
+            file rename ${destroot}${prefix}/share/doc/pycurl \
+                ${destroot}${prefix}/share/doc/${subport}
+        }
+    }
+
+    livecheck.type	none
+} else {
+    livecheck.type	regex
+    livecheck.url	${homepage}
+    livecheck.regex	PYCURL (\[0-9\\.\]+)
 }
-
-livecheck.type	regex
-livecheck.url	${homepage}
-livecheck.regex	PYCURL (\[0-9\\.\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121022/72bf39e8/attachment.html>


More information about the macports-changes mailing list