diff options
author | root <root@rshg054.dnsready.net> | 2012-07-26 03:11:33 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-07-26 03:11:33 +0000 |
commit | c4c5143448e3be178c254e8f9f1ab24661dc3b20 (patch) | |
tree | b37c17c6a52a96ac527adc8958976a94de73fdc5 /community/python-pyopencl | |
parent | 3083719ddb24bbb452e7ddba34bec067ea249056 (diff) |
Thu Jul 26 03:11:33 UTC 2012
Diffstat (limited to 'community/python-pyopencl')
-rw-r--r-- | community/python-pyopencl/LICENSE.txt | 20 | ||||
-rw-r--r-- | community/python-pyopencl/PKGBUILD | 48 |
2 files changed, 68 insertions, 0 deletions
diff --git a/community/python-pyopencl/LICENSE.txt b/community/python-pyopencl/LICENSE.txt new file mode 100644 index 000000000..3ce400f9d --- /dev/null +++ b/community/python-pyopencl/LICENSE.txt @@ -0,0 +1,20 @@ +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. diff --git a/community/python-pyopencl/PKGBUILD b/community/python-pyopencl/PKGBUILD new file mode 100644 index 000000000..cb5cd4e25 --- /dev/null +++ b/community/python-pyopencl/PKGBUILD @@ -0,0 +1,48 @@ +# $Id: PKGBUILD 74334 2012-07-24 17:36:16Z stephane $ +# Maintainer: Stéphane Gaudreault <stephane@archlinux.org> + +pkgbase=python-pyopencl +pkgname=('python2-pyopencl' 'python-pyopencl') +pkgver=2012.1 +pkgrel=3 +pkgdesc="A complete, object-oriented language binding of OpenCL to Python" +arch=('i686' 'x86_64') +url="http://mathema.tician.de/software/pyopencl" +license=('custom') +makedepends=('ctags' 'python2-distribute' 'python-distribute' 'libcl' 'opencl-headers' 'mesa' 'boost' 'python2-mako' 'python-mako' 'python-numpy' 'python2-numpy') +source=("http://pypi.python.org/packages/source/p/pyopencl/pyopencl-${pkgver}.tar.gz" + 'LICENSE.txt') +sha1sums=('ef2460d5e9b883d8afe0ec47863a243b6f8ac7ff' + '2e6966b3d9b15603ce2c3ff79eeadd63c5d066b7') + +build() { + cd "$srcdir" + + cp -a pyopencl-$pkgver{,-python2} + + cd "${srcdir}/pyopencl-${pkgver}" + python ./configure.py --cl-enable-gl --no-use-shipped-boost + python setup.py build + + cd "$srcdir/pyopencl-$pkgver-python2" + python2 ./configure.py --cl-enable-gl --no-use-shipped-boost + python2 setup.py build + +} + +package_python-pyopencl() { + depends=('libcl' 'opencl-headers' 'mesa' 'boost' 'python' 'python-numpy' 'python-mako' 'python-pytools') + + cd "${srcdir}/pyopencl-${pkgver}" + python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + + install -D -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +} +package_python2-pyopencl() { + depends=('libcl' 'opencl-headers' 'mesa' 'boost' 'python2' 'python2-numpy' 'python2-mako' 'python2-pytools') + + cd "${srcdir}/pyopencl-${pkgver}-python2" + python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + + install -D -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +} |