1 |
commit: 8b42c8ee68fc3b3de5b4eb401f8432e936843b01 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 4 11:20:55 2021 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 4 11:23:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b42c8ee |
7 |
|
8 |
media-gfx/zbar: drop 0.23-r1 |
9 |
|
10 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
11 |
|
12 |
media-gfx/zbar/Manifest | 1 - |
13 |
media-gfx/zbar/files/zbar-0.10-errors.patch | 10 - |
14 |
media-gfx/zbar/files/zbar-0.23-r1-nonbash.patch | 120 ------------ |
15 |
...create_correct_pkconfig_file_for_zbar-qt5.patch | 71 ------- |
16 |
...3_fix_detection_of_errors_in_the_v4l_read.patch | 29 --- |
17 |
...3_reset_conversion_descriptor_after_close.patch | 25 --- |
18 |
media-gfx/zbar/zbar-0.23-r1.ebuild | 217 --------------------- |
19 |
7 files changed, 473 deletions(-) |
20 |
|
21 |
diff --git a/media-gfx/zbar/Manifest b/media-gfx/zbar/Manifest |
22 |
index 73e9e49982d..a72b685b4bf 100644 |
23 |
--- a/media-gfx/zbar/Manifest |
24 |
+++ b/media-gfx/zbar/Manifest |
25 |
@@ -1,2 +1 @@ |
26 |
DIST zbar-0.23.1.tar.gz 1019268 BLAKE2B 5aa8725a0945b6f50eb78bb7b8a61e5b46356b18f07e8af778a63d46b94c894d9e827ed71bd89060898ecbdaebc5b4bb6e638939d7bc0dede390f7137770049f SHA512 ae7741cf750a10cf53dc11abcd482c3885507153ee37f6e3364ed5ed72184ebb009560b8c40d8090603a551fb681700a962838a59ce77d005d080ee49fbfa54b |
27 |
-DIST zbar-0.23.tar.gz 1301948 BLAKE2B dd74ce44bcb10f8a7cf180b982e5bd82f1f5674540931377d207ab730bb2d080fe222bfc42d4a3d70895ad53b78638e73c2294018b80d30dc28f7e6ecc14c761 SHA512 9737f9dca42c29f92aa1eca5c0808da34f1d16c88c65241c9e3984c487e502f398437e7a707a1edd2c440f784db537ba33ea4008a2d1c1caaf5eea6431b1400b |
28 |
|
29 |
diff --git a/media-gfx/zbar/files/zbar-0.10-errors.patch b/media-gfx/zbar/files/zbar-0.10-errors.patch |
30 |
deleted file mode 100644 |
31 |
index 63328ce664b..00000000000 |
32 |
--- a/media-gfx/zbar/files/zbar-0.10-errors.patch |
33 |
+++ /dev/null |
34 |
@@ -1,10 +0,0 @@ |
35 |
---- zbar-0.10/include/zbar/Exception.h |
36 |
-+++ zbar-0.10/include/zbar/Exception.h |
37 |
-@@ -32,6 +32,7 @@ |
38 |
- |
39 |
- #include <exception> |
40 |
- #include <new> |
41 |
-+#include <cstddef> |
42 |
- |
43 |
- namespace zbar { |
44 |
- |
45 |
|
46 |
diff --git a/media-gfx/zbar/files/zbar-0.23-r1-nonbash.patch b/media-gfx/zbar/files/zbar-0.23-r1-nonbash.patch |
47 |
deleted file mode 100644 |
48 |
index 1206a209d45..00000000000 |
49 |
--- a/media-gfx/zbar/files/zbar-0.23-r1-nonbash.patch |
50 |
+++ /dev/null |
51 |
@@ -1,120 +0,0 @@ |
52 |
-https://bugs.gentoo.org/769716 |
53 |
- |
54 |
-From 4bd586181dde6196cb60602f228c4deb07818989 Mon Sep 17 00:00:00 2001 |
55 |
-From: Klaus Ethgen <Klaus@××××××.de> |
56 |
-Date: Sun, 7 Feb 2021 14:22:52 +0100 |
57 |
-Subject: [PATCH] =?iso8859-1?q?Configure-Patch=20f=FCr=20nicht-bash?= |
58 |
-MIME-Version: 1.0 |
59 |
-Content-Type: text/plain; charset=iso8859-1 |
60 |
-Content-Transfer-Encoding: 8bit |
61 |
- |
62 |
---- |
63 |
- configure.ac | 26 +++++++++++++------------- |
64 |
- 1 file changed, 13 insertions(+), 13 deletions(-) |
65 |
- |
66 |
-diff --git a/configure.ac b/configure.ac |
67 |
-index c2b7819..f6224a1 100644 |
68 |
---- a/configure.ac |
69 |
-+++ b/configure.ac |
70 |
-@@ -489,7 +489,7 @@ AC_ARG_WITH([gtk], |
71 |
- AC_ARG_VAR([GLIB_GENMARSHAL], [full path to glib-genmarshal]) |
72 |
- AC_ARG_VAR([GTK_VERSION_MAJOR]) |
73 |
- |
74 |
--AS_IF([test "x$with_gtk" == "xgtk3" || test "x$with_gtk" == "xauto"], |
75 |
-+AS_IF([test "x$with_gtk" = "xgtk3" || test "x$with_gtk" = "xauto"], |
76 |
- [PKG_CHECK_MODULES([GTK3], [gtk+-3.0], |
77 |
- [GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal` |
78 |
- GTK_VERSION=`$PKG_CONFIG gtk+-3.0 --modversion` |
79 |
-@@ -501,7 +501,7 @@ AS_IF([test "x$with_gtk" == "xgtk3" || test "x$with_gtk" == "xauto"], |
80 |
- ]) |
81 |
- ]) |
82 |
- |
83 |
--AS_IF([test "x$with_gtk" == "xgtk2" || test "x$with_gtk" == "xauto"], |
84 |
-+AS_IF([test "x$with_gtk" = "xgtk2" || test "x$with_gtk" = "xauto"], |
85 |
- [PKG_CHECK_MODULES([GTK2], [gtk+-2.0], |
86 |
- [GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal` |
87 |
- GTK_VERSION=`$PKG_CONFIG gtk+-2.0 --modversion` |
88 |
-@@ -550,11 +550,11 @@ AC_ARG_VAR([PYGTK_CODEGEN], [full path to pygtk-codegen program (python2 only)]) |
89 |
- AC_ARG_VAR([PYGTK_DEFS], [directory where PyGTK definitions may be found (python2 only)]) |
90 |
- |
91 |
- AS_IF([test -z "$PYTHON"], |
92 |
-- [AS_IF([test "x$with_python" == "xauto"], |
93 |
-+ [AS_IF([test "x$with_python" = "xauto"], |
94 |
- [AC_PATH_PROGS([PYTHON], [python3 python2 python], [:], [$PATH])], |
95 |
-- [AS_IF([test "x$with_python" == "xpython3"], |
96 |
-+ [AS_IF([test "x$with_python" = "xpython3"], |
97 |
- [AC_PATH_PROGS([PYTHON], [python3 python], [:], [$PATH])], |
98 |
-- [AS_IF([test "x$with_python" == "xpython2"], |
99 |
-+ [AS_IF([test "x$with_python" = "xpython2"], |
100 |
- [AC_PATH_PROGS([PYTHON], [python2 python], [:], [$PATH])], |
101 |
- [with_python="no"]) |
102 |
- ]) |
103 |
-@@ -608,7 +608,7 @@ AM_CONDITIONAL([HAVE_PYGTK2], [test "x$with_pygtk2" != "xno"]) |
104 |
- |
105 |
- dnl GObject Introspection (GIR) |
106 |
- |
107 |
--AS_IF([test "x$with_gir" == "xyes" && test "x$with_gtk" != "xno"], |
108 |
-+AS_IF([test "x$with_gir" = "xyes" && test "x$with_gtk" != "xno"], |
109 |
- [m4_ifdef([GOBJECT_INTROSPECTION_CHECK], |
110 |
- [GOBJECT_INTROSPECTION_CHECK([0.6.7]) |
111 |
- AS_IF([test "x$found_introspection" = "xyes"], |
112 |
-@@ -696,7 +696,7 @@ AC_ARG_WITH([java], |
113 |
- [], |
114 |
- [with_java="check"]) |
115 |
- |
116 |
--JAVAC=${JAVAC/ecj/ecj -1.5} |
117 |
-+JAVAC="$(echo $JAVAC | sed 's/ecj/ecj -1.5/')" |
118 |
- |
119 |
- # Javah was obsoleted on Java 8 and removed on Java 11. So, we need to |
120 |
- # look strictly at the $JAVA_HOME in order to avoid mixing different versions |
121 |
-@@ -707,13 +707,13 @@ AM_CONDITIONAL([HAVE_JAVAH], [test "x$JAVAH" != "x"]) |
122 |
- |
123 |
- AC_ARG_VAR([JAR], [location of Java archive tool]) |
124 |
- AC_PATH_PROGS([JAR], [jar], [:], [$JAVA_PATH]) |
125 |
--AS_IF([test "x$JAR" == "x:"], [have_java="no"]) |
126 |
-+AS_IF([test "x$JAR" = "x:"], [have_java="no"]) |
127 |
- |
128 |
- AC_ARG_VAR([JAVA], [location of Java application launcher]) |
129 |
- AC_PATH_PROGS([JAVA], [java], [/bin/false], [$JAVA_PATH]) |
130 |
- |
131 |
- AC_ARG_VAR([CLASSPATH], [Java class path (include JUnit to run java tests)]) |
132 |
--AS_IF([test "x$CLASSPATH" == "x"], [CLASSPATH="."]) |
133 |
-+AS_IF([test "x$CLASSPATH" = "x"], [CLASSPATH="."]) |
134 |
- |
135 |
- dnl Search for Java unit test library |
136 |
- AS_IF([test -z "$JUNIT_HOME"], |
137 |
-@@ -850,7 +850,7 @@ echo "GTK --with-gtk=$with_gtk Gtk${GTK_VERSION}" |
138 |
- echo "GObject introspection --with-gir=$with_gir" |
139 |
- echo "Qt --with-qt=$with_qt Qt${QT_VERSION}" |
140 |
- echo "Java --with-java=$with_java" |
141 |
--AS_IF([test "x$win32" == "xno"], |
142 |
-+AS_IF([test "x$win32" = "xno"], |
143 |
- [echo "Dbus --with-dbus=$with_dbus"]) |
144 |
- AS_IF([test "x$have_GM" = "xyes"], |
145 |
- [echo "GraphicsMagick --with-graphicsmagick=yes"], |
146 |
-@@ -873,13 +873,13 @@ AS_IF([test "x$have_IM" != "xyes" && test "x$have_GM" != "xyes"], |
147 |
- [echo " => the zbarimg file scanner will *NOT* be built"]) |
148 |
- AS_IF([test "x$have_GM" = "xyes"], |
149 |
- [echo " => ImageMagick is preferred, as GraphicsMagick doesn't support https"]) |
150 |
--AS_IF([test "x$with_gtk" == "xno"], |
151 |
-+AS_IF([test "x$with_gtk" = "xno"], |
152 |
- [echo " => GTK support will *NOT* be built"]) |
153 |
- AS_IF([test "x$with_pygtk2" != "xyes" && test "xPYTHON_VERSION_MAJOR" = "x2"], |
154 |
- [echo " => the Python 2 GTK widget wrapper will *NOT* be built"]) |
155 |
- AS_IF([test "x$with_qt" != "xyes"], |
156 |
- [echo " => the Qt widget will *NOT* be built"]) |
157 |
--AS_IF([test "x$with_qt" == "xyes" && test "x$enable_static_qt" == "xyes" ], |
158 |
-+AS_IF([test "x$with_qt" = "xyes" && test "x$enable_static_qt" = "xyes" ], |
159 |
- [echo " => Building a static Qt library"]) |
160 |
- AS_IF([test "x$with_java" != "xyes"], |
161 |
- [echo " => the Java interface will *NOT* be built"]) |
162 |
-@@ -888,5 +888,5 @@ AS_IF([test "x$with_java_unit" != "xyes"], |
163 |
- #echo "NPAPI Plugin --with-npapi=$with_npapi" |
164 |
- #AS_IF([test "x$with_mozilla" != "xyes"], |
165 |
- # [echo " => the Mozilla/Firefox/OpenOffice plugin will *NOT* be built"]) |
166 |
--AS_IF([test "x$enable_pdf417" == "xyes"], |
167 |
-+AS_IF([test "x$enable_pdf417" = "xyes"], |
168 |
- [echo " => the pdf417 code support is incomplete!"]) |
169 |
--- |
170 |
-2.30.0 |
171 |
- |
172 |
|
173 |
diff --git a/media-gfx/zbar/files/zbar-0.23_create_correct_pkconfig_file_for_zbar-qt5.patch b/media-gfx/zbar/files/zbar-0.23_create_correct_pkconfig_file_for_zbar-qt5.patch |
174 |
deleted file mode 100644 |
175 |
index 3be9c222277..00000000000 |
176 |
--- a/media-gfx/zbar/files/zbar-0.23_create_correct_pkconfig_file_for_zbar-qt5.patch |
177 |
+++ /dev/null |
178 |
@@ -1,71 +0,0 @@ |
179 |
-From cac1fffce80f0835e4d8d234023a775b4243b916 Mon Sep 17 00:00:00 2001 |
180 |
-From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@×××××××××××.de> |
181 |
-Date: Sun, 20 Oct 2019 01:44:02 +0200 |
182 |
-Subject: [PATCH] Create correct pkconfig file for zbar-qt5 |
183 |
- |
184 |
-Although zbar supports Qt5, the created pkgconfig file always requested |
185 |
-the Qt(4) components. |
186 |
- |
187 |
-Fixes issue #62. |
188 |
---- |
189 |
- configure.ac | 13 ++++++++++--- |
190 |
- zbar-qt5.pc.in | 12 ++++++++++++ |
191 |
- 2 files changed, 22 insertions(+), 3 deletions(-) |
192 |
- create mode 100644 zbar-qt5.pc.in |
193 |
- |
194 |
-diff --git a/configure.ac b/configure.ac |
195 |
-index 935110a..49ef6a8 100644 |
196 |
---- a/configure.ac |
197 |
-+++ b/configure.ac |
198 |
-@@ -659,15 +659,23 @@ AS_IF([test "x$with_qt" != "xno"], |
199 |
- CPPFLAGS="$CPPFLAGS $QT_CPPFLAGS" |
200 |
- dnl -fPIC has no effect on Windows and breaks windres |
201 |
- AS_IF([test "x$win32" = "xno"], [CPPFLAGS="$CPPFLAGS -fPIC"]) |
202 |
-- AC_MSG_NOTICE([using Qt version $QT_VERSION])], |
203 |
-+ AC_MSG_NOTICE([using Qt version $QT_VERSION]) |
204 |
-+ qt_pkgconfig_file="zbar-qt5.pc" |
205 |
-+ ], |
206 |
- |
207 |
- [MOC=`$PKG_CONFIG QtGui --variable=moc_location` |
208 |
- AC_MSG_NOTICE([using moc from $MOC]) |
209 |
- QT_VERSION=`$PKG_CONFIG QtGui --modversion` |
210 |
-- AC_MSG_NOTICE([using Qt version $QT_VERSION])])) |
211 |
-+ AC_MSG_NOTICE([using Qt version $QT_VERSION]) |
212 |
-+ qt_pkgconfig_file="zbar-qt.pc" |
213 |
-+ ])) |
214 |
- |
215 |
- AM_CONDITIONAL([HAVE_QT], [test "x$with_qt" = "xyes"]) |
216 |
- |
217 |
-+AM_COND_IF([HAVE_QT], |
218 |
-+ [AC_CONFIG_FILES([zbar-qt.pc:"${qt_pkgconfig_file}.in"])] |
219 |
-+) |
220 |
-+ |
221 |
- dnl Java |
222 |
- have_java="maybe" |
223 |
- |
224 |
-@@ -820,7 +828,6 @@ java/Makefile |
225 |
- zbar/Makefile |
226 |
- zbar.pc |
227 |
- zbar-gtk.pc |
228 |
--zbar-qt.pc |
229 |
- doc/doxygen.conf]) |
230 |
- |
231 |
- AC_CONFIG_FILES([test/test_examples.sh],[chmod 755 test/test_examples.sh]) |
232 |
-diff --git a/zbar-qt5.pc.in b/zbar-qt5.pc.in |
233 |
-new file mode 100644 |
234 |
-index 0000000..3378993 |
235 |
---- /dev/null |
236 |
-+++ b/zbar-qt5.pc.in |
237 |
-@@ -0,0 +1,12 @@ |
238 |
-+prefix=@prefix@ |
239 |
-+exec_prefix=@exec_prefix@ |
240 |
-+libdir=@libdir@ |
241 |
-+includedir=@includedir@ |
242 |
-+ |
243 |
-+Name: zbar-qt |
244 |
-+Description: bar code scanning and decoding Qt5 widget |
245 |
-+URL: http://zbar.sourceforge.net |
246 |
-+Version: @VERSION@ |
247 |
-+Requires: zbar, Qt5Core >= 5, Qt5Gui >= 5 |
248 |
-+Libs: -L${libdir} -lzbarqt |
249 |
-+Cflags: -I${includedir} |
250 |
|
251 |
diff --git a/media-gfx/zbar/files/zbar-0.23_fix_detection_of_errors_in_the_v4l_read.patch b/media-gfx/zbar/files/zbar-0.23_fix_detection_of_errors_in_the_v4l_read.patch |
252 |
deleted file mode 100644 |
253 |
index 8484e31b737..00000000000 |
254 |
--- a/media-gfx/zbar/files/zbar-0.23_fix_detection_of_errors_in_the_v4l_read.patch |
255 |
+++ /dev/null |
256 |
@@ -1,29 +0,0 @@ |
257 |
-From 52a4fa5242af5da770b3cab1713f87e8d899e7ed Mon Sep 17 00:00:00 2001 |
258 |
-From: Dan Fandrich <dan@××××××××××××××.com> |
259 |
-Date: Fri, 27 Dec 2019 18:33:17 +0100 |
260 |
-Subject: [PATCH] Fix detection of errors in the v4l read. |
261 |
- |
262 |
-The return type must be signed in order to detect a read failure. Also, |
263 |
-display an error message after such a failure. |
264 |
---- |
265 |
- zbar/video/v4l2.c | 6 ++++-- |
266 |
- 1 file changed, 4 insertions(+), 2 deletions(-) |
267 |
- |
268 |
-diff --git a/zbar/video/v4l2.c b/zbar/video/v4l2.c |
269 |
-index daed38b..c0398ea 100644 |
270 |
---- a/zbar/video/v4l2.c |
271 |
-+++ b/zbar/video/v4l2.c |
272 |
-@@ -133,9 +133,11 @@ static zbar_image_t *v4l2_dq (zbar_video_t *vdo) |
273 |
- return(NULL); |
274 |
- |
275 |
- /* FIXME should read entire image */ |
276 |
-- unsigned long datalen = read(fd, (void*)img->data, img->datalen); |
277 |
-- if(datalen < 0) |
278 |
-+ ssize_t datalen = read(fd, (void*)img->data, img->datalen); |
279 |
-+ if(datalen < 0) { |
280 |
-+ perror("v4l2_dq read"); |
281 |
- return(NULL); |
282 |
-+ } |
283 |
- else if(datalen != img->datalen) |
284 |
- zprintf(0, "WARNING: read() size mismatch: 0x%lx != 0x%lx\n", |
285 |
- datalen, img->datalen); |
286 |
|
287 |
diff --git a/media-gfx/zbar/files/zbar-0.23_reset_conversion_descriptor_after_close.patch b/media-gfx/zbar/files/zbar-0.23_reset_conversion_descriptor_after_close.patch |
288 |
deleted file mode 100644 |
289 |
index 75d02cb996a..00000000000 |
290 |
--- a/media-gfx/zbar/files/zbar-0.23_reset_conversion_descriptor_after_close.patch |
291 |
+++ /dev/null |
292 |
@@ -1,25 +0,0 @@ |
293 |
-From ba0bcb39c4fa57634c05597464352d4e630f1ea2 Mon Sep 17 00:00:00 2001 |
294 |
-From: hz-mk <51707958+hz-mk@××××××××××××××××××××.com> |
295 |
-Date: Tue, 11 Jun 2019 16:32:18 +0200 |
296 |
-Subject: [PATCH] Reset conversion descriptor after close (prevent double free) |
297 |
- |
298 |
---- |
299 |
- zbar/qrcode/qrdectxt.c | 5 ++++- |
300 |
- 1 file changed, 4 insertions(+), 1 deletion(-) |
301 |
- |
302 |
-diff --git a/zbar/qrcode/qrdectxt.c b/zbar/qrcode/qrdectxt.c |
303 |
-index 2ab7b9b..4be7635 100644 |
304 |
---- a/zbar/qrcode/qrdectxt.c |
305 |
-+++ b/zbar/qrcode/qrdectxt.c |
306 |
-@@ -409,7 +409,10 @@ int qr_code_data_list_extract_text(const qr_code_data_list *_qrlist, |
307 |
- /*If eci should be reset between codes, do so.*/ |
308 |
- if(eci<=QR_ECI_GLI1){ |
309 |
- eci=-1; |
310 |
-- if(eci_cd!=(iconv_t)-1)iconv_close(eci_cd); |
311 |
-+ if(eci_cd!=(iconv_t)-1){ |
312 |
-+ iconv_close(eci_cd); |
313 |
-+ eci_cd=(iconv_t)-1; |
314 |
-+ } |
315 |
- } |
316 |
- |
317 |
- } |
318 |
|
319 |
diff --git a/media-gfx/zbar/zbar-0.23-r1.ebuild b/media-gfx/zbar/zbar-0.23-r1.ebuild |
320 |
deleted file mode 100644 |
321 |
index d51457a9e1d..00000000000 |
322 |
--- a/media-gfx/zbar/zbar-0.23-r1.ebuild |
323 |
+++ /dev/null |
324 |
@@ -1,217 +0,0 @@ |
325 |
-# Copyright 1999-2020 Gentoo Authors |
326 |
-# Distributed under the terms of the GNU General Public License v2 |
327 |
- |
328 |
-EAPI=7 |
329 |
- |
330 |
-PYTHON_COMPAT=( python3_{7,8} ) |
331 |
- |
332 |
-inherit autotools flag-o-matic java-pkg-opt-2 multilib-minimal python-single-r1 virtualx |
333 |
- |
334 |
-DESCRIPTION="Library and tools for reading barcodes from images or video" |
335 |
-HOMEPAGE="https://github.com/mchehab/zbar" |
336 |
-SRC_URI="https://linuxtv.org/downloads/${PN}/${P}.tar.gz" |
337 |
- |
338 |
-LICENSE="LGPL-2.1" |
339 |
-SLOT="0" |
340 |
-KEYWORDS="amd64 ~arm x86" |
341 |
- |
342 |
-IUSE="dbus graphicsmagick gtk +imagemagick introspection java jpeg python qt5 static-libs test +threads v4l X xv" |
343 |
-REQUIRED_USE=" |
344 |
- introspection? ( gtk ) |
345 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
346 |
- test? ( |
347 |
- ${PYTHON_REQUIRED_USE} |
348 |
- X? ( imagemagick ) |
349 |
- ) |
350 |
- xv? ( X )" |
351 |
- |
352 |
-RESTRICT="!test? ( test )" |
353 |
- |
354 |
-COMMON_DEPEND=" |
355 |
- dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] ) |
356 |
- gtk? ( |
357 |
- dev-libs/glib:2[${MULTILIB_USEDEP}] |
358 |
- x11-libs/gtk+:3[${MULTILIB_USEDEP}] |
359 |
- introspection? ( dev-libs/gobject-introspection ) |
360 |
- ) |
361 |
- imagemagick? ( |
362 |
- !graphicsmagick? ( media-gfx/imagemagick:=[png,jpeg?] ) |
363 |
- graphicsmagick? ( media-gfx/graphicsmagick:=[png,jpeg?] ) |
364 |
- ) |
365 |
- jpeg? ( virtual/jpeg:0[${MULTILIB_USEDEP}] ) |
366 |
- python? ( ${PYTHON_DEPS} ) |
367 |
- qt5? ( |
368 |
- dev-qt/qtcore:5 |
369 |
- dev-qt/qtgui:5 |
370 |
- dev-qt/qtwidgets:5 |
371 |
- dev-qt/qtx11extras:5 |
372 |
- ) |
373 |
- v4l? ( media-libs/libv4l:0=[${MULTILIB_USEDEP}] ) |
374 |
- X? ( |
375 |
- x11-libs/libX11[${MULTILIB_USEDEP}] |
376 |
- x11-libs/libXext[${MULTILIB_USEDEP}] |
377 |
- xv? ( x11-libs/libXv[${MULTILIB_USEDEP}] ) |
378 |
- )" |
379 |
- |
380 |
-RDEPEND="${COMMON_DEPEND} |
381 |
- java? ( >=virtual/jre-1.8 )" |
382 |
- |
383 |
-DEPEND="${COMMON_DEPEND} |
384 |
- java? ( |
385 |
- >=virtual/jdk-1.8 |
386 |
- test? ( |
387 |
- dev-java/hamcrest-core:1.3 |
388 |
- dev-java/junit:4 |
389 |
- ) |
390 |
- ) |
391 |
- test? ( |
392 |
- ${PYTHON_DEPS} |
393 |
- $(python_gen_cond_dep ' |
394 |
- dev-python/pillow[${PYTHON_MULTI_USEDEP}] |
395 |
- ') |
396 |
- )" |
397 |
- |
398 |
-BDEPEND=" |
399 |
- sys-devel/gettext |
400 |
- virtual/pkgconfig |
401 |
- gtk? ( dev-util/glib-utils )" |
402 |
- |
403 |
-PATCHES=( |
404 |
- "${FILESDIR}/${PN}-0.10-errors.patch" |
405 |
- "${FILESDIR}/${PN}-0.23-r1-nonbash.patch" |
406 |
- "${FILESDIR}/${P}_create_correct_pkconfig_file_for_zbar-qt5.patch" |
407 |
- "${FILESDIR}/${P}_fix_detection_of_errors_in_the_v4l_read.patch" |
408 |
- "${FILESDIR}/${P}_fix_python_detect.patch" |
409 |
- "${FILESDIR}/${P}_fix_Qt5X11Extras_detect.patch" |
410 |
- "${FILESDIR}/${P}_reset_conversion_descriptor_after_close.patch" |
411 |
-) |
412 |
- |
413 |
-DOCS=( README.md NEWS.md TODO.md HACKING.md TODO.md ChangeLog ) |
414 |
- |
415 |
-pkg_setup() { |
416 |
- if use python || use test; then |
417 |
- python-single-r1_pkg_setup |
418 |
- fi |
419 |
- use java && java-pkg-opt-2_pkg_setup |
420 |
-} |
421 |
- |
422 |
-src_prepare() { |
423 |
- default |
424 |
- |
425 |
- if use python || use test; then |
426 |
- if use test; then |
427 |
- # make tests happy |
428 |
- # because one of the test requires loadable py module from the current ${BUILD_DIR} |
429 |
- sed -e "s|PYTHONPATH=@abs_top_srcdir@|PYTHONPATH=@builddir@|g" \ |
430 |
- -i test/Makefile.am.inc || die |
431 |
- fi |
432 |
- |
433 |
- python_fix_shebang \ |
434 |
- examples/*.py \ |
435 |
- test/{test_python,barcodetest}.py # test_pygtk.py — py2 only |
436 |
- fi |
437 |
- |
438 |
- if use java; then |
439 |
- java-pkg-opt-2_src_prepare |
440 |
- sed -e "s|javadir = \$(pkgdatadir)|javadir = /usr/$(get_libdir)/zbar|" \ |
441 |
- -i java/Makefile.am || die |
442 |
- fi |
443 |
- |
444 |
- # do not install {LICENSE,INSTALL,etc}.md doc files with 'make install' (use DOCS=() instead) |
445 |
- sed -e "s|^dist_doc_DATA =\(.*\)|dist_doc_DATA =|" -i Makefile.am || die |
446 |
- |
447 |
- eautoreconf |
448 |
-} |
449 |
- |
450 |
-multilib_src_configure() { |
451 |
- append-cppflags -DNDEBUG |
452 |
- |
453 |
- local myeconfargs=( |
454 |
- $(use_with dbus) |
455 |
- $(use_with gtk gtk gtk3) # default is gtk2 |
456 |
- $(use_with jpeg) |
457 |
- $(multilib_native_use_with introspection gir) |
458 |
- $(multilib_native_use_with java) |
459 |
- $(multilib_native_use_with python python auto) |
460 |
- $(use_enable static-libs static) |
461 |
- $(use_enable threads pthread) |
462 |
- $(use_enable v4l video) |
463 |
- $(use_with X x) |
464 |
- $(use_with X xshm) |
465 |
- $(use_with xv xv) |
466 |
- ) |
467 |
- |
468 |
- if multilib_is_native_abi; then |
469 |
- # both must be enabled to use GraphicsMagick |
470 |
- if use graphicsmagick; then |
471 |
- myeconfargs+=( |
472 |
- --with-graphicsmagick |
473 |
- --without-imagemagick |
474 |
- ) |
475 |
- elif use imagemagick; then |
476 |
- myeconfargs+=( |
477 |
- --with-imagemagick |
478 |
- --without-graphicsmagick |
479 |
- ) |
480 |
- else |
481 |
- myeconfargs+=( |
482 |
- --without-imagemagick |
483 |
- --without-graphicsmagick |
484 |
- ) |
485 |
- fi |
486 |
- |
487 |
- if use java; then |
488 |
- export JAVACFLAGS="$(java-pkg_javac-args)" |
489 |
- append-cflags "$(java-pkg_get-jni-cflags)" |
490 |
- if use test; then # bug 629078 |
491 |
- java-pkg_append_ CLASSPATH . |
492 |
- java-pkg_append_ CLASSPATH $(java-pkg_getjar --build-only junit-4 junit.jar) |
493 |
- java-pkg_append_ CLASSPATH $(java-pkg_getjar --build-only hamcrest-core-1.3 hamcrest-core.jar) |
494 |
- fi |
495 |
- fi |
496 |
- |
497 |
- if use qt5; then |
498 |
- myeconfargs+=( |
499 |
- --with-qt |
500 |
- --with-qt5 |
501 |
- ) |
502 |
- else |
503 |
- myeconfargs+=( --without-qt ) |
504 |
- fi |
505 |
- else |
506 |
- myeconfargs+=( |
507 |
- --without-qt |
508 |
- --without-imagemagick |
509 |
- --without-graphicsmagick |
510 |
- ) |
511 |
- fi |
512 |
- |
513 |
- ECONF_SOURCE="${S}" \ |
514 |
- econf "${myeconfargs[@]}" |
515 |
- |
516 |
- # work around out-of-source build issues for multilib systems (bug 672184) |
517 |
- mkdir qt zbarcam || die |
518 |
-} |
519 |
- |
520 |
-src_test() { |
521 |
- virtx multilib-minimal_src_test |
522 |
-} |
523 |
- |
524 |
-src_install() { |
525 |
- if use qt5; then |
526 |
- local MULTILIB_WRAPPED_HEADERS=( |
527 |
- /usr/include/zbar/QZBar.h |
528 |
- /usr/include/zbar/QZBarImage.h |
529 |
- ) |
530 |
- fi |
531 |
- multilib-minimal_src_install |
532 |
-} |
533 |
- |
534 |
-multilib_src_install_all() { |
535 |
- einstalldocs |
536 |
- find "${D}" -name '*.la' -delete || die |
537 |
-} |
538 |
- |
539 |
-pkg_preinst() { |
540 |
- use java && java-pkg-opt-2_pkg_preinst |
541 |
-} |