[84513] trunk/dports/python

snc at macports.org snc at macports.org
Tue Sep 27 07:44:31 PDT 2011


Revision: 84513
          http://trac.macports.org/changeset/84513
Author:   snc at macports.org
Date:     2011-09-27 07:44:26 -0700 (Tue, 27 Sep 2011)
Log Message:
-----------
py-pyopencl:
 * unify
 * given permission to take maintainership

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

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

Removed Paths:
-------------
    trunk/dports/python/py26-pyopencl/
    trunk/dports/python/py27-pyopencl/

Modified: trunk/dports/python/py-pyopencl/Portfile
===================================================================
--- trunk/dports/python/py27-pyopencl/Portfile	2011-09-27 13:27:39 UTC (rev 84509)
+++ trunk/dports/python/py-pyopencl/Portfile	2011-09-27 14:44:26 UTC (rev 84513)
@@ -2,13 +2,16 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python27 1.0
+PortGroup           python 1.0
 
-name                py27-pyopencl
+name                py-pyopencl
 version             2011.1.2
+python.versions     26 27
+python.default_version  27
 categories-append   science
 
 maintainers         snc openmaintainer
+license             MIT
 
 description         Python wrapper for OpenCL.
 
@@ -25,16 +28,19 @@
 checksums           rmd160  13c88e36bf60ea43ec22be338d72d295161b6beb \
                     sha256  6c5faff5940d269f4af799e143affb4c259fccea579aeab5622138b7d4adbeb8
 
-depends_build-append \
-                    port:py27-distribute \
-                    port:py27-numpy \
-                    port:py27-mako
+if {${subport} != ${name}} {
+    depends_build-append \
+                        port:py${python.version}-distribute \
+                        port:py${python.version}-numpy \
+                        port:py${python.version}-mako
 
-use_configure       yes
-configure.cmd       ${python.bin} configure.py
-configure.args      --cl-enable-gl
-configure.universal_args-delete --disable-dependency-tracking
-
-livecheck.type      regex
-livecheck.url       ${master_sites}
-livecheck.regex     "pyopencl-(\\d+(?:\\.\\d+)*)${extract.suffix}"
+    use_configure       yes
+    configure.cmd       ${python.bin} configure.py
+    configure.args      --cl-enable-gl
+    configure.universal_args-delete --disable-dependency-tracking
+    livecheck.type      none
+} else {
+    livecheck.type      regex
+    livecheck.url       ${master_sites}
+    livecheck.regex     "pyopencl-(\\d+(?:\\.\\d+)*)${extract.suffix}"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110927/81da19a2/attachment.html>


More information about the macports-changes mailing list