[arch-commits] Commit in python-pyopencl/repos (6 files)
Felix Yan
fyan at archlinux.org
Sun Sep 20 09:55:29 UTC 2015
Date: Sunday, September 20, 2015 @ 11:55:29
Author: fyan
Revision: 141219
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
python-pyopencl/repos/community-staging-i686/
python-pyopencl/repos/community-staging-i686/LICENSE.txt
(from rev 141218, python-pyopencl/trunk/LICENSE.txt)
python-pyopencl/repos/community-staging-i686/PKGBUILD
(from rev 141218, python-pyopencl/trunk/PKGBUILD)
python-pyopencl/repos/community-staging-x86_64/
python-pyopencl/repos/community-staging-x86_64/LICENSE.txt
(from rev 141218, python-pyopencl/trunk/LICENSE.txt)
python-pyopencl/repos/community-staging-x86_64/PKGBUILD
(from rev 141218, python-pyopencl/trunk/PKGBUILD)
--------------------------------------+
community-staging-i686/LICENSE.txt | 20 +++++++++
community-staging-i686/PKGBUILD | 71 +++++++++++++++++++++++++++++++++
community-staging-x86_64/LICENSE.txt | 20 +++++++++
community-staging-x86_64/PKGBUILD | 71 +++++++++++++++++++++++++++++++++
4 files changed, 182 insertions(+)
Copied: python-pyopencl/repos/community-staging-i686/LICENSE.txt (from rev 141218, python-pyopencl/trunk/LICENSE.txt)
===================================================================
--- community-staging-i686/LICENSE.txt (rev 0)
+++ community-staging-i686/LICENSE.txt 2015-09-20 09:55:29 UTC (rev 141219)
@@ -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.
Copied: python-pyopencl/repos/community-staging-i686/PKGBUILD (from rev 141218, python-pyopencl/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-09-20 09:55:29 UTC (rev 141219)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Stéphane Gaudreault <stephane at archlinux.org>
+
+pkgbase=python-pyopencl
+pkgname=('python2-pyopencl' 'python-pyopencl' 'pyopencl-headers')
+pkgver=2015.1
+pkgrel=2
+pkgdesc="A complete, object-oriented language binding of OpenCL to Python"
+arch=('i686' 'x86_64')
+url="http://mathema.tician.de/software/pyopencl"
+license=('custom')
+epoch=1
+makedepends=('boost-libs' 'ctags' 'python2-setuptools' 'python-setuptools' '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=('feb067a8dcccf2112996256915e6d11e68147eaf'
+ '2e6966b3d9b15603ce2c3ff79eeadd63c5d066b7')
+
+build() {
+ cd "$srcdir"
+
+ cp -a pyopencl-$pkgver{,-python2}
+
+ cd "${srcdir}/pyopencl-${pkgver}"
+ python3 ./configure.py --cl-enable-gl --no-use-shipped-boost --boost-python-libname=boost_python3
+ python3 setup.py build
+
+ cd "$srcdir/pyopencl-$pkgver-python2"
+ python2 ./configure.py --cl-enable-gl --no-use-shipped-boost --boost-python-libname=boost_python
+ python2 setup.py build
+}
+
+check(){
+ cd "${srcdir}/pyopencl-${pkgver}"
+ python3 setup.py test
+
+ cd "$srcdir/pyopencl-$pkgver-python2"
+ python2 setup.py test
+}
+
+package_python-pyopencl() {
+ depends=('libcl' 'opencl-headers' 'mesa' 'boost-libs' 'python' 'python-numpy' 'python-mako' 'python-pytools' 'pyopencl-headers' 'python-setuptools')
+
+ cd "${srcdir}/pyopencl-${pkgver}"
+ python3 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+
+ rm -fr "${pkgdir}"/usr/include
+
+ install -D -m644 $srcdir/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-pyopencl() {
+ depends=('libcl' 'opencl-headers' 'mesa' 'boost-libs' 'python2' 'python2-numpy' 'python2-mako' 'python2-pytools' 'pyopencl-headers' 'python2-setuptools')
+
+ cd "${srcdir}/pyopencl-${pkgver}-python2"
+ python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+
+ rm -fr "${pkgdir}"/usr/include/
+
+ install -D -m644 $srcdir/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_pyopencl-headers() {
+ cd "${srcdir}/pyopencl-${pkgver}/"
+ install -dm755 "${pkgdir}"/usr/include/pyopencl
+
+ for file in pyopencl-airy.cl pyopencl-bessel-j.cl pyopencl-bessel-y.cl pyopencl-complex.h pyopencl-eval-tbl.cl pyopencl-ranluxcl.cl; do
+ install -m644 pyopencl/cl/${file} "${pkgdir}"/usr/include/pyopencl
+ done
+ install -D -m644 $srcdir/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
Copied: python-pyopencl/repos/community-staging-x86_64/LICENSE.txt (from rev 141218, python-pyopencl/trunk/LICENSE.txt)
===================================================================
--- community-staging-x86_64/LICENSE.txt (rev 0)
+++ community-staging-x86_64/LICENSE.txt 2015-09-20 09:55:29 UTC (rev 141219)
@@ -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.
Copied: python-pyopencl/repos/community-staging-x86_64/PKGBUILD (from rev 141218, python-pyopencl/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-09-20 09:55:29 UTC (rev 141219)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Stéphane Gaudreault <stephane at archlinux.org>
+
+pkgbase=python-pyopencl
+pkgname=('python2-pyopencl' 'python-pyopencl' 'pyopencl-headers')
+pkgver=2015.1
+pkgrel=2
+pkgdesc="A complete, object-oriented language binding of OpenCL to Python"
+arch=('i686' 'x86_64')
+url="http://mathema.tician.de/software/pyopencl"
+license=('custom')
+epoch=1
+makedepends=('boost-libs' 'ctags' 'python2-setuptools' 'python-setuptools' '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=('feb067a8dcccf2112996256915e6d11e68147eaf'
+ '2e6966b3d9b15603ce2c3ff79eeadd63c5d066b7')
+
+build() {
+ cd "$srcdir"
+
+ cp -a pyopencl-$pkgver{,-python2}
+
+ cd "${srcdir}/pyopencl-${pkgver}"
+ python3 ./configure.py --cl-enable-gl --no-use-shipped-boost --boost-python-libname=boost_python3
+ python3 setup.py build
+
+ cd "$srcdir/pyopencl-$pkgver-python2"
+ python2 ./configure.py --cl-enable-gl --no-use-shipped-boost --boost-python-libname=boost_python
+ python2 setup.py build
+}
+
+check(){
+ cd "${srcdir}/pyopencl-${pkgver}"
+ python3 setup.py test
+
+ cd "$srcdir/pyopencl-$pkgver-python2"
+ python2 setup.py test
+}
+
+package_python-pyopencl() {
+ depends=('libcl' 'opencl-headers' 'mesa' 'boost-libs' 'python' 'python-numpy' 'python-mako' 'python-pytools' 'pyopencl-headers' 'python-setuptools')
+
+ cd "${srcdir}/pyopencl-${pkgver}"
+ python3 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+
+ rm -fr "${pkgdir}"/usr/include
+
+ install -D -m644 $srcdir/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-pyopencl() {
+ depends=('libcl' 'opencl-headers' 'mesa' 'boost-libs' 'python2' 'python2-numpy' 'python2-mako' 'python2-pytools' 'pyopencl-headers' 'python2-setuptools')
+
+ cd "${srcdir}/pyopencl-${pkgver}-python2"
+ python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+
+ rm -fr "${pkgdir}"/usr/include/
+
+ install -D -m644 $srcdir/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_pyopencl-headers() {
+ cd "${srcdir}/pyopencl-${pkgver}/"
+ install -dm755 "${pkgdir}"/usr/include/pyopencl
+
+ for file in pyopencl-airy.cl pyopencl-bessel-j.cl pyopencl-bessel-y.cl pyopencl-complex.h pyopencl-eval-tbl.cl pyopencl-ranluxcl.cl; do
+ install -m644 pyopencl/cl/${file} "${pkgdir}"/usr/include/pyopencl
+ done
+ install -D -m644 $srcdir/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list