summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Januszewski <spock@gentoo.org>2009-12-24 19:27:57 +0000
committerMichael Januszewski <spock@gentoo.org>2009-12-24 19:27:57 +0000
commita1c0a7a96e0fa9bce7608beafad16d849d4d9594 (patch)
tree7db448465117c41f9778d664e2b1a40c12bd1227 /dev-python/pycuda
parentCleanup (diff)
downloadgentoo-2-a1c0a7a96e0fa9bce7608beafad16d849d4d9594.tar.gz
gentoo-2-a1c0a7a96e0fa9bce7608beafad16d849d4d9594.tar.bz2
gentoo-2-a1c0a7a96e0fa9bce7608beafad16d849d4d9594.zip
Version bump (bug #281255).
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pycuda')
-rw-r--r--dev-python/pycuda/ChangeLog8
-rw-r--r--dev-python/pycuda/files/pycuda-0.93-fix-include-path.patch41
-rw-r--r--dev-python/pycuda/pycuda-0.93.ebuild51
3 files changed, 99 insertions, 1 deletions
diff --git a/dev-python/pycuda/ChangeLog b/dev-python/pycuda/ChangeLog
index 1d75572d9544..b46628c998cf 100644
--- a/dev-python/pycuda/ChangeLog
+++ b/dev-python/pycuda/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/pycuda
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pycuda/ChangeLog,v 1.3 2009/11/14 16:50:24 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pycuda/ChangeLog,v 1.4 2009/12/24 19:27:56 spock Exp $
+
+*pycuda-0.93 (24 Dec 2009)
+
+ 24 Dec 2009; Michał Januszewski <spock@gentoo.org> +pycuda-0.93.ebuild,
+ +files/pycuda-0.93-fix-include-path.patch:
+ Version bump (bug #281255).
14 Nov 2009; Tomáš Chvátal <scarabeus@gentoo.org> pycuda-9999.ebuild:
Drop kewords on live package. Fix QA issues on it.
diff --git a/dev-python/pycuda/files/pycuda-0.93-fix-include-path.patch b/dev-python/pycuda/files/pycuda-0.93-fix-include-path.patch
new file mode 100644
index 000000000000..ab765ae19479
--- /dev/null
+++ b/dev-python/pycuda/files/pycuda-0.93-fix-include-path.patch
@@ -0,0 +1,41 @@
+diff -r -u -w pycuda-0.93-old/pycuda/compiler.py pycuda-0.93/pycuda/compiler.py
+--- pycuda-0.93-old/pycuda/compiler.py 2009-05-28 07:45:53.000000000 -0500
++++ pycuda-0.93/pycuda/compiler.py 2009-08-12 15:49:00.000000000 -0500
+@@ -115,14 +115,25 @@
+ file, pathname, descr = find_module("pycuda")
+
+ from os.path import join, exists
+- installed_path = join(pathname, "..", "include", "cuda")
++ installed_path = join(pathname, "..", "include", "pycuda")
+ development_path = join(pathname, "..", "src", "cuda")
+
++ usr_path = "/usr/include/pycuda"
++ usr_local_path = "/usr/local/include/pycuda"
++
++ import sys
++
+ if exists(installed_path):
+ return installed_path
+ elif exists(development_path):
+ return development_path
+ else:
++ if sys.platform == "linux2":
++ if exists(usr_path):
++ return usr_path
++ elif exists(usr_local_path):
++ return usr_local_path
++
+ raise RuntimeError("could not find path PyCUDA's C header files")
+
+
+diff -r -u -w pycuda-0.93-old/setup.py pycuda-0.93/setup.py
+--- pycuda-0.93-old/setup.py 2009-08-10 08:17:18.000000000 -0500
++++ pycuda-0.93/setup.py 2009-08-12 15:47:22.000000000 -0500
+@@ -314,7 +314,7 @@
+ ],
+
+ data_files=[
+- ("include/cuda", glob.glob("src/cuda/*.hpp"))
++ ("include/pycuda", glob.glob("src/cuda/*.hpp"))
+ ],
+ )
diff --git a/dev-python/pycuda/pycuda-0.93.ebuild b/dev-python/pycuda/pycuda-0.93.ebuild
new file mode 100644
index 000000000000..66fa6d0226ea
--- /dev/null
+++ b/dev-python/pycuda/pycuda-0.93.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pycuda/pycuda-0.93.ebuild,v 1.1 2009/12/24 19:27:56 spock Exp $
+
+EAPI="2"
+
+inherit distutils eutils
+
+DESCRIPTION="Python wrapper for NVIDIA CUDA"
+HOMEPAGE="http://mathema.tician.de/software/pycuda"
+SRC_URI="http://pypi.python.org/packages/source/p/pycuda/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+RDEPEND="dev-python/pytools
+ dev-libs/boost[python]
+ >=dev-util/nvidia-cuda-toolkit-2.0
+ >=dev-python/numpy-1.0.4"
+DEPEND="${RDEPEND}"
+
+src_prepare()
+{
+ epatch "${FILESDIR}"/${P}-fix-include-path.patch
+}
+
+src_configure()
+{
+ ./configure.py --cuda-root="${ROOT}opt/cuda" \
+ --boost-python-libname=boost_python-mt \
+ --boost-thread-libname=boost_thread-mt
+}
+
+src_install()
+{
+ distutils_src_install
+ insinto /usr/share/doc/${PF}
+ if use examples; then
+ doins -r examples || die
+ fi
+}
+
+pkg_postinst()
+{
+ distutils_pkg_postinst
+ if use examples; then
+ elog "Some of the examples provided by this package require dev-python/matplotlib."
+ fi
+}