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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Wed Apr 8 08:05:10 2015 UTC (5 years, 5 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +3 -3 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-9999.ebuild,v 1.15 2014/12/25 19:22:00 mgorny Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
7
8 inherit distutils-r1 git-2
9
10 EGIT_REPO_URI="http://git.tiker.net/trees/pyopencl.git"
11
12 DESCRIPTION="Python wrapper for OpenCL"
13 HOMEPAGE="http://mathema.tician.de/software/pyopencl http://pypi.python.org/pypi/pyopencl"
14 SRC_URI=""
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS=""
19 IUSE="examples opengl"
20
21 RDEPEND=">=dev-libs/boost-1.48[python,${PYTHON_USEDEP}]
22 dev-python/decorator[${PYTHON_USEDEP}]
23 dev-python/numpy[${PYTHON_USEDEP}]
24 dev-python/mako[${PYTHON_USEDEP}]
25 >=dev-python/pytools-9999[${PYTHON_USEDEP}]
26 >=virtual/opencl-0-r1"
27 DEPEND="${RDEPEND}"
28
29 src_configure()
30 {
31 local myconf=()
32 if use opengl; then
33 myconf+=(--cl-enable-gl)
34 fi
35
36 "${PYTHON}" configure.py \
37 --boost-compiler=gcc \
38 --boost-python-libname=boost_python-${PYTHON_ABI}-mt \
39 --no-use-shipped-boost \
40 "${myconf[@]}"
41 }
42
43 python_install_all() {
44 if use examples; then
45 local EXAMPLES=( examples/. )
46 einfo "Some of the examples provided by this package require dev-python/matplotlib."
47 fi
48 distutils-r1_python_install_all
49 }

  ViewVC Help
Powered by ViewVC 1.1.20