/[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.4 - (show annotations) (download)
Fri Dec 31 16:51:22 2010 UTC (9 years, 8 months ago) by arfrever
Branch: MAIN
Changes since 1.3: +8 -6 lines
Fix dependencies. Set SUPPORT_PYTHON_ABIS.

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

1 # Copyright 1999-2010 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.3 2010/12/12 19:33:31 spock Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.* *-jython"
9
10 inherit git distutils
11
12 EGIT_REPO_URI="http://git.tiker.net/trees/pyopencl.git"
13
14 DESCRIPTION="Python wrapper for OpenCL"
15 HOMEPAGE="http://mathema.tician.de/software/pyopencl"
16 SRC_URI=""
17
18 LICENSE="GPL-2"
19 SLOT="0"
20 KEYWORDS=""
21 IUSE="examples opengl"
22
23 RDEPEND=">=dev-python/numpy-1.0.4
24 =dev-python/pytools-9999
25 >=dev-util/nvidia-cuda-toolkit-3.0"
26 DEPEND="${RDEPEND}
27 dev-libs/boost[python]"
28
29 src_unpack()
30 {
31 git_src_unpack
32 }
33
34 src_configure()
35 {
36 if use opengl; then
37 myconf="${myconf} --cl-enable-gl"
38 fi
39
40 ./configure.py --boost-python-libname=boost_python-mt \
41 --boost-thread-libname=boost_thread-mt --boost-compiler=gcc \
42 ${myconf}
43 }
44
45 src_install()
46 {
47 distutils_src_install
48 insinto /usr/share/doc/${PF}
49 if use examples; then
50 doins -r examples || die
51 fi
52 }
53
54 pkg_postinst()
55 {
56 distutils_pkg_postinst
57 if use examples; then
58 elog "Some of the examples provided by this package require dev-python/matplotlib."
59 fi
60 }

  ViewVC Help
Powered by ViewVC 1.1.20