/[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.9 - (hide annotations) (download)
Mon Feb 20 14:29:13 2012 UTC (8 years, 7 months ago) by patrick
Branch: MAIN
Changes since 1.8: +2 -2 lines
Fixing pypy restricts to actually work

(Portage version: 2.2.0_alpha87/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 patrick 1.9 # $Header: /var/cvsroot/gentoo-x86/dev-python/pyopencl/pyopencl-9999.ebuild,v 1.8 2012/01/28 19:51:45 floppym 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.9 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     dev-python/numpy
25 spock 1.1 =dev-python/pytools-9999
26 vapier 1.7 virtual/opencl"
27 floppym 1.8 DEPEND="${RDEPEND}"
28    
29     DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
30 spock 1.1
31     src_configure()
32     {
33 floppym 1.8 configuration() {
34     local myconf=()
35 spock 1.1
36 floppym 1.8 if use opengl; then
37     myconf+=(--cl-enable-gl)
38     fi
39    
40     "$(PYTHON)" configure.py \
41     --boost-compiler=gcc \
42     --boost-python-libname=boost_python-${PYTHON_ABI}-mt \
43     --boost-thread-libname=boost_thread-mt \
44     --no-use-shipped-boost \
45     "${myconf[@]}"
46     }
47     python_execute_function -s configuration
48 spock 1.1 }
49    
50     src_install()
51     {
52     distutils_src_install
53 floppym 1.8
54 spock 1.1 if use examples; then
55 floppym 1.8 insinto /usr/share/doc/${PF}
56     doins -r examples
57 spock 1.1 fi
58     }
59    
60     pkg_postinst()
61     {
62     distutils_pkg_postinst
63     if use examples; then
64     elog "Some of the examples provided by this package require dev-python/matplotlib."
65     fi
66     }

  ViewVC Help
Powered by ViewVC 1.1.20