summaryrefslogtreecommitdiff
path: root/community/python2-pyopencl
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/python2-pyopencl
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/python2-pyopencl')
-rw-r--r--community/python2-pyopencl/LICENSE.txt20
-rw-r--r--community/python2-pyopencl/PKGBUILD36
2 files changed, 56 insertions, 0 deletions
diff --git a/community/python2-pyopencl/LICENSE.txt b/community/python2-pyopencl/LICENSE.txt
new file mode 100644
index 000000000..3ce400f9d
--- /dev/null
+++ b/community/python2-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/python2-pyopencl/PKGBUILD b/community/python2-pyopencl/PKGBUILD
new file mode 100644
index 000000000..94049932f
--- /dev/null
+++ b/community/python2-pyopencl/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 42723 2011-03-19 23:12:59Z stephane $
+# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
+pkgname=python2-pyopencl
+pkgver=0.92
+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')
+depends=('python2' 'boost' 'python2-numpy' 'libcl' 'opencl-headers')
+makedepends=('ctags' 'python2-distribute')
+provides=('pyopencl=${pkgver}')
+replaces=('pyopencl')
+conflicts=('pyopencl')
+source=("http://pypi.python.org/packages/source/p/pyopencl/pyopencl-${pkgver}.tar.gz"
+ 'LICENSE.txt')
+sha1sums=('5f683638328bc452e8ae5dceaf49c6059735fbca'
+ '2e6966b3d9b15603ce2c3ff79eeadd63c5d066b7')
+
+build() {
+ cd "${srcdir}/pyopencl-${pkgver}"
+ python2 ./configure.py --boost-inc-dir=/usr/include \
+ --boost-lib-dir=/usr/lib \
+ --boost-python-libname=boost_python \
+ --cl-inc-dir=/usr/include \
+ --cl-lib-dir=/usr/lib \
+ --cl-libname=OpenCL
+ python2 setup.py build
+}
+
+package() {
+ cd "${srcdir}/pyopencl-${pkgver}"
+ python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+
+ install -D -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}