Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pyopencl: pyopencl-2012.1.ebuild ChangeLog
Date: Thu, 28 Jun 2012 07:20:38
Message-Id: 20120628072028.97E0C2004B@flycatcher.gentoo.org
1 patrick 12/06/28 07:20:28
2
3 Modified: ChangeLog
4 Added: pyopencl-2012.1.ebuild
5 Log:
6 Bump
7
8 (Portage version: 2.2.0_alpha114/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.18 dev-python/pyopencl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopencl/ChangeLog?rev=1.18&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopencl/ChangeLog?rev=1.18&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopencl/ChangeLog?r1=1.17&r2=1.18
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/pyopencl/ChangeLog,v
20 retrieving revision 1.17
21 retrieving revision 1.18
22 diff -u -r1.17 -r1.18
23 --- ChangeLog 19 Apr 2012 07:32:38 -0000 1.17
24 +++ ChangeLog 28 Jun 2012 07:20:28 -0000 1.18
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/pyopencl
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyopencl/ChangeLog,v 1.17 2012/04/19 07:32:38 xarthisius Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyopencl/ChangeLog,v 1.18 2012/06/28 07:20:28 patrick Exp $
30 +
31 +*pyopencl-2012.1 (28 Jun 2012)
32 +
33 + 28 Jun 2012; Patrick Lauer <patrick@g.o> +pyopencl-2012.1.ebuild:
34 + Bump
35
36 19 Apr 2012; Kacper Kowalik <xarthisius@g.o> pyopencl-2011.2-r1.ebuild,
37 pyopencl-9999.ebuild:
38 @@ -82,4 +87,3 @@
39 08 Feb 2010; MichaƂ Januszewski <spock@g.o>
40 +pyopencl-0.91.4.ebuild, +metadata.xml:
41 Initial commit.
42 -
43
44
45
46 1.1 dev-python/pyopencl/pyopencl-2012.1.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopencl/pyopencl-2012.1.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopencl/pyopencl-2012.1.ebuild?rev=1.1&content-type=text/plain
50
51 Index: pyopencl-2012.1.ebuild
52 ===================================================================
53 # Copyright 1999-2012 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/dev-python/pyopencl/pyopencl-2012.1.ebuild,v 1.1 2012/06/28 07:20:28 patrick Exp $
56
57 EAPI="4"
58 PYTHON_DEPEND="2"
59 SUPPORT_PYTHON_ABIS="1"
60 RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
61
62 inherit distutils
63
64 DESCRIPTION="Python wrapper for OpenCL"
65 HOMEPAGE="http://mathema.tician.de/software/pyopencl http://pypi.python.org/pypi/pyopencl"
66 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
67
68 LICENSE="GPL-2"
69 SLOT="0"
70 KEYWORDS="~amd64 ~x86"
71 IUSE="examples opengl"
72
73 RDEPEND=">=dev-libs/boost-1.48[python]
74 dev-python/decorator
75 dev-python/numpy
76 dev-python/mako
77 dev-python/pytools
78 >=virtual/opencl-0-r1"
79 DEPEND="${RDEPEND}"
80
81 DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
82
83 src_configure()
84 {
85 configuration() {
86 local myconf=()
87
88 if use opengl; then
89 myconf+=(--cl-enable-gl)
90 fi
91
92 "$(PYTHON)" configure.py \
93 --boost-compiler=gcc \
94 --boost-python-libname=boost_python-${PYTHON_ABI}-mt \
95 --no-use-shipped-boost \
96 "${myconf[@]}"
97 }
98 python_execute_function -s configuration
99 }
100
101 src_install()
102 {
103 distutils_src_install
104
105 if use examples; then
106 insinto /usr/share/doc/${PF}
107 doins -r examples
108 fi
109 }
110
111 pkg_postinst()
112 {
113 distutils_pkg_postinst
114 if use examples; then
115 elog "Some of the examples provided by this package require dev-python/matplotlib."
116 fi
117 }