[146980] trunk/dports/python/py-pyopencl/Portfile
petr at macports.org
petr at macports.org
Tue Mar 22 11:36:19 PDT 2016
Revision: 146980
https://trac.macports.org/changeset/146980
Author: petr at macports.org
Date: 2016-03-22 11:36:19 -0700 (Tue, 22 Mar 2016)
Log Message:
-----------
py-pyopencl: fix livecheck
Modified Paths:
--------------
trunk/dports/python/py-pyopencl/Portfile
Modified: trunk/dports/python/py-pyopencl/Portfile
===================================================================
--- trunk/dports/python/py-pyopencl/Portfile 2016-03-22 18:35:20 UTC (rev 146979)
+++ trunk/dports/python/py-pyopencl/Portfile 2016-03-22 18:36:19 UTC (rev 146980)
@@ -4,32 +4,28 @@
PortSystem 1.0
PortGroup python 1.0
-name py-pyopencl
+set _name pyopencl
+set _n [string index ${_name} 0]
+
+name py-${_name}
version 2013.2
-categories-append science
+categories-append science parallel
license MIT
platforms darwin
maintainers nomaintainer
description Python wrapper for OpenCL.
+long_description PyOpenCL lets you access GPUs and other massively \
+ parallel compute devices from Python.
-long_description PyOpenCL lets you access GPUs and \
- other massively parallel compute \
- devices from Python.
+homepage http://mathema.tician.de/software/${_name}
+master_sites https://pypi.python.org/packages/source/${_n}/${_name}/
+distname ${_name}-${version}
-homepage http://mathema.tician.de/software/pyopencl
-master_sites http://pypi.python.org/packages/source/p/pyopencl/
-
-distname pyopencl-${version}
-
checksums rmd160 ad0d599183bd068db939e4eb1522d7887b4d9073 \
sha256 f8e4218e4e47d397886f5dabde16a4d8dcc12caa0cb16ec68cae31f89c94d918
-patch.pre_args -p1
-patchfiles patch-setup.py.diff
-
-# Skipping 31, 32 because there's no py31-markupsafe, py32-markupsafe
python.versions 26 27 33
if {${name} ne ${subport}} {
@@ -41,13 +37,18 @@
depends_run-append port:py${python.version}-decorator \
port:py${python.version}-pytools
+ patch.pre_args -p1
+ patchfiles patch-setup.py.diff
+
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}"
+ livecheck.url https://pypi.python.org/pypi/${_name}/json
+ livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160322/d443dba4/attachment.html>
More information about the macports-changes
mailing list