1 |
commit: acde501c0f1a1673ab84c9c316334b497bbf0a00 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 27 08:02:06 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 27 08:03:16 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acde501c |
7 |
|
8 |
sci-libs/libsigrok: drop removed ruby26 (and ruby entirely) |
9 |
|
10 |
Doesn't support newer Rubys, so drop Ruby support entirely. |
11 |
|
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
sci-libs/libsigrok/libsigrok-0.5.2-r2.ebuild | 36 +++------------------------- |
15 |
sci-libs/libsigrok/libsigrok-0.5.2-r3.ebuild | 36 +++------------------------- |
16 |
sci-libs/libsigrok/libsigrok-9999.ebuild | 35 +++------------------------ |
17 |
3 files changed, 9 insertions(+), 98 deletions(-) |
18 |
|
19 |
diff --git a/sci-libs/libsigrok/libsigrok-0.5.2-r2.ebuild b/sci-libs/libsigrok/libsigrok-0.5.2-r2.ebuild |
20 |
index 353b751959c9..fd7173899b54 100644 |
21 |
--- a/sci-libs/libsigrok/libsigrok-0.5.2-r2.ebuild |
22 |
+++ b/sci-libs/libsigrok/libsigrok-0.5.2-r2.ebuild |
23 |
@@ -4,10 +4,8 @@ |
24 |
EAPI="7" |
25 |
|
26 |
PYTHON_COMPAT=( python3_{8,9} ) |
27 |
-USE_RUBY="ruby26 ruby25" |
28 |
-RUBY_OPTIONAL="yes" |
29 |
|
30 |
-inherit python-r1 java-pkg-opt-2 ruby-ng udev xdg-utils |
31 |
+inherit python-r1 java-pkg-opt-2 udev xdg-utils |
32 |
|
33 |
if [[ ${PV} == *9999* ]]; then |
34 |
EGIT_REPO_URI="git://sigrok.org/${PN}" |
35 |
@@ -22,10 +20,9 @@ HOMEPAGE="https://sigrok.org/wiki/Libsigrok" |
36 |
|
37 |
LICENSE="GPL-3" |
38 |
SLOT="0/4" |
39 |
-IUSE="+cxx ftdi java parport python ruby serial static-libs test +udev usb" |
40 |
+IUSE="+cxx ftdi java parport python serial static-libs test +udev usb" |
41 |
REQUIRED_USE="java? ( cxx ) |
42 |
- python? ( cxx ${PYTHON_REQUIRED_USE} ) |
43 |
- ruby? ( cxx || ( $(ruby_get_use_targets) ) )" |
44 |
+ python? ( cxx ${PYTHON_REQUIRED_USE} )" |
45 |
|
46 |
RESTRICT="!test? ( test )" |
47 |
|
48 |
@@ -40,7 +37,6 @@ LIB_DEPEND=" |
49 |
${PYTHON_DEPS} |
50 |
>=dev-python/pygobject-3.0.0[${PYTHON_USEDEP}] |
51 |
) |
52 |
- ruby? ( $(ruby_implementations_depend) ) |
53 |
serial? ( >=dev-libs/libserialport-0.1.1[static-libs(+)] ) |
54 |
usb? ( virtual/libusb:1[static-libs(+)] ) |
55 |
" |
56 |
@@ -60,7 +56,6 @@ DEPEND="${LIB_DEPEND//\[static-libs(+)]} |
57 |
dev-python/numpy[${PYTHON_USEDEP}] |
58 |
dev-python/setuptools[${PYTHON_USEDEP}] |
59 |
) |
60 |
- ruby? ( >=dev-lang/swig-3.0.8 ) |
61 |
test? ( >=dev-libs/check-0.9.4 ) |
62 |
virtual/pkgconfig |
63 |
" |
64 |
@@ -71,13 +66,11 @@ PATCHES=( |
65 |
# https://sigrok.org/bugzilla/show_bug.cgi?id=1527 |
66 |
"${FILESDIR}/${P}-swig-4.patch" |
67 |
# https://sigrok.org/bugzilla/show_bug.cgi?id=1526 |
68 |
- "${FILESDIR}/${P}-ruby-swig-docs.patch" # bug 705074 |
69 |
"${FILESDIR}/${P}-check-0.15.patch" |
70 |
) |
71 |
|
72 |
pkg_setup() { |
73 |
use python && python_setup |
74 |
- use ruby && ruby-ng_pkg_setup |
75 |
java-pkg-opt-2_pkg_setup |
76 |
} |
77 |
|
78 |
@@ -89,15 +82,7 @@ sigrok_src_prepare() { |
79 |
[[ ${PV} == *9999* ]] && eautoreconf |
80 |
} |
81 |
|
82 |
-each_ruby_prepare() { |
83 |
- sigrok_src_prepare |
84 |
-} |
85 |
- |
86 |
src_prepare() { |
87 |
- if use ruby; then |
88 |
- cp -rl "${S}" "${WORKDIR}"/all || die |
89 |
- ruby-ng_src_prepare |
90 |
- fi |
91 |
default |
92 |
sigrok_src_prepare |
93 |
use python && python_copy_sources |
94 |
@@ -115,10 +100,6 @@ sigrok_src_configure() { |
95 |
"${@}" |
96 |
} |
97 |
|
98 |
-each_ruby_configure() { |
99 |
- RUBY="${RUBY}" sigrok_src_configure --enable-ruby --disable-python |
100 |
-} |
101 |
- |
102 |
each_python_configure() { |
103 |
cd "${BUILD_DIR}" |
104 |
sigrok_src_configure --disable-ruby --enable-python |
105 |
@@ -126,14 +107,9 @@ each_python_configure() { |
106 |
|
107 |
src_configure() { |
108 |
sigrok_src_configure --disable-ruby --disable-python |
109 |
- use ruby && ruby-ng_src_configure |
110 |
use python && python_foreach_impl each_python_configure |
111 |
} |
112 |
|
113 |
-each_ruby_compile() { |
114 |
- emake ruby-build |
115 |
-} |
116 |
- |
117 |
each_python_compile() { |
118 |
cd "${BUILD_DIR}" |
119 |
emake python-build |
120 |
@@ -141,7 +117,6 @@ each_python_compile() { |
121 |
|
122 |
src_compile() { |
123 |
default |
124 |
- use ruby && ruby-ng_src_compile |
125 |
use python && python_foreach_impl each_python_compile |
126 |
} |
127 |
|
128 |
@@ -149,10 +124,6 @@ src_test() { |
129 |
emake check |
130 |
} |
131 |
|
132 |
-each_ruby_install() { |
133 |
- emake ruby-install DESTDIR="${D}" |
134 |
-} |
135 |
- |
136 |
each_python_install() { |
137 |
cd "${BUILD_DIR}" |
138 |
emake python-install DESTDIR="${D}" |
139 |
@@ -162,7 +133,6 @@ each_python_install() { |
140 |
src_install() { |
141 |
default |
142 |
use python && python_foreach_impl each_python_install |
143 |
- use ruby && ruby-ng_src_install |
144 |
use udev && udev_dorules contrib/*.rules |
145 |
find "${D}" -name '*.la' -type f -delete || die |
146 |
} |
147 |
|
148 |
diff --git a/sci-libs/libsigrok/libsigrok-0.5.2-r3.ebuild b/sci-libs/libsigrok/libsigrok-0.5.2-r3.ebuild |
149 |
index 3523b5e36b13..3bc1b3e108fc 100644 |
150 |
--- a/sci-libs/libsigrok/libsigrok-0.5.2-r3.ebuild |
151 |
+++ b/sci-libs/libsigrok/libsigrok-0.5.2-r3.ebuild |
152 |
@@ -4,10 +4,8 @@ |
153 |
EAPI="7" |
154 |
|
155 |
PYTHON_COMPAT=( python3_{8,9,10} ) |
156 |
-USE_RUBY="ruby26 ruby25" |
157 |
-RUBY_OPTIONAL="yes" |
158 |
|
159 |
-inherit autotools python-r1 java-pkg-opt-2 ruby-ng udev xdg-utils |
160 |
+inherit autotools python-r1 java-pkg-opt-2 udev xdg-utils |
161 |
|
162 |
if [[ ${PV} == *9999* ]]; then |
163 |
EGIT_REPO_URI="git://sigrok.org/${PN}" |
164 |
@@ -22,10 +20,9 @@ HOMEPAGE="https://sigrok.org/wiki/Libsigrok" |
165 |
|
166 |
LICENSE="GPL-3" |
167 |
SLOT="0/4" |
168 |
-IUSE="bluetooth +cxx ftdi hidapi java parport python ruby serial static-libs test +udev usb" |
169 |
+IUSE="bluetooth +cxx ftdi hidapi java parport python serial static-libs test +udev usb" |
170 |
REQUIRED_USE="java? ( cxx ) |
171 |
- python? ( cxx ${PYTHON_REQUIRED_USE} ) |
172 |
- ruby? ( cxx || ( $(ruby_get_use_targets) ) )" |
173 |
+ python? ( cxx ${PYTHON_REQUIRED_USE} )" |
174 |
|
175 |
RESTRICT="!test? ( test )" |
176 |
|
177 |
@@ -42,7 +39,6 @@ LIB_DEPEND=" |
178 |
${PYTHON_DEPS} |
179 |
>=dev-python/pygobject-3.0.0[${PYTHON_USEDEP}] |
180 |
) |
181 |
- ruby? ( $(ruby_implementations_depend) ) |
182 |
serial? ( >=dev-libs/libserialport-0.1.1[static-libs(+)] ) |
183 |
usb? ( virtual/libusb:1[static-libs(+)] ) |
184 |
" |
185 |
@@ -62,7 +58,6 @@ DEPEND="${LIB_DEPEND//\[static-libs(+)]} |
186 |
dev-python/numpy[${PYTHON_USEDEP}] |
187 |
dev-python/setuptools[${PYTHON_USEDEP}] |
188 |
) |
189 |
- ruby? ( >=dev-lang/swig-3.0.8 ) |
190 |
test? ( >=dev-libs/check-0.9.4 ) |
191 |
virtual/pkgconfig |
192 |
" |
193 |
@@ -73,13 +68,11 @@ PATCHES=( |
194 |
# https://sigrok.org/bugzilla/show_bug.cgi?id=1527 |
195 |
"${FILESDIR}/${P}-swig-4.patch" |
196 |
# https://sigrok.org/bugzilla/show_bug.cgi?id=1526 |
197 |
- "${FILESDIR}/${P}-ruby-swig-docs.patch" # bug 705074 |
198 |
"${FILESDIR}/${P}-check-0.15.patch" |
199 |
) |
200 |
|
201 |
pkg_setup() { |
202 |
use python && python_setup |
203 |
- use ruby && ruby-ng_pkg_setup |
204 |
java-pkg-opt-2_pkg_setup |
205 |
} |
206 |
|
207 |
@@ -91,15 +84,7 @@ sigrok_src_prepare() { |
208 |
eautoreconf |
209 |
} |
210 |
|
211 |
-each_ruby_prepare() { |
212 |
- sigrok_src_prepare |
213 |
-} |
214 |
- |
215 |
src_prepare() { |
216 |
- if use ruby; then |
217 |
- cp -rl "${S}" "${WORKDIR}"/all || die |
218 |
- ruby-ng_src_prepare |
219 |
- fi |
220 |
default |
221 |
sigrok_src_prepare |
222 |
use python && python_copy_sources |
223 |
@@ -119,10 +104,6 @@ sigrok_src_configure() { |
224 |
"${@}" |
225 |
} |
226 |
|
227 |
-each_ruby_configure() { |
228 |
- RUBY="${RUBY}" sigrok_src_configure --enable-ruby --disable-python |
229 |
-} |
230 |
- |
231 |
each_python_configure() { |
232 |
cd "${BUILD_DIR}" |
233 |
sigrok_src_configure --disable-ruby --enable-python |
234 |
@@ -130,14 +111,9 @@ each_python_configure() { |
235 |
|
236 |
src_configure() { |
237 |
sigrok_src_configure --disable-ruby --disable-python |
238 |
- use ruby && ruby-ng_src_configure |
239 |
use python && python_foreach_impl each_python_configure |
240 |
} |
241 |
|
242 |
-each_ruby_compile() { |
243 |
- emake ruby-build |
244 |
-} |
245 |
- |
246 |
each_python_compile() { |
247 |
cd "${BUILD_DIR}" |
248 |
emake python-build |
249 |
@@ -145,7 +121,6 @@ each_python_compile() { |
250 |
|
251 |
src_compile() { |
252 |
default |
253 |
- use ruby && ruby-ng_src_compile |
254 |
use python && python_foreach_impl each_python_compile |
255 |
} |
256 |
|
257 |
@@ -153,10 +128,6 @@ src_test() { |
258 |
emake check |
259 |
} |
260 |
|
261 |
-each_ruby_install() { |
262 |
- emake ruby-install DESTDIR="${D}" |
263 |
-} |
264 |
- |
265 |
each_python_install() { |
266 |
cd "${BUILD_DIR}" |
267 |
emake python-install DESTDIR="${D}" |
268 |
@@ -166,7 +137,6 @@ each_python_install() { |
269 |
src_install() { |
270 |
default |
271 |
use python && python_foreach_impl each_python_install |
272 |
- use ruby && ruby-ng_src_install |
273 |
use udev && udev_dorules contrib/*.rules |
274 |
find "${D}" -name '*.la' -type f -delete || die |
275 |
} |
276 |
|
277 |
diff --git a/sci-libs/libsigrok/libsigrok-9999.ebuild b/sci-libs/libsigrok/libsigrok-9999.ebuild |
278 |
index c8561dcffd11..f75df88d8c40 100644 |
279 |
--- a/sci-libs/libsigrok/libsigrok-9999.ebuild |
280 |
+++ b/sci-libs/libsigrok/libsigrok-9999.ebuild |
281 |
@@ -4,10 +4,8 @@ |
282 |
EAPI="7" |
283 |
|
284 |
PYTHON_COMPAT=( python3_{8,9,10} ) |
285 |
-USE_RUBY="ruby26 ruby25" |
286 |
-RUBY_OPTIONAL="yes" |
287 |
|
288 |
-inherit python-r1 java-pkg-opt-2 ruby-ng udev xdg-utils |
289 |
+inherit python-r1 java-pkg-opt-2 udev xdg-utils |
290 |
|
291 |
if [[ ${PV} == *9999* ]]; then |
292 |
EGIT_REPO_URI="git://sigrok.org/${PN}" |
293 |
@@ -22,10 +20,9 @@ HOMEPAGE="https://sigrok.org/wiki/Libsigrok" |
294 |
|
295 |
LICENSE="GPL-3" |
296 |
SLOT="0/9999" |
297 |
-IUSE="bluetooth +cxx ftdi hidapi java nettle parport python ruby serial static-libs test +udev usb" |
298 |
+IUSE="bluetooth +cxx ftdi hidapi java nettle parport python serial static-libs test +udev usb" |
299 |
REQUIRED_USE="java? ( cxx ) |
300 |
- python? ( cxx ${PYTHON_REQUIRED_USE} ) |
301 |
- ruby? ( cxx || ( $(ruby_get_use_targets) ) )" |
302 |
+ python? ( cxx ${PYTHON_REQUIRED_USE} )" |
303 |
|
304 |
RESTRICT="!test? ( test )" |
305 |
|
306 |
@@ -43,7 +40,6 @@ LIB_DEPEND=" |
307 |
${PYTHON_DEPS} |
308 |
>=dev-python/pygobject-3.0.0[${PYTHON_USEDEP}] |
309 |
) |
310 |
- ruby? ( $(ruby_implementations_depend) ) |
311 |
serial? ( >=dev-libs/libserialport-0.1.1[static-libs(+)] ) |
312 |
usb? ( virtual/libusb:1[static-libs(+)] ) |
313 |
" |
314 |
@@ -63,7 +59,6 @@ DEPEND="${LIB_DEPEND//\[static-libs(+)]} |
315 |
dev-python/numpy[${PYTHON_USEDEP}] |
316 |
dev-python/setuptools[${PYTHON_USEDEP}] |
317 |
) |
318 |
- ruby? ( >=dev-lang/swig-3.0.8 ) |
319 |
test? ( >=dev-libs/check-0.9.4 ) |
320 |
virtual/pkgconfig |
321 |
" |
322 |
@@ -72,7 +67,6 @@ S="${WORKDIR}"/${P} |
323 |
|
324 |
pkg_setup() { |
325 |
use python && python_setup |
326 |
- use ruby && ruby-ng_pkg_setup |
327 |
java-pkg-opt-2_pkg_setup |
328 |
} |
329 |
|
330 |
@@ -84,15 +78,7 @@ sigrok_src_prepare() { |
331 |
[[ ${PV} == *9999* ]] && eautoreconf |
332 |
} |
333 |
|
334 |
-each_ruby_prepare() { |
335 |
- sigrok_src_prepare |
336 |
-} |
337 |
- |
338 |
src_prepare() { |
339 |
- if use ruby; then |
340 |
- cp -rl "${S}" "${WORKDIR}"/all || die |
341 |
- ruby-ng_src_prepare |
342 |
- fi |
343 |
default |
344 |
sigrok_src_prepare |
345 |
use python && python_copy_sources |
346 |
@@ -113,10 +99,6 @@ sigrok_src_configure() { |
347 |
"${@}" |
348 |
} |
349 |
|
350 |
-each_ruby_configure() { |
351 |
- RUBY="${RUBY}" sigrok_src_configure --enable-ruby --disable-python |
352 |
-} |
353 |
- |
354 |
each_python_configure() { |
355 |
cd "${BUILD_DIR}" |
356 |
sigrok_src_configure --disable-ruby --enable-python |
357 |
@@ -124,14 +106,9 @@ each_python_configure() { |
358 |
|
359 |
src_configure() { |
360 |
sigrok_src_configure --disable-ruby --disable-python |
361 |
- use ruby && ruby-ng_src_configure |
362 |
use python && python_foreach_impl each_python_configure |
363 |
} |
364 |
|
365 |
-each_ruby_compile() { |
366 |
- emake ruby-build |
367 |
-} |
368 |
- |
369 |
each_python_compile() { |
370 |
cd "${BUILD_DIR}" |
371 |
emake python-build |
372 |
@@ -139,7 +116,6 @@ each_python_compile() { |
373 |
|
374 |
src_compile() { |
375 |
default |
376 |
- use ruby && ruby-ng_src_compile |
377 |
use python && python_foreach_impl each_python_compile |
378 |
} |
379 |
|
380 |
@@ -147,10 +123,6 @@ src_test() { |
381 |
emake check |
382 |
} |
383 |
|
384 |
-each_ruby_install() { |
385 |
- emake ruby-install DESTDIR="${D}" |
386 |
-} |
387 |
- |
388 |
each_python_install() { |
389 |
cd "${BUILD_DIR}" |
390 |
emake python-install DESTDIR="${D}" |
391 |
@@ -160,7 +132,6 @@ each_python_install() { |
392 |
src_install() { |
393 |
default |
394 |
use python && python_foreach_impl each_python_install |
395 |
- use ruby && ruby-ng_src_install |
396 |
use udev && udev_dorules contrib/*.rules |
397 |
find "${D}" -name '*.la' -type f -delete || die |
398 |
} |