/[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.15 - (hide annotations) (download)
Thu Dec 25 19:22:00 2014 UTC (5 years, 8 months ago) by mgorny
Branch: MAIN
Changes since 1.14: +23 -41 lines
Add missing PYTHON_USEDEP. Port the changes to -9999.

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

1 mgorny 1.15 # Copyright 1999-2014 Gentoo Foundation
2 spock 1.1 # Distributed under the terms of the GNU General Public License v2
3 mgorny 1.15 # $Header: /var/cvsroot/gentoo-x86/dev-python/pyopencl/pyopencl-9999.ebuild,v 1.14 2012/04/19 07:32:38 xarthisius Exp $
4 spock 1.1
5 mgorny 1.15 EAPI=5
6     PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} )
7 spock 1.1
8 mgorny 1.15 inherit distutils-r1 git-2
9 spock 1.1
10     EGIT_REPO_URI="http://git.tiker.net/trees/pyopencl.git"
11    
12     DESCRIPTION="Python wrapper for OpenCL"
13 floppym 1.8 HOMEPAGE="http://mathema.tician.de/software/pyopencl http://pypi.python.org/pypi/pyopencl"
14 spock 1.1 SRC_URI=""
15    
16     LICENSE="GPL-2"
17     SLOT="0"
18     KEYWORDS=""
19     IUSE="examples opengl"
20    
21 mgorny 1.15 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 neurogeek 1.11 >=virtual/opencl-0-r1"
27 floppym 1.8 DEPEND="${RDEPEND}"
28    
29 spock 1.1 src_configure()
30     {
31 mgorny 1.15 local myconf=()
32     if use opengl; then
33     myconf+=(--cl-enable-gl)
34     fi
35 spock 1.1
36 mgorny 1.15 "${PYTHON}" configure.py \
37     --boost-compiler=gcc \
38     --boost-python-libname=boost_python-${PYTHON_ABI}-mt \
39     --no-use-shipped-boost \
40     "${myconf[@]}"
41 spock 1.1 }
42    
43 mgorny 1.15 python_install_all() {
44 spock 1.1 if use examples; then
45 mgorny 1.15 local EXAMPLES=( examples/. )
46     einfo "Some of the examples provided by this package require dev-python/matplotlib."
47 spock 1.1 fi
48 mgorny 1.15 distutils-r1_python_install_all
49 spock 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20