diff options
author | Patrick Lauer <patrick@gentoo.org> | 2017-09-18 19:50:32 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2017-09-18 19:50:57 +0000 |
commit | 7725089b142770a5874dfefc2ce010ea62e51fd2 (patch) | |
tree | ea69807385b78188afc8cd61d831c87843e9758d /dev-python/pyopencl | |
parent | app-i18n/fcitx: Add missing dependency on x11-misc/xkeyboard-config. (diff) | |
download | gentoo-7725089b142770a5874dfefc2ce010ea62e51fd2.tar.gz gentoo-7725089b142770a5874dfefc2ce010ea62e51fd2.tar.bz2 gentoo-7725089b142770a5874dfefc2ce010ea62e51fd2.zip |
dev-python/pyopencl: Bump
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-python/pyopencl')
-rw-r--r-- | dev-python/pyopencl/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pyopencl/pyopencl-2017.2.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/pyopencl/Manifest b/dev-python/pyopencl/Manifest index d6e8ea40687d..baa0be000202 100644 --- a/dev-python/pyopencl/Manifest +++ b/dev-python/pyopencl/Manifest @@ -1,2 +1,3 @@ DIST pyopencl-2014.1.tar.gz 1642825 SHA256 7c8df4f22ef49516a1444760dc622a037c83079ff60ff81779e60cb9fc5410e7 SHA512 da3e4e8d95605381d87db482f61fe7030fe244611a3c35d84c88210bcfb3472dc197be721f92e46e6828cc5d0245981ae004331a7c19e7fd8011a0aab593072f WHIRLPOOL e9d3c742c6ef217cf1f223990f852ae5b5ef50b7eae3513955da00f41134d9805e2078c16cd31429e327ea64a7ea16c15c014a749a3a532c3a11e4babdb91202 DIST pyopencl-2016.1.tar.gz 311327 SHA256 54b6e8ad02dc437807739bd53e43851efe979bd51ec87996e44b94ab67238297 SHA512 3be8da315f9b4a4e03071152bb5968c5c7b102cbae6c70f358438cfd7951d12970a76dd8e922187ff73e47f7d0ce7a070e6f303dbe364c016796fa65d7e1de71 WHIRLPOOL 23514d2ff8b578d623506033c749df5fd1d5604f5deefda72e817c688df9337c608d291f5ae8efc0e227e857ef16b65adb51ebc20773d0f8e636665990902ea9 +DIST pyopencl-2017.2.tar.gz 350145 SHA256 039b689a58eb98e27a577ac086210deae959f40d657487f3199d2d217c270ff9 SHA512 49f2ff619d8c214a3962b8444e68ba415dda032abaf9eeab259fcd1b21fbaab10bd057035161baef7f0182995834082218a6667464c01645231a94c88aa5c18b WHIRLPOOL 6dbcad877482932641c26c398ed464560c9787f5ef0fb9db0591c82dacdfe2fcfbe22db672b6e319d434e9bae59133c71fa4d1ac05eef4ada5b70bdf4f350f47 diff --git a/dev-python/pyopencl/pyopencl-2017.2.ebuild b/dev-python/pyopencl/pyopencl-2017.2.ebuild new file mode 100644 index 000000000000..f61d50f65f40 --- /dev/null +++ b/dev-python/pyopencl/pyopencl-2017.2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit distutils-r1 + +DESCRIPTION="Python wrapper for OpenCL" +HOMEPAGE="http://mathema.tician.de/software/pyopencl https://pypi.python.org/pypi/pyopencl" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples opengl" + +RDEPEND=" + >=dev-libs/boost-1.48[python,${PYTHON_USEDEP}] + >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] + >=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}] + >=dev-python/decorator-3.2.0[${PYTHON_USEDEP}] + dev-python/mako[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + >=dev-python/pytools-2015.1.2[${PYTHON_USEDEP}] + >=dev-python/six-1.9.0[${PYTHON_USEDEP}] + >=virtual/opencl-0-r1" +DEPEND="${RDEPEND}" + +src_configure() { + local myconf=() + if use opengl; then + myconf+=(--cl-enable-gl) + fi + + "${PYTHON}" configure.py \ + --boost-compiler=gcc \ + --boost-python-libname=boost_python-${PYTHON_ABI}-mt \ + --no-use-shipped-boost \ + "${myconf[@]}" +} + +python_install_all() { + if use examples; then + local EXAMPLES=( examples/. ) + einfo "Some of the examples provided by this package require dev-python/matplotlib." + fi + distutils-r1_python_install_all +} |