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

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20