/[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.1 - (show annotations) (download)
Mon Feb 8 11:40:43 2010 UTC (10 years, 7 months ago) by spock
Branch: MAIN
Add a live git ebuild.
(Portage version: 2.2_rc62/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/pycuda/pycuda-9999.ebuild,v 1.1 2009/08/09 08:44:46 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
25 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