/[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.14 - (hide annotations) (download)
Thu Apr 19 07:32:38 2012 UTC (8 years, 5 months ago) by xarthisius
Branch: MAIN
Changes since 1.13: +2 -1 lines
Add missing dependency on dev-python/mako

(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)

1 floppym 1.8 # Copyright 1999-2012 Gentoo Foundation
2 spock 1.1 # Distributed under the terms of the GNU General Public License v2
3 xarthisius 1.14 # $Header: /var/cvsroot/gentoo-x86/dev-python/pyopencl/pyopencl-9999.ebuild,v 1.13 2012/04/19 07:25:25 xarthisius Exp $
4 spock 1.1
5 floppym 1.8 EAPI="4"
6 arfrever 1.4 PYTHON_DEPEND="2"
7     SUPPORT_PYTHON_ABIS="1"
8 patrick 1.10 RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
9 spock 1.1
10 mgorny 1.6 inherit distutils git-2
11 spock 1.1
12     EGIT_REPO_URI="http://git.tiker.net/trees/pyopencl.git"
13    
14     DESCRIPTION="Python wrapper for OpenCL"
15 floppym 1.8 HOMEPAGE="http://mathema.tician.de/software/pyopencl http://pypi.python.org/pypi/pyopencl"
16 spock 1.1 SRC_URI=""
17    
18     LICENSE="GPL-2"
19     SLOT="0"
20     KEYWORDS=""
21     IUSE="examples opengl"
22    
23 floppym 1.8 RDEPEND=">=dev-libs/boost-1.48[python]
24 xarthisius 1.13 dev-python/decorator
25 floppym 1.8 dev-python/numpy
26 xarthisius 1.14 dev-python/mako
27 spock 1.1 =dev-python/pytools-9999
28 neurogeek 1.11 >=virtual/opencl-0-r1"
29 floppym 1.8 DEPEND="${RDEPEND}"
30    
31     DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
32 spock 1.1
33     src_configure()
34     {
35 floppym 1.8 configuration() {
36     local myconf=()
37 spock 1.1
38 floppym 1.8 if use opengl; then
39     myconf+=(--cl-enable-gl)
40     fi
41    
42     "$(PYTHON)" configure.py \
43     --boost-compiler=gcc \
44     --boost-python-libname=boost_python-${PYTHON_ABI}-mt \
45     --no-use-shipped-boost \
46     "${myconf[@]}"
47     }
48     python_execute_function -s configuration
49 spock 1.1 }
50    
51     src_install()
52     {
53     distutils_src_install
54 floppym 1.8
55 spock 1.1 if use examples; then
56 floppym 1.8 insinto /usr/share/doc/${PF}
57     doins -r examples
58 spock 1.1 fi
59     }
60    
61     pkg_postinst()
62     {
63     distutils_pkg_postinst
64     if use examples; then
65     elog "Some of the examples provided by this package require dev-python/matplotlib."
66     fi
67     }

  ViewVC Help
Powered by ViewVC 1.1.20