/[gentoo-x86]/dev-python/pyopencl/pyopencl-9999.ebuild
Gentoo

Diff of /dev-python/pyopencl/pyopencl-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.14
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 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 $ 3# $Header: /var/cvsroot/gentoo-x86/dev-python/pyopencl/pyopencl-9999.ebuild,v 1.14 2012/04/19 07:32:38 xarthisius Exp $
4# Ebuild generated by g-pypi 0.2.1 (rev. 204)
5 4
6EAPI="2" 5EAPI="4"
6PYTHON_DEPEND="2"
7SUPPORT_PYTHON_ABIS="1"
8RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
7 9
8inherit git distutils 10inherit distutils git-2
9 11
10EGIT_REPO_URI="http://git.tiker.net/trees/pyopencl.git" 12EGIT_REPO_URI="http://git.tiker.net/trees/pyopencl.git"
11 13
12DESCRIPTION="Python wrapper for OpenCL" 14DESCRIPTION="Python wrapper for OpenCL"
13HOMEPAGE="http://mathema.tician.de/software/pyopencl" 15HOMEPAGE="http://mathema.tician.de/software/pyopencl http://pypi.python.org/pypi/pyopencl"
14SRC_URI="" 16SRC_URI=""
15 17
16LICENSE="GPL-2" 18LICENSE="GPL-2"
17SLOT="0" 19SLOT="0"
18KEYWORDS="" 20KEYWORDS=""
19IUSE="examples opengl" 21IUSE="examples opengl"
20 22
21RDEPEND="dev-libs/boost[python] 23RDEPEND=">=dev-libs/boost-1.48[python]
24 dev-python/decorator
25 dev-python/numpy
26 dev-python/mako
22 =dev-python/pytools-9999 27 =dev-python/pytools-9999
23 >=dev-python/numpy-1.0.4 28 >=virtual/opencl-0-r1"
24 >=dev-util/nvidia-cuda-toolkit-3.0"
25DEPEND="${RDEPEND}" 29DEPEND="${RDEPEND}"
26 30
27src_unpack() 31DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
28{
29 git_src_unpack
30}
31 32
32src_configure() 33src_configure()
33{ 34{
34 if use opengl; then 35 configuration() {
35 myconf="${myconf} --cl-enable-gl" 36 local myconf=()
36 fi
37 37
38 ./configure.py --boost-python-libname=boost_python-mt \ 38 if use opengl; then
39 --boost-thread-libname=boost_thread-mt --boost-compiler=gcc \ 39 myconf+=(--cl-enable-gl)
40 fi
41
42 "$(PYTHON)" configure.py \
43 --boost-compiler=gcc \
44 --boost-python-libname=boost_python-${PYTHON_ABI}-mt \
45 --no-use-shipped-boost \
40 ${myconf} 46 "${myconf[@]}"
47 }
48 python_execute_function -s configuration
41} 49}
42 50
43src_install() 51src_install()
44{ 52{
45 distutils_src_install 53 distutils_src_install
46 insinto /usr/share/doc/${PF} 54
47 if use examples; then 55 if use examples; then
56 insinto /usr/share/doc/${PF}
48 doins -r examples || die 57 doins -r examples
49 fi 58 fi
50} 59}
51 60
52pkg_postinst() 61pkg_postinst()
53{ 62{

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20