/[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.2 - (show annotations) (download)
Mon May 17 10:33:58 2010 UTC (10 years, 4 months ago) by spock
Branch: MAIN
Changes since 1.1: +3 -2 lines
Add a dependency on nvidia-drivers which provides a working OpenCL implementation.
(Portage version: 2.2_rc67/cvs/Linux x86_64, RepoMan options: --force)

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

  ViewVC Help
Powered by ViewVC 1.1.20