Gentoo Archives: gentoo-commits

From: "Mike Gilbert (floppym)" <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pyopencl: pyopencl-9999.ebuild pyopencl-2011.2-r1.ebuild pyopencl-2011.2.ebuild ChangeLog pyopencl-0.92.ebuild
Date: Sat, 28 Jan 2012 19:51:56
Message-Id: 20120128195145.627252004B@flycatcher.gentoo.org
1 floppym 12/01/28 19:51:45
2
3 Modified: pyopencl-9999.ebuild pyopencl-2011.2.ebuild
4 ChangeLog
5 Added: pyopencl-2011.2-r1.ebuild
6 Removed: pyopencl-0.92.ebuild
7 Log:
8 Prepare for PYTHON_ABI-versioned Boost Python libraries in Boost 1.48. Delete old version. Patch by Arfrever.
9
10 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.8 dev-python/pyopencl/pyopencl-9999.ebuild
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopencl/pyopencl-9999.ebuild?rev=1.8&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopencl/pyopencl-9999.ebuild?rev=1.8&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopencl/pyopencl-9999.ebuild?r1=1.7&r2=1.8
18
19 Index: pyopencl-9999.ebuild
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/dev-python/pyopencl/pyopencl-9999.ebuild,v
22 retrieving revision 1.7
23 retrieving revision 1.8
24 diff -u -r1.7 -r1.8
25 --- pyopencl-9999.ebuild 21 Dec 2011 18:35:11 -0000 1.7
26 +++ pyopencl-9999.ebuild 28 Jan 2012 19:51:45 -0000 1.8
27 @@ -1,18 +1,18 @@
28 -# Copyright 1999-2011 Gentoo Foundation
29 +# Copyright 1999-2012 Gentoo Foundation
30 # Distributed under the terms of the GNU General Public License v2
31 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyopencl/pyopencl-9999.ebuild,v 1.7 2011/12/21 18:35:11 vapier Exp $
32 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyopencl/pyopencl-9999.ebuild,v 1.8 2012/01/28 19:51:45 floppym Exp $
33
34 -EAPI="3"
35 +EAPI="4"
36 PYTHON_DEPEND="2"
37 SUPPORT_PYTHON_ABIS="1"
38 -RESTRICT_PYTHON_ABIS="3.* *-jython"
39 +RESTRICT_PYTHON_ABIS="3.* *-jython *-pypy-*"
40
41 inherit distutils git-2
42
43 EGIT_REPO_URI="http://git.tiker.net/trees/pyopencl.git"
44
45 DESCRIPTION="Python wrapper for OpenCL"
46 -HOMEPAGE="http://mathema.tician.de/software/pyopencl"
47 +HOMEPAGE="http://mathema.tician.de/software/pyopencl http://pypi.python.org/pypi/pyopencl"
48 SRC_URI=""
49
50 LICENSE="GPL-2"
51 @@ -20,29 +20,40 @@
52 KEYWORDS=""
53 IUSE="examples opengl"
54
55 -RDEPEND=">=dev-python/numpy-1.0.4
56 +RDEPEND=">=dev-libs/boost-1.48[python]
57 + dev-python/numpy
58 =dev-python/pytools-9999
59 virtual/opencl"
60 -DEPEND="${RDEPEND}
61 - dev-libs/boost[python]"
62 +DEPEND="${RDEPEND}"
63 +
64 +DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
65
66 src_configure()
67 {
68 - if use opengl; then
69 - myconf="${myconf} --cl-enable-gl"
70 - fi
71 + configuration() {
72 + local myconf=()
73
74 - "$(PYTHON -f)" ./configure.py --boost-python-libname=boost_python-mt \
75 - --boost-thread-libname=boost_thread-mt --boost-compiler=gcc \
76 - ${myconf}
77 + if use opengl; then
78 + myconf+=(--cl-enable-gl)
79 + fi
80 +
81 + "$(PYTHON)" configure.py \
82 + --boost-compiler=gcc \
83 + --boost-python-libname=boost_python-${PYTHON_ABI}-mt \
84 + --boost-thread-libname=boost_thread-mt \
85 + --no-use-shipped-boost \
86 + "${myconf[@]}"
87 + }
88 + python_execute_function -s configuration
89 }
90
91 src_install()
92 {
93 distutils_src_install
94 - insinto /usr/share/doc/${PF}
95 +
96 if use examples; then
97 - doins -r examples || die
98 + insinto /usr/share/doc/${PF}
99 + doins -r examples
100 fi
101 }
102
103
104
105
106 1.2 dev-python/pyopencl/pyopencl-2011.2.ebuild
107
108 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopencl/pyopencl-2011.2.ebuild?rev=1.2&view=markup
109 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopencl/pyopencl-2011.2.ebuild?rev=1.2&content-type=text/plain
110 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopencl/pyopencl-2011.2.ebuild?r1=1.1&r2=1.2
111
112 Index: pyopencl-2011.2.ebuild
113 ===================================================================
114 RCS file: /var/cvsroot/gentoo-x86/dev-python/pyopencl/pyopencl-2011.2.ebuild,v
115 retrieving revision 1.1
116 retrieving revision 1.2
117 diff -u -r1.1 -r1.2
118 --- pyopencl-2011.2.ebuild 8 Jan 2012 22:20:24 -0000 1.1
119 +++ pyopencl-2011.2.ebuild 28 Jan 2012 19:51:45 -0000 1.2
120 @@ -1,11 +1,11 @@
121 # Copyright 1999-2012 Gentoo Foundation
122 # Distributed under the terms of the GNU General Public License v2
123 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyopencl/pyopencl-2011.2.ebuild,v 1.1 2012/01/08 22:20:24 spock Exp $
124 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyopencl/pyopencl-2011.2.ebuild,v 1.2 2012/01/28 19:51:45 floppym Exp $
125
126 EAPI="3"
127 PYTHON_DEPEND="2"
128 SUPPORT_PYTHON_ABIS="1"
129 -RESTRICT_PYTHON_ABIS="3.* *-jython"
130 +RESTRICT_PYTHON_ABIS="3.* *-jython *-pypy-*"
131
132 inherit distutils
133
134 @@ -18,12 +18,11 @@
135 KEYWORDS="~amd64 ~x86"
136 IUSE="examples opengl"
137
138 -RDEPEND="dev-libs/boost[python]
139 +RDEPEND="<dev-libs/boost-1.48[python]
140 >=dev-python/numpy-1.0.4
141 dev-python/pytools
142 virtual/opencl"
143 -DEPEND="${RDEPEND}
144 - dev-libs/boost[python]"
145 +DEPEND="${RDEPEND}"
146
147 src_configure()
148 {
149
150
151
152 1.11 dev-python/pyopencl/ChangeLog
153
154 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopencl/ChangeLog?rev=1.11&view=markup
155 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopencl/ChangeLog?rev=1.11&content-type=text/plain
156 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopencl/ChangeLog?r1=1.10&r2=1.11
157
158 Index: ChangeLog
159 ===================================================================
160 RCS file: /var/cvsroot/gentoo-x86/dev-python/pyopencl/ChangeLog,v
161 retrieving revision 1.10
162 retrieving revision 1.11
163 diff -u -r1.10 -r1.11
164 --- ChangeLog 8 Jan 2012 22:20:24 -0000 1.10
165 +++ ChangeLog 28 Jan 2012 19:51:45 -0000 1.11
166 @@ -1,6 +1,13 @@
167 # ChangeLog for dev-python/pyopencl
168 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
169 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyopencl/ChangeLog,v 1.10 2012/01/08 22:20:24 spock Exp $
170 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyopencl/ChangeLog,v 1.11 2012/01/28 19:51:45 floppym Exp $
171 +
172 +*pyopencl-2011.2-r1 (28 Jan 2012)
173 +
174 + 28 Jan 2012; Mike Gilbert <floppym@g.o> +pyopencl-2011.2-r1.ebuild,
175 + -pyopencl-0.92.ebuild, pyopencl-2011.2.ebuild, pyopencl-9999.ebuild:
176 + Prepare for PYTHON_ABI-versioned Boost Python libraries in Boost 1.48. Delete
177 + old version. Patch by Arfrever.
178
179 *pyopencl-2011.2 (08 Jan 2012)
180
181
182
183
184 1.1 dev-python/pyopencl/pyopencl-2011.2-r1.ebuild
185
186 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopencl/pyopencl-2011.2-r1.ebuild?rev=1.1&view=markup
187 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyopencl/pyopencl-2011.2-r1.ebuild?rev=1.1&content-type=text/plain
188
189 Index: pyopencl-2011.2-r1.ebuild
190 ===================================================================
191 # Copyright 1999-2012 Gentoo Foundation
192 # Distributed under the terms of the GNU General Public License v2
193 # $Header: /var/cvsroot/gentoo-x86/dev-python/pyopencl/pyopencl-2011.2-r1.ebuild,v 1.1 2012/01/28 19:51:45 floppym Exp $
194
195 EAPI="4"
196 PYTHON_DEPEND="2"
197 SUPPORT_PYTHON_ABIS="1"
198 RESTRICT_PYTHON_ABIS="3.* *-jython *-pypy-*"
199
200 inherit distutils
201
202 DESCRIPTION="Python wrapper for OpenCL"
203 HOMEPAGE="http://mathema.tician.de/software/pyopencl http://pypi.python.org/pypi/pyopencl"
204 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
205
206 LICENSE="GPL-2"
207 SLOT="0"
208 KEYWORDS="~amd64 ~x86"
209 IUSE="examples opengl"
210
211 RDEPEND=">=dev-libs/boost-1.48[python]
212 dev-python/numpy
213 dev-python/pytools
214 virtual/opencl"
215 DEPEND="${RDEPEND}"
216
217 DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
218
219 src_configure()
220 {
221 configuration() {
222 local myconf=()
223
224 if use opengl; then
225 myconf+=(--cl-enable-gl)
226 fi
227
228 "$(PYTHON)" configure.py \
229 --boost-compiler=gcc \
230 --boost-python-libname=boost_python-${PYTHON_ABI}-mt \
231 --boost-thread-libname=boost_thread-mt \
232 --no-use-shipped-boost \
233 "${myconf[@]}"
234 }
235 python_execute_function -s configuration
236 }
237
238 src_install()
239 {
240 distutils_src_install
241
242 if use examples; then
243 insinto /usr/share/doc/${PF}
244 doins -r examples
245 fi
246 }
247
248 pkg_postinst()
249 {
250 distutils_pkg_postinst
251 if use examples; then
252 elog "Some of the examples provided by this package require dev-python/matplotlib."
253 fi
254 }