/[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.3 - (hide annotations) (download)
Sun Dec 12 19:33:31 2010 UTC (9 years, 9 months ago) by spock
Branch: MAIN
Changes since 1.2: +2 -3 lines
Version bump.  Change dep on nvidia-drivers to nvidia-cuda-toolkit which now provides the OpenCL header files.

(Portage version: 2.1.9.25/cvs/Linux x86_64)

1 spock 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 spock 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-python/pyopencl/pyopencl-9999.ebuild,v 1.2 2010/05/17 10:33:58 spock Exp $
4 spock 1.1 # 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 spock 1.2 >=dev-python/numpy-1.0.4
24 spock 1.3 >=dev-util/nvidia-cuda-toolkit-3.0"
25 spock 1.1 DEPEND="${RDEPEND}"
26    
27     src_unpack()
28     {
29     git_src_unpack
30     }
31    
32     src_configure()
33     {
34     if use opengl; then
35     myconf="${myconf} --cl-enable-gl"
36     fi
37    
38     ./configure.py --boost-python-libname=boost_python-mt \
39     --boost-thread-libname=boost_thread-mt --boost-compiler=gcc \
40     ${myconf}
41     }
42    
43     src_install()
44     {
45     distutils_src_install
46     insinto /usr/share/doc/${PF}
47     if use examples; then
48     doins -r examples || die
49     fi
50     }
51    
52     pkg_postinst()
53     {
54     distutils_pkg_postinst
55     if use examples; then
56     elog "Some of the examples provided by this package require dev-python/matplotlib."
57     fi
58     }

  ViewVC Help
Powered by ViewVC 1.1.20