diff options
author | 2014-10-27 16:08:37 -0400 | |
---|---|---|
committer | 2014-10-27 16:08:37 -0400 | |
commit | 65463d89758256366cef6f4b8567a66d7b600f4e (patch) | |
tree | 9a2d260b959c7896ceb346efcb37f6f6eb7979a5 | |
parent | bump openafs-* packages to 1.6.10 (diff) | |
download | jtriley-65463d89758256366cef6f4b8567a66d7b600f4e.tar.gz jtriley-65463d89758256366cef6f4b8567a66d7b600f4e.tar.bz2 jtriley-65463d89758256366cef6f4b8567a66d7b600f4e.zip |
bump pycuda to latest 2014.1 version
-rw-r--r-- | dev-python/pycuda/ChangeLog | 108 | ||||
-rw-r--r-- | dev-python/pycuda/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pycuda/metadata.xml | 8 | ||||
-rw-r--r-- | dev-python/pycuda/pycuda-2014.1.ebuild | 88 |
4 files changed, 205 insertions, 0 deletions
diff --git a/dev-python/pycuda/ChangeLog b/dev-python/pycuda/ChangeLog new file mode 100644 index 0000000..3889f75 --- /dev/null +++ b/dev-python/pycuda/ChangeLog @@ -0,0 +1,108 @@ +# ChangeLog for dev-python/pycuda +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pycuda/ChangeLog,v 1.22 2013/11/23 09:32:46 jlec Exp $ + + 23 Nov 2013; Justin Lecher <jlec@gentoo.org> pycuda-2013.1.1.ebuild, + pycuda-9999.ebuild: + Fix py3 support, #484262 + +*pycuda-2013.1.1 (07 Jul 2013) + + 07 Jul 2013; Justin Lecher <jlec@gentoo.org> pycuda-2012.1.ebuild, + +pycuda-2013.1.1.ebuild, pycuda-9999.ebuild, metadata.xml: + Version Bump; fix usage of python r1 eclasses + + 02 Feb 2013; Pacho Ramos <pacho@gentoo.org> metadata.xml: + Assign to new maintainers per http://gentoo.2317880.n4.nabble.com/Packages-up- + for-grabs-due-spock-retirement-td256327.html + + 20 Jan 2013; Pacho Ramos <pacho@gentoo.org> -pycuda-2011.2.2-r1.ebuild, + metadata.xml: + Cleanup fue retirement, bug #35242 + +*pycuda-2012.1 (15 Jan 2013) + + 15 Jan 2013; Justin Lecher <jlec@gentoo.org> +pycuda-2012.1.ebuild, + metadata.xml: + Version Bump; bump to EAPI=5 and distutils-r1.eclass; depend on libcuda.so, + #403729 + + 08 Nov 2012; Diego E. Pettenò <flameeyes@gentoo.org> -pycuda-2011.2.2.ebuild: + Remove old version depending on older boost. + + 25 Feb 2012; Patrick Lauer <patrick@gentoo.org> pycuda-2011.2.2-r1.ebuild, + pycuda-2011.2.2.ebuild, pycuda-9999.ebuild: + Fixing accidental double asterisk + + 20 Feb 2012; Patrick Lauer <patrick@gentoo.org> pycuda-2011.2.2-r1.ebuild, + pycuda-2011.2.2.ebuild, pycuda-9999.ebuild: + Fixing pypy restricts to actually work + +*pycuda-2011.2.2-r1 (28 Jan 2012) + + 28 Jan 2012; Mike Gilbert <floppym@gentoo.org> +pycuda-2011.2.2-r1.ebuild, + pycuda-2011.2.2.ebuild, pycuda-9999.ebuild: + Prepare for PYTHON_ABI-versioned Boost Python libraries in Boost 1.48. Patch + by Arfrever. + +*pycuda-2011.2.2 (10 Jan 2012) + + 10 Jan 2012; Justin Lecher <jlec@gentoo.org> -pycuda-0.94.2.ebuild, + -pycuda-2011.1.2.ebuild, +pycuda-2011.2.2.ebuild, pycuda-9999.ebuild, + metadata.xml: + Version Bump, Dropped old, fixes python.eclass related issues, do not link + against bundled boost, fix finding of system cuda related libs, use git + submodules, #345517, #383041 and #384211; thanks JTRiley for the many fixes + + 21 Sep 2011; Michał Górny <mgorny@gentoo.org> pycuda-9999.ebuild: + Migrate to git-2. + +*pycuda-2011.1.2 (05 Sep 2011) + + 05 Sep 2011; Michał Januszewski <spock@gentoo.org> +pycuda-2011.1.2.ebuild: + Version bump. + + 01 Jan 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + pycuda-0.94.2.ebuild, pycuda-9999.ebuild: + Fix deprecation warnings. + + 01 Jan 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + -pycuda-0.92.ebuild, -pycuda-0.93.ebuild, + -files/pycuda-0.93-fix-include-path.patch: + Delete. + + 12 Dec 2010; Michał Januszewski <spock@gentoo.org> pycuda-0.94.2.ebuild, + pycuda-9999.ebuild: + Add PYTHON_DEPEND. + +*pycuda-0.94.2 (28 Nov 2010) + + 28 Nov 2010; Michał Januszewski <spock@gentoo.org> +pycuda-0.94.2.ebuild: + Version bump (bug #341531). + + 08 Feb 2010; Michał Januszewski <spock@gentoo.org> pycuda-0.93.ebuild, + pycuda-9999.ebuild: + Add the 'opengl' USE flag. + + 08 Feb 2010; Michał Januszewski <spock@gentoo.org> pycuda-9999.ebuild: + Depend on boost[python] instead of boost. + +*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. + +*pycuda-9999 (09 Aug 2009) + + 09 Aug 2009; Michał Januszewski <spock@gentoo.org> +pycuda-9999.ebuild: + Add a live git ebuild. Ebuild submitted by Justin T. Riley in bug #280576. + +*pycuda-0.92 (06 Jun 2009) + + 06 Jun 2009; Michał Januszewski <spock@gentoo.org> +pycuda-0.92.ebuild, + +metadata.xml: + Initial commit. diff --git a/dev-python/pycuda/Manifest b/dev-python/pycuda/Manifest new file mode 100644 index 0000000..ba6637e --- /dev/null +++ b/dev-python/pycuda/Manifest @@ -0,0 +1 @@ +DIST pycuda-2014.1.tar.gz 1588986 SHA256 28e8f7425d0bac03a6c80346a4e150024ef0e4740ce11cb54e6aef351127d7af SHA512 57e333941c472feea6974e583f9d27f7f5083011bd8a7cc0bc31d27032885a130f1f57a16b0730696c607b9dca32ad84b96c984cd82351800ec854acdfa8fe9f WHIRLPOOL c71876c6f203a0a8a996a90976ad3f012ce1497ee84534c7fb8876e19293766d4641fbac00a538b1ddb074b29f8d8347f39caae613839b38cf5ee9eb15a86c09 diff --git a/dev-python/pycuda/metadata.xml b/dev-python/pycuda/metadata.xml new file mode 100644 index 0000000..858a4b6 --- /dev/null +++ b/dev-python/pycuda/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci</herd> + <upstream> + <remote-id type="pypi">pycuda</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pycuda/pycuda-2014.1.ebuild b/dev-python/pycuda/pycuda-2014.1.ebuild new file mode 100644 index 0000000..6bf8cc7 --- /dev/null +++ b/dev-python/pycuda/pycuda-2014.1.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pycuda/pycuda-2013.1.1.ebuild,v 1.2 2013/11/23 09:32:46 jlec Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) + +inherit cuda distutils-r1 multilib + +DESCRIPTION="Python wrapper for NVIDIA CUDA" +HOMEPAGE="http://mathema.tician.de/software/pycuda/ http://pypi.python.org/pypi/pycuda" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples opengl test" + +RDEPEND=" + dev-libs/boost[python,${PYTHON_USEDEP}] + dev-python/decorator[${PYTHON_USEDEP}] + dev-python/mako[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + >=dev-python/pytools-2013[${PYTHON_USEDEP}] + dev-util/nvidia-cuda-toolkit + x11-drivers/nvidia-drivers + opengl? ( virtual/opengl )" +DEPEND="${RDEPEND} + test? ( + dev-python/mako[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] )" + +# We need write acccess /dev/nvidia0 and /dev/nvidiactl and the portage +# user is (usually) not in the video group +RESTRICT="userpriv" + +python_prepare_all() { + cuda_sanitize + sed \ + -e "s:'--preprocess':\'--preprocess\', \'--compiler-bindir=$(cuda_gccdir)\':g" \ + -e "s:\"--cubin\":\'--cubin\', \'--compiler-bindir=$(cuda_gccdir)\':g" \ + -e "s:/usr/include/pycuda:${S}/src/cuda:g" \ + -i pycuda/compiler.py || die + + touch siteconf.py || die + + distutils-r1_python_prepare_all +} + +python_configure() { + local myopts=() + use opengl && myopts+=( --cuda-enable-gl ) + + mkdir "${BUILD_DIR}" || die + cd "${BUILD_DIR}" || die + [[ -e ./siteconf.py ]] && rm -f ./siteconf.py + "${EPYTHON}" "${S}"/configure.py \ + --boost-inc-dir="${EPREFIX}/usr/include" \ + --boost-lib-dir="${EPREFIX}/usr/$(get_libdir)" \ + --boost-python-libname=boost_python-$(echo ${EPYTHON} | sed 's/python//')-mt \ + --boost-thread-libname=boost_thread-mt \ + --cuda-root="${EPREFIX}/opt/cuda" \ + --cudadrv-lib-dir="${EPREFIX}/usr/$(get_libdir)" \ + --cudart-lib-dir="${EPREFIX}/opt/cuda/$(get_libdir)" \ + --cuda-inc-dir="${EPREFIX}/opt/cuda/include" \ + --no-use-shipped-boost \ + "${myopts[@]}" +} + +src_test() { + # we need write access to this to run the tests + addwrite /dev/nvidia0 + addwrite /dev/nvidiactl + python_test() { + py.test --debug -v -v -v || die "Tests fail with ${EPYTHON}" + } + distutils-r1_src_test +} + +python_install_all() { + distutils-r1_python_install_all + + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} |