/[gentoo-x86]/dev-python/pyopencl/pyopencl-2014.1.ebuild
Gentoo

Contents of /dev-python/pyopencl/pyopencl-2014.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Apr 8 08:05:10 2015 UTC (5 years, 3 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
Drop old Python implementations

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/pyopencl/pyopencl-2014.1.ebuild,v 1.5 2015/03/08 23:56:31 pacho Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
7
8 inherit distutils-r1
9
10 DESCRIPTION="Python wrapper for OpenCL"
11 HOMEPAGE="http://mathema.tician.de/software/pyopencl http://pypi.python.org/pypi/pyopencl"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 x86"
17 IUSE="examples opengl"
18
19 RDEPEND=">=dev-libs/boost-1.48[python,${PYTHON_USEDEP}]
20 dev-python/decorator[${PYTHON_USEDEP}]
21 dev-python/numpy[${PYTHON_USEDEP}]
22 dev-python/mako[${PYTHON_USEDEP}]
23 dev-python/pytools[${PYTHON_USEDEP}]
24 >=virtual/opencl-0-r1"
25 DEPEND="${RDEPEND}"
26
27 src_configure()
28 {
29 local myconf=()
30 if use opengl; then
31 myconf+=(--cl-enable-gl)
32 fi
33
34 "${PYTHON}" configure.py \
35 --boost-compiler=gcc \
36 --boost-python-libname=boost_python-${PYTHON_ABI}-mt \
37 --no-use-shipped-boost \
38 "${myconf[@]}"
39 }
40
41 python_install_all() {
42 if use examples; then
43 local EXAMPLES=( examples/. )
44 einfo "Some of the examples provided by this package require dev-python/matplotlib."
45 fi
46 distutils-r1_python_install_all
47 }

  ViewVC Help
Powered by ViewVC 1.1.20