/[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.7 - (show annotations) (download)
Wed Dec 21 18:35:11 2011 UTC (8 years, 9 months ago) by vapier
Branch: MAIN
Changes since 1.6: +2 -2 lines
Depend on virtual/opencl so we get the headers/libraries we need #352006 by Diego Elio Pettenò.

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

1 # Copyright 1999-2011 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.6 2011/09/21 08:48:21 mgorny Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.* *-jython"
9
10 inherit distutils git-2
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 virtual/opencl"
26 DEPEND="${RDEPEND}
27 dev-libs/boost[python]"
28
29 src_configure()
30 {
31 if use opengl; then
32 myconf="${myconf} --cl-enable-gl"
33 fi
34
35 "$(PYTHON -f)" ./configure.py --boost-python-libname=boost_python-mt \
36 --boost-thread-libname=boost_thread-mt --boost-compiler=gcc \
37 ${myconf}
38 }
39
40 src_install()
41 {
42 distutils_src_install
43 insinto /usr/share/doc/${PF}
44 if use examples; then
45 doins -r examples || die
46 fi
47 }
48
49 pkg_postinst()
50 {
51 distutils_pkg_postinst
52 if use examples; then
53 elog "Some of the examples provided by this package require dev-python/matplotlib."
54 fi
55 }

  ViewVC Help
Powered by ViewVC 1.1.20