Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/sane-backends/files/, media-gfx/sane-backends/
Date: Wed, 27 Sep 2017 10:56:34
Message-Id: 1506509770.50d84fcbe8ba2690bd57677169da377e493fd799.pacho@gentoo
1 commit: 50d84fcbe8ba2690bd57677169da377e493fd799
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 27 10:56:10 2017 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 27 10:56:10 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50d84fcb
7
8 media-gfx/sane-backends: Drop old
9
10 Package-Manager: Portage-2.3.10, Repoman-2.3.3
11
12 media-gfx/sane-backends/Manifest | 1 -
13 .../sane-backends/files/niash_array_index.patch | 140 ---------
14 .../sane-backends-1.0.24-automagic_systemd.patch | 56 ----
15 .../files/sane-backends-1.0.24-cross-compile.patch | 30 --
16 .../sane-backends-1.0.24-kodakaio_avahi.patch | 105 -------
17 .../sane-backends-1.0.24-systemd_pkgconfig.patch | 54 ----
18 .../files/sane-backends-1.0.24-unused-cups.patch | 62 ----
19 .../sane-backends/sane-backends-1.0.24-r6.ebuild | 328 ---------------------
20 8 files changed, 776 deletions(-)
21
22 diff --git a/media-gfx/sane-backends/Manifest b/media-gfx/sane-backends/Manifest
23 index 9844b23bfd8..13d8fc209d1 100644
24 --- a/media-gfx/sane-backends/Manifest
25 +++ b/media-gfx/sane-backends/Manifest
26 @@ -1,3 +1,2 @@
27 -DIST sane-backends-1.0.24.tar.gz 5778749 SHA256 27c7085a54f1505d8b551e6f1e69d30e1ee57328b18429bb2225dabf4c45462d SHA512 1e9f962bb9d27f17067eb662dabfc0a1aa0d06e16bec4bd28868124b468578d82f14f6d2c1f5de63d2cec57ca4584ec12d3b2c2b1de20f1199aece581453ebc5 WHIRLPOOL 19b939c920a3c157044c85a941debdc664d8781562fa3fc04f061b9d216b089be80edfd43479069382adf13e68160518fdbd5c84a5f4c506a46f8521d4ed2a1c
28 DIST sane-backends-1.0.25.tar.gz 5955016 SHA256 a4d7ba8d62b2dea702ce76be85699940992daf3f44823ddc128812da33dc6e2c SHA512 b9548646fff13558a4da4a4e9e8bad730f05121bcc65b72d24ded3bfddc6fe574e08c39c8651544b8fbfeab036fffd76cc14d76ef5d5d47e7513a2ce3afcc9df WHIRLPOOL 557a3ac8785c0dd7f98aa55d5edaf76fb5b2b3c86a2431bb40b5b132ac05de3abcb250a8bcf8ed188868c4f124ce0a323a92a5a83c7b44a20908fe40ca323711
29 DIST sane-backends-1.0.27.tar.gz 6430188 SHA256 293747bf37275c424ebb2c833f8588601a60b2f9653945d5a3194875355e36c9 SHA512 c6552768bfc10216730fc11011c82f74ca0952182019ded3916072147ec09be5c975ce1d37dc3ccea050c488dbdf983c2ca17dcd702644060ba796ae2591f9c5 WHIRLPOOL 62ac1f4d4601bb2189212f021c23a48067ebdb5d900c2259ae4acdb6f94292c20689d9889bb11861b78be5ea7c3f76e815154e032f4bda76efcf901a97895cdd
30
31 diff --git a/media-gfx/sane-backends/files/niash_array_index.patch b/media-gfx/sane-backends/files/niash_array_index.patch
32 deleted file mode 100644
33 index 236c4598b58..00000000000
34 --- a/media-gfx/sane-backends/files/niash_array_index.patch
35 +++ /dev/null
36 @@ -1,140 +0,0 @@
37 ---- backend/niash.c 2010-12-02 00:49:58.000000000 +0100
38 -+++ backend/niash.c.new 2011-09-21 20:09:07.000000000 +0200
39 -@@ -82,14 +82,7 @@
40 - optThreshold,
41 -
42 -
43 -- optLast,
44 --/* put temporarily disabled options here after optLast */
45 --
46 -- optGroupMisc,
47 -- optLamp,
48 --
49 -- optCalibrate,
50 -- optGamma /* analog gamma = single number */
51 -+ optLast
52 - } EOptionIndex;
53 -
54 -
55 -@@ -685,17 +678,6 @@
56 - pDesc->size = 0;
57 - break;
58 -
59 -- case optGamma:
60 -- pDesc->name = SANE_NAME_ANALOG_GAMMA;
61 -- pDesc->title = SANE_TITLE_ANALOG_GAMMA;
62 -- pDesc->desc = SANE_DESC_ANALOG_GAMMA;
63 -- pDesc->type = SANE_TYPE_FIXED;
64 -- pDesc->constraint_type = SANE_CONSTRAINT_RANGE;
65 -- pDesc->constraint.range = &rangeGamma;
66 -- pDesc->cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT;
67 -- pVal->w = startUpGamma;
68 -- break;
69 --
70 - case optGammaTable:
71 - pDesc->name = SANE_NAME_GAMMA_VECTOR;
72 - pDesc->title = SANE_TITLE_GAMMA_VECTOR;
73 -@@ -707,31 +689,6 @@
74 - pVal->wa = s->aGammaTable;
75 - break;
76 -
77 -- case optGroupMisc:
78 -- pDesc->title = SANE_I18N ("Miscellaneous");
79 -- pDesc->type = SANE_TYPE_GROUP;
80 -- pDesc->size = 0;
81 -- break;
82 --
83 -- case optLamp:
84 -- pDesc->name = "lamp";
85 -- pDesc->title = SANE_I18N ("Lamp status");
86 -- pDesc->desc = SANE_I18N ("Switches the lamp on or off.");
87 -- pDesc->type = SANE_TYPE_BOOL;
88 -- pDesc->cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT;
89 -- /* switch the lamp on when starting for first the time */
90 -- pVal->w = SANE_TRUE;
91 -- break;
92 --
93 -- case optCalibrate:
94 -- pDesc->name = "calibrate";
95 -- pDesc->title = SANE_I18N ("Calibrate");
96 -- pDesc->desc = SANE_I18N ("Calibrates for black and white level.");
97 -- pDesc->type = SANE_TYPE_BUTTON;
98 -- pDesc->cap = SANE_CAP_SOFT_SELECT;
99 -- pDesc->size = 0;
100 -- break;
101 --
102 - case optGroupMode:
103 - pDesc->title = SANE_I18N ("Scan Mode");
104 - pDesc->desc = "";
105 -@@ -1007,7 +964,6 @@
106 - /* Get options of type SANE_Word */
107 - case optCount:
108 - case optDPI:
109 -- case optGamma:
110 - case optTLX:
111 - case optTLY:
112 - case optBRX:
113 -@@ -1031,17 +987,6 @@
114 - strcpy ((char *) pVal, modeList[s->aValues[optMode].w]);
115 - break;
116 -
117 -- /* Get options of type SANE_Bool */
118 -- case optLamp:
119 -- GetLamp (&s->HWParams, &fLampIsOn);
120 -- *(SANE_Bool *) pVal = fLampIsOn;
121 -- break;
122 --
123 -- case optCalibrate:
124 -- /* although this option has nothing to read,
125 -- it's added here to avoid a warning when running scanimage --help */
126 -- break;
127 --
128 - default:
129 - DBG (DBG_MSG, "SANE_ACTION_GET_VALUE: Invalid option (%d)\n", n);
130 - }
131 -@@ -1061,7 +1006,6 @@
132 - case optCount:
133 - return SANE_STATUS_INVAL;
134 -
135 -- case optGamma:
136 - case optThreshold:
137 - case optDPI:
138 -
139 -@@ -1089,15 +1033,7 @@
140 - DBG (DBG_MSG,
141 - "sane_control_option: SANE_ACTION_SET_VALUE %d = %d\n", n,
142 - (int) s->aValues[n].w);
143 -- if (n == optGamma)
144 -- {
145 -- if (!fSame && optLast > optGammaTable)
146 -- {
147 -- info |= SANE_INFO_RELOAD_OPTIONS;
148 -- }
149 -- _SetScalarGamma (s->aGammaTable, s->aValues[n].w);
150 -- }
151 -- break;
152 -+ break;
153 -
154 - case optGammaTable:
155 - DBG (DBG_MSG, "Writing gamma table\n");
156 -@@ -1158,20 +1094,6 @@
157 - break;
158 -
159 -
160 --
161 -- case optLamp:
162 -- fVal = *(SANE_Bool *) pVal;
163 -- DBG (DBG_MSG, "lamp %s\n", fVal ? "on" : "off");
164 -- if (fVal)
165 -- _WarmUpLamp (s, WARMUP_INSESSION);
166 -- else
167 -- SetLamp (&s->HWParams, SANE_FALSE);
168 -- break;
169 --
170 -- case optCalibrate:
171 --/* SimpleCalib(&s->HWParams); */
172 -- break;
173 --
174 - default:
175 - DBG (DBG_ERR, "SANE_ACTION_SET_VALUE: Invalid option (%d)\n", n);
176 - }
177
178 diff --git a/media-gfx/sane-backends/files/sane-backends-1.0.24-automagic_systemd.patch b/media-gfx/sane-backends/files/sane-backends-1.0.24-automagic_systemd.patch
179 deleted file mode 100644
180 index 7db51b061c1..00000000000
181 --- a/media-gfx/sane-backends/files/sane-backends-1.0.24-automagic_systemd.patch
182 +++ /dev/null
183 @@ -1,56 +0,0 @@
184 -sent upstream:
185 -https://lists.alioth.debian.org/pipermail/sane-devel/2015-July/033601.html
186 -
187 -From 867c8fcde5cf54afae7f9ae8f855605b891708a7 Mon Sep 17 00:00:00 2001
188 -From: Christopher Brannon <teiresias@g.o>
189 -Date: Wed, 8 Jul 2015 06:37:14 -0400
190 -Subject: [PATCH] add a configure flag to control systemd support
191 -
192 -This way people can easily disable systemd support locally.
193 ----
194 - configure.in | 29 ++++++++++++++++++-----------
195 - 1 file changed, 18 insertions(+), 11 deletions(-)
196 -
197 -diff --git a/configure.in b/configure.in
198 -index 059058b..b539cda 100644
199 ---- a/configure.in
200 -+++ b/configure.in
201 -@@ -343,17 +343,24 @@ dnl $as_echo "in order to autodetect network scanners in kodakaio."
202 - dnl with_cups="no"
203 - dnl fi
204 -
205 --dnl added by llagendijk 12/7/2012 to detect systemd for saned
206 --$as_echo_n "Checking for systemd..."
207 --if test -e /usr/include/systemd/sd-daemon.h ; then
208 -- AC_DEFINE(HAVE_SYSTEMD, 1, [Is /usr/include/systemd/sd-daemon.h available?])
209 -- with_systemd="yes"
210 -- SYSTEMD_LIBS=" -lsystemd-daemon"
211 -- AC_SUBST(SYSTEMD_LIBS)
212 -- $as_echo "yes"
213 --else
214 -- with_systemd="no"
215 -- $as_echo "no"
216 -+AC_ARG_WITH(systemd,
217 -+ AC_HELP_STRING([--with-systemd], [enable systemd support @<:@default=yes@:>@]))
218 -+if test "x$with_systemd" != xno ; then
219 -+ dnl added by llagendijk 12/7/2012 to detect systemd for saned
220 -+ $as_echo_n "Checking for systemd..."
221 -+ if test -e /usr/include/systemd/sd-daemon.h ; then
222 -+ AC_DEFINE(HAVE_SYSTEMD, 1, [Is /usr/include/systemd/sd-daemon.h available?])
223 -+ have_systemd="yes"
224 -+ SYSTEMD_LIBS=" -lsystemd-daemon"
225 -+ AC_SUBST(SYSTEMD_LIBS)
226 -+ $as_echo "yes"
227 -+ else
228 -+ have_systemd="no"
229 -+ $as_echo "no"
230 -+ if test "x$with_systemd" = xyes; then
231 -+ AC_MSG_ERROR([Systemd support was requested but systemd was not found])
232 -+ fi
233 -+ fi
234 - fi
235 -
236 - dnl ***********
237 ---
238 -2.4.4
239 -
240
241 diff --git a/media-gfx/sane-backends/files/sane-backends-1.0.24-cross-compile.patch b/media-gfx/sane-backends/files/sane-backends-1.0.24-cross-compile.patch
242 deleted file mode 100644
243 index d66edacbae8..00000000000
244 --- a/media-gfx/sane-backends/files/sane-backends-1.0.24-cross-compile.patch
245 +++ /dev/null
246 @@ -1,30 +0,0 @@
247 -sent upstream:
248 -https://lists.alioth.debian.org/pipermail/sane-devel/2015-July/033600.html
249 -
250 -From c8df148e2b9784be1827e33224baa1cb5066a383 Mon Sep 17 00:00:00 2001
251 -From: Mike Frysinger <vapier@××××××××.org>
252 -Date: Wed, 8 Jul 2015 06:31:12 -0400
253 -Subject: [PATCH] fix cross-compiling paths
254 -
255 -There's no reason to hardcode -I paths to /usr/local. Doing so breaks
256 -cross-compiling when incompatible headers live in there or the toolchain
257 -is set up to throw errors with those flags.
258 ----
259 - configure.in | 1 -
260 - 1 file changed, 1 deletion(-)
261 -
262 -diff --git a/configure.in b/configure.in
263 -index 48953d2..059058b 100644
264 ---- a/configure.in
265 -+++ b/configure.in
266 -@@ -82,7 +82,6 @@ AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes)
267 - dnl ***********************************************************************
268 - dnl set compiler/linker flags
269 - dnl ***********************************************************************
270 --INCLUDES="${INCLUDES} -I/usr/local/include"
271 - AC_SUBST(INCLUDES)
272 - SANE_SET_CFLAGS([$is_release])
273 - SANE_SET_LDFLAGS
274 ---
275 -2.4.4
276 -
277
278 diff --git a/media-gfx/sane-backends/files/sane-backends-1.0.24-kodakaio_avahi.patch b/media-gfx/sane-backends/files/sane-backends-1.0.24-kodakaio_avahi.patch
279 deleted file mode 100644
280 index 80b12f01121..00000000000
281 --- a/media-gfx/sane-backends/files/sane-backends-1.0.24-kodakaio_avahi.patch
282 +++ /dev/null
283 @@ -1,105 +0,0 @@
284 -taken from upstream
285 -
286 -From 37523b867d411c2f82d08128246be7e38bc9812c Mon Sep 17 00:00:00 2001
287 -From: Paul Newall <quandry@××××××××.com>
288 -Date: Mon, 14 Oct 2013 22:22:53 +0100
289 -Subject: [PATCH] Bugfix in kodakaio.c to fix segfault when non kodak scanners
290 - return unexpected data via avahi auto discovery
291 -
292 ----
293 - ChangeLog | 4 ++++
294 - backend/kodakaio.c | 43 +++++++++++++++++++++++++++++++-----------
295 - doc/descriptions/kodakaio.desc | 2 +-
296 - 3 files changed, 37 insertions(+), 12 deletions(-)
297 -
298 -2013-10-14 Paul Newall <quandry@××××××××.com>
299 - * backend/kodakaio.c: fix bug #314301,
300 - Segfault when unexpected data returned by avahi auto discovery.
301 -
302 -diff --git a/backend/kodakaio.c b/backend/kodakaio.c
303 -index 8c4583a..b442e50 100644
304 ---- a/backend/kodakaio.c
305 -+++ b/backend/kodakaio.c
306 -@@ -127,7 +127,7 @@ for ubuntu 12.10
307 -
308 - #define KODAKAIO_VERSION 02
309 - #define KODAKAIO_REVISION 4
310 --#define KODAKAIO_BUILD 6
311 -+#define KODAKAIO_BUILD 7
312 -
313 - /* for usb (but also used for net though it's not required). */
314 - #define MAX_BLOCK_SIZE 32768
315 -@@ -2184,6 +2184,7 @@ static void resolve_callback(
316 - AvahiLookupResultFlags flags,
317 - AVAHI_GCC_UNUSED void* userdata) {
318 -
319 -+ AvahiStringList *vid_pair_list = NULL, *pid_pair_list = NULL;
320 - char *pidkey, *pidvalue;
321 - char *vidkey, *vidvalue;
322 - size_t valuesize;
323 -@@ -2204,20 +2205,40 @@ static void resolve_callback(
324 - avahi_address_snprint(a, sizeof(a), address);
325 -
326 - /* Output short for Kodak ESP */
327 -- DBG(min(10,DBG_AUTO), "%s:%u %s ", a,port,host_name);
328 -- avahi_string_list_get_pair(avahi_string_list_find(txt, "vid"),
329 -- &vidkey, &vidvalue, &valuesize);
330 -- DBG(min(10,DBG_AUTO), "%s=%s ", vidkey, vidvalue);
331 -- avahi_string_list_get_pair(avahi_string_list_find(txt, "pid"),
332 -- &pidkey, &pidvalue, &valuesize);
333 -- DBG(min(10,DBG_AUTO), "%s=%s\n", pidkey, pidvalue);
334 -+ DBG(min(10,DBG_AUTO), "%s:%u %s\n", a,port,host_name);
335 -
336 -+ vid_pair_list = avahi_string_list_find(txt, "vid");
337 -+ if(vid_pair_list != NULL) {
338 -+ avahi_string_list_get_pair(vid_pair_list, &vidkey, &vidvalue, &valuesize);
339 -+ DBG(min(10,DBG_AUTO), "%s=%s ", vidkey, vidvalue);
340 -+ }
341 -+ else DBG(min(10,DBG_AUTO), "failed to find key vid\n");
342 -+
343 -+ pid_pair_list = avahi_string_list_find(txt, "pid");
344 -+ if(pid_pair_list != NULL) {
345 -+ avahi_string_list_get_pair(pid_pair_list, &pidkey, &pidvalue, &valuesize);
346 -+ DBG(min(10,DBG_AUTO), "%s=%s\n", pidkey, pidvalue);
347 -+ }
348 -+ else DBG(min(10,DBG_AUTO), "failed to find key pid\n");
349 -+
350 -+ if(pid_pair_list != NULL && vid_pair_list != NULL) {
351 - ProcessAvahiDevice(name, vidvalue, pidvalue, a);
352 -- avahi_free(vidkey); avahi_free(vidvalue);
353 -- avahi_free(pidkey); avahi_free(pidvalue);
354 -+ }
355 -+ else DBG(min(10,DBG_AUTO), "didn't call ProcessAvahiDevice\n");
356 -+
357 -+ if(vid_pair_list != NULL) {
358 -+ avahi_free(vidkey);
359 -+ avahi_free(vidvalue);
360 -+ DBG(min(15,DBG_AUTO), "vidkey and vidvalue freed\n");
361 -+ }
362 -+ if(pid_pair_list != NULL) {
363 -+ avahi_free(pidkey);
364 -+ avahi_free(pidvalue);
365 -+ DBG(min(15,DBG_AUTO), "pidkey and pidvalue freed\n");
366 -+ }
367 - }
368 - }
369 --
370 -+ DBG(min(10,DBG_AUTO), "ending resolve_callback\n");
371 - avahi_service_resolver_free(r);
372 - }
373 -
374 -diff --git a/doc/descriptions/kodakaio.desc b/doc/descriptions/kodakaio.desc
375 -index 7882513..5fb18ed 100644
376 ---- a/doc/descriptions/kodakaio.desc
377 -+++ b/doc/descriptions/kodakaio.desc
378 -@@ -1,6 +1,6 @@
379 - :backend "kodakaio"
380 - :url "http://sourceforge.net/projects/cupsdriverkodak/"
381 --:version "2.4.6"
382 -+:version "2.4.7"
383 - :manpage "sane-kodakaio"
384 - :comment "Backend for Kodak AiO ESP and Hero printers. Also possibly Advent AWL10"
385 - :devicetype :scanner
386 ---
387 -2.4.4
388 -
389
390 diff --git a/media-gfx/sane-backends/files/sane-backends-1.0.24-systemd_pkgconfig.patch b/media-gfx/sane-backends/files/sane-backends-1.0.24-systemd_pkgconfig.patch
391 deleted file mode 100644
392 index b87ca8a3063..00000000000
393 --- a/media-gfx/sane-backends/files/sane-backends-1.0.24-systemd_pkgconfig.patch
394 +++ /dev/null
395 @@ -1,54 +0,0 @@
396 -sent upstream:
397 -https://lists.alioth.debian.org/pipermail/sane-devel/2015-July/033602.html
398 -
399 -From 1dcfb42608a27fbdebdaa721b4e48354850a7dcc Mon Sep 17 00:00:00 2001
400 -From: Christopher Brannon <teiresias@g.o>
401 -Date: Wed, 8 Jul 2015 06:38:50 -0400
402 -Subject: [PATCH] use pkg-config to look up systemd paths
403 -
404 -Since systemd has always shipped pkg-config files, we should use them.
405 -This also fixes cross-compiling by not relying on hardcoded host paths.
406 ----
407 - configure.in | 25 +++++++++++--------------
408 - 1 file changed, 11 insertions(+), 14 deletions(-)
409 -
410 -diff --git a/configure.in b/configure.in
411 -index b539cda..5e703a8 100644
412 ---- a/configure.in
413 -+++ b/configure.in
414 -@@ -346,21 +346,18 @@ dnl fi
415 - AC_ARG_WITH(systemd,
416 - AC_HELP_STRING([--with-systemd], [enable systemd support @<:@default=yes@:>@]))
417 - if test "x$with_systemd" != xno ; then
418 -- dnl added by llagendijk 12/7/2012 to detect systemd for saned
419 -- $as_echo_n "Checking for systemd..."
420 -- if test -e /usr/include/systemd/sd-daemon.h ; then
421 -- AC_DEFINE(HAVE_SYSTEMD, 1, [Is /usr/include/systemd/sd-daemon.h available?])
422 -- have_systemd="yes"
423 -- SYSTEMD_LIBS=" -lsystemd-daemon"
424 -- AC_SUBST(SYSTEMD_LIBS)
425 -- $as_echo "yes"
426 -- else
427 -- have_systemd="no"
428 -- $as_echo "no"
429 -- if test "x$with_systemd" = xyes; then
430 -- AC_MSG_ERROR([Systemd support was requested but systemd was not found])
431 -- fi
432 -+ PKG_CHECK_MODULES(SYSTEMD, [libsystemd], have_systemd=yes, have_systemd=no)
433 -+ if test "x$have_systemd" = xno; then
434 -+ PKG_CHECK_MODULES(SYSTEMD, [libsystemd-daemon], have_systemd=yes, have_systemd=no)
435 -+ fi
436 -+ if test "x$have_systemd" = xyes; then
437 -+ AC_DEFINE(HAVE_SYSTEMD, 1, [Is /usr/include/systemd/sd-daemon.h available?])
438 -+ AC_SUBST(SYSTEMD_LIBS)
439 -+ else
440 -+ if test "x$with_systemd" = xyes; then
441 -+ AC_MSG_ERROR([Systemd support was requested but systemd was not found])
442 - fi
443 -+ fi
444 - fi
445 -
446 - dnl ***********
447 ---
448 -2.4.4
449 -
450
451 diff --git a/media-gfx/sane-backends/files/sane-backends-1.0.24-unused-cups.patch b/media-gfx/sane-backends/files/sane-backends-1.0.24-unused-cups.patch
452 deleted file mode 100644
453 index a7c95d991bb..00000000000
454 --- a/media-gfx/sane-backends/files/sane-backends-1.0.24-unused-cups.patch
455 +++ /dev/null
456 @@ -1,62 +0,0 @@
457 -taken from upstream
458 -
459 -From efb04936b8ad3bf313c289a522ae5832e22c1b7e Mon Sep 17 00:00:00 2001
460 -From: Paul Newall <quandry@××××××××.com>
461 -Date: Tue, 15 Oct 2013 22:20:15 +0100
462 -Subject: [PATCH] detection of cups commented out in configure.in it is no
463 - longer used by kodakaio.
464 -
465 ----
466 - ChangeLog | 4 ++++
467 - configure.in | 24 ++++++++++++------------
468 - 2 files changed, 16 insertions(+), 12 deletions(-)
469 -
470 -2013-10-15 Paul Newall <quandry@××××××××.com>
471 - * configue.in: detection of cups was commented out. Avahi is now used
472 - for autodetection in kodakaio so the detection of cups is no longer required.
473 -
474 -diff --git a/configure.in b/configure.in
475 -index e13888c..4365868 100644
476 ---- a/configure.in
477 -+++ b/configure.in
478 -@@ -332,17 +332,17 @@ if test -c /dev/urandom ; then
479 - AC_DEFINE(HAVE_DEV_URANDOM, 1, [Is /dev/urandom available?])
480 - fi
481 -
482 --dnl added by PN 3/2/12 to detect cups
483 --$as_echo "checking for cups"
484 --if test -e /usr/include/cups/cups.h ; then
485 -- AC_DEFINE(HAVE_CUPS, 1, [Is /usr/include/cups/cups.h available?])
486 -- with_cups="yes"
487 -- LIBS="-lcups $LIBS"
488 --else
489 -- $as_echo "cups.h not found, you may want to install a cups development package"
490 -- $as_echo "in order to autodetect network scanners in kodakaio."
491 -- with_cups="no"
492 --fi
493 -+dnl added by PN 3/2/12 to detect cups commented out 15/10/13 since avahi is now used instead
494 -+dnl $as_echo "checking for cups"
495 -+dnl if test -e /usr/include/cups/cups.h ; then
496 -+dnl AC_DEFINE(HAVE_CUPS, 1, [Is /usr/include/cups/cups.h available?])
497 -+dnl with_cups="yes"
498 -+dnl LIBS="-lcups $LIBS"
499 -+dnl else
500 -+dnl $as_echo "cups.h not found, you may want to install a cups development package"
501 -+dnl $as_echo "in order to autodetect network scanners in kodakaio."
502 -+dnl with_cups="no"
503 -+dnl fi
504 -
505 - dnl added by llagendijk 12/7/2012 to detect systemd for saned
506 - $as_echo_n "Checking for systemd..."
507 -@@ -816,7 +816,7 @@ fi
508 - echo "IPv6 support: `eval eval echo ${ipv6}`"
509 - echo "Avahi support: `eval eval echo ${enable_avahi}`"
510 - echo "SNMP support: `eval eval echo ${with_snmp}`"
511 --echo "CUPS support: `eval eval echo ${with_cups}`"
512 -+dnl echo "CUPS support: `eval eval echo ${with_cups}`" commented out 15/10/13
513 - echo "-> The following backends will be built:"
514 - for backend in ${BACKENDS} ; do
515 - echo $ECHO_N "${backend} "
516 ---
517 -2.4.4
518 -
519
520 diff --git a/media-gfx/sane-backends/sane-backends-1.0.24-r6.ebuild b/media-gfx/sane-backends/sane-backends-1.0.24-r6.ebuild
521 deleted file mode 100644
522 index 29cdb8f90d0..00000000000
523 --- a/media-gfx/sane-backends/sane-backends-1.0.24-r6.ebuild
524 +++ /dev/null
525 @@ -1,328 +0,0 @@
526 -# Copyright 1999-2016 Gentoo Foundation
527 -# Distributed under the terms of the GNU General Public License v2
528 -
529 -EAPI="5"
530 -
531 -inherit autotools eutils flag-o-matic multilib multilib-minimal udev user toolchain-funcs
532 -
533 -# gphoto and v4l are handled by their usual USE flags.
534 -# The pint backend was disabled because I could not get it to compile.
535 -IUSE_SANE_BACKENDS="
536 - abaton
537 - agfafocus
538 - apple
539 - artec
540 - artec_eplus48u
541 - as6e
542 - avision
543 - bh
544 - canon
545 - canon630u
546 - canon_dr
547 - canon_pp
548 - cardscan
549 - coolscan
550 - coolscan2
551 - coolscan3
552 - dc210
553 - dc240
554 - dc25
555 - dell1600n_net
556 - dmc
557 - epjitsu
558 - epson
559 - epson2
560 - fujitsu
561 - genesys
562 - gt68xx
563 - hp
564 - hp3500
565 - hp3900
566 - hp4200
567 - hp5400
568 - hp5590
569 - hpljm1005
570 - hpsj5s
571 - hs2p
572 - ibm
573 - kodak
574 - kodakaio
575 - kvs1025
576 - kvs20xx
577 - kvs40xx
578 - leo
579 - lexmark
580 - ma1509
581 - magicolor
582 - matsushita
583 - microtek
584 - microtek2
585 - mustek
586 - mustek_pp
587 - mustek_usb
588 - mustek_usb2
589 - nec
590 - net
591 - niash
592 - p5
593 - pie
594 - pixma
595 - plustek
596 - plustek_pp
597 - pnm
598 - qcam
599 - ricoh
600 - rts8891
601 - s9036
602 - sceptre
603 - sharp
604 - sm3600
605 - sm3840
606 - snapscan
607 - sp15c
608 - st400
609 - stv680
610 - tamarack
611 - teco1
612 - teco2
613 - teco3
614 - test
615 - u12
616 - umax
617 - umax1220u
618 - umax_pp
619 - xerox_mfp"
620 -
621 -IUSE="avahi doc gphoto2 ipv6 threads usb v4l xinetd snmp systemd"
622 -
623 -for backend in ${IUSE_SANE_BACKENDS}; do
624 - case ${backend} in
625 - # Disable backends that require parallel ports as no one has those anymore.
626 - canon_pp|hpsj5s|mustek_pp|\
627 - pnm)
628 - IUSE+=" -sane_backends_${backend}"
629 - ;;
630 - mustek_usb2|kvs40xx)
631 - IUSE+=" sane_backends_${backend}"
632 - ;;
633 - *)
634 - IUSE+=" +sane_backends_${backend}"
635 - esac
636 -done
637 -
638 -REQUIRED_USE="
639 - sane_backends_mustek_usb2? ( threads )
640 - sane_backends_kvs40xx? ( threads )
641 -"
642 -
643 -DESCRIPTION="Scanner Access Now Easy - Backends"
644 -HOMEPAGE="http://www.sane-project.org/"
645 -SRC_URI="https://alioth.debian.org/frs/download.php/file/3958/${P}.tar.gz"
646 -
647 -LICENSE="GPL-2 public-domain"
648 -SLOT="0"
649 -KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
650 -
651 -RDEPEND="
652 - sane_backends_dc210? ( >=virtual/jpeg-0-r2[${MULTILIB_USEDEP}] )
653 - sane_backends_dc240? ( >=virtual/jpeg-0-r2[${MULTILIB_USEDEP}] )
654 - sane_backends_dell1600n_net? ( >=virtual/jpeg-0-r2[${MULTILIB_USEDEP}]
655 - >=media-libs/tiff-3.9.7-r1[${MULTILIB_USEDEP}] )
656 - avahi? ( >=net-dns/avahi-0.6.31-r2[${MULTILIB_USEDEP}] )
657 - sane_backends_canon_pp? ( >=sys-libs/libieee1284-0.2.11-r3[${MULTILIB_USEDEP}] )
658 - sane_backends_hpsj5s? ( >=sys-libs/libieee1284-0.2.11-r3[${MULTILIB_USEDEP}] )
659 - sane_backends_mustek_pp? ( >=sys-libs/libieee1284-0.2.11-r3[${MULTILIB_USEDEP}] )
660 - usb? ( >=virtual/libusb-1-r1:1[${MULTILIB_USEDEP}] )
661 - gphoto2? (
662 - >=media-libs/libgphoto2-2.5.3.1:=[${MULTILIB_USEDEP}]
663 - >=virtual/jpeg-0-r2[${MULTILIB_USEDEP}]
664 - )
665 - v4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
666 - xinetd? ( sys-apps/xinetd )
667 - snmp? ( net-analyzer/net-snmp )
668 - systemd? ( sys-apps/systemd:0= )
669 -"
670 -
671 -DEPEND="${RDEPEND}
672 - v4l? ( sys-kernel/linux-headers )
673 - doc? (
674 - virtual/latex-base
675 - dev-texlive/texlive-latexextra
676 - )
677 - >=sys-apps/sed-4
678 -
679 - >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
680 -
681 -# We now use new syntax construct (SUBSYSTEMS!="usb|usb_device)
682 -RDEPEND="${RDEPEND}
683 - !<sys-fs/udev-114
684 - abi_x86_32? (
685 - !<=app-emulation/emul-linux-x86-medialibs-20140508
686 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)]
687 - )"
688 -
689 -MULTILIB_CHOST_TOOLS=(
690 - /usr/bin/sane-config
691 -)
692 -
693 -pkg_setup() {
694 - enewgroup scanner
695 - enewuser saned -1 -1 -1 scanner
696 -}
697 -
698 -src_prepare() {
699 - cat >> backend/dll.conf.in <<-EOF
700 - # Add support for the HP-specific backend. Needs net-print/hplip installed.
701 - hpaio
702 - # Add support for the Epson-specific backend. Needs media-gfx/iscan installed.
703 - epkowa
704 - EOF
705 - epatch "${FILESDIR}"/niash_array_index.patch \
706 - "${FILESDIR}"/${P}-unused-cups.patch \
707 - "${FILESDIR}"/${P}-automagic_systemd.patch \
708 - "${FILESDIR}"/${P}-systemd_pkgconfig.patch \
709 - "${FILESDIR}"/${P}-kodakaio_avahi.patch \
710 - "${FILESDIR}"/${P}-saned_pidfile_location.patch \
711 - "${FILESDIR}"/${P}-cross-compile.patch
712 - # Fix for "make check".
713 - sed -i -e 's/sane-backends 1.0.24git/sane-backends 1.0.24/' testsuite/tools/data/html*
714 - AT_NOELIBTOOLIZE=yes eautoreconf
715 -}
716 -
717 -src_configure() {
718 - append-flags -fno-strict-aliasing
719 -
720 - multilib-minimal_src_configure
721 -}
722 -
723 -multilib_src_configure() {
724 - # the blank is intended - an empty string would result in building ALL backends.
725 - local BACKENDS=" "
726 -
727 - use gphoto2 && BACKENDS="gphoto2"
728 - use v4l && BACKENDS="${BACKENDS} v4l"
729 - for backend in ${IUSE_SANE_BACKENDS}; do
730 - if use "sane_backends_${backend}" && [ ${backend} != pnm ]; then
731 - BACKENDS="${BACKENDS} ${backend}"
732 - fi
733 - done
734 -
735 - local myconf=(
736 - $(use_enable usb libusb_1_0)
737 - $(multilib_native_use_with snmp)
738 - )
739 -
740 - # you can only enable this backend, not disable it...
741 - if use sane_backends_pnm; then
742 - myconf+=( --enable-pnm-backend )
743 - fi
744 - if ! use doc; then
745 - myconf+=( --disable-latex )
746 - fi
747 - if use sane_backends_mustek_pp; then
748 - myconf+=( --enable-parport-directio )
749 - fi
750 - if ! { use sane_backends_canon_pp || use sane_backends_hpsj5s || use sane_backends_mustek_pp; }; then
751 - myconf+=( sane_cv_use_libieee1284=no )
752 - fi
753 - # if LINGUAS is set, just use the listed and supported localizations.
754 - if [ "${LINGUAS-NoLocalesSet}" != NoLocalesSet ]; then
755 - mkdir -p po || die
756 - echo > po/LINGUAS
757 - for lang in ${LINGUAS}; do
758 - if [ -a "${S}"/po/${lang}.po ]; then
759 - echo ${lang} >> po/LINGUAS
760 - fi
761 - done
762 - fi
763 -
764 - # relative path must be used for tests to work properly
765 - ECONF_SOURCE=../${P} \
766 - SANEI_JPEG="sanei_jpeg.o" SANEI_JPEG_LO="sanei_jpeg.lo" \
767 - BACKENDS="${BACKENDS}" \
768 - econf \
769 - $(use_with gphoto2) \
770 - $(multilib_native_use_with systemd) \
771 - $(use_with v4l) \
772 - $(use_enable avahi) \
773 - $(use_enable ipv6) \
774 - $(use_enable threads pthread) \
775 - "${myconf[@]}"
776 -}
777 -
778 -multilib_src_compile() {
779 - emake VARTEXFONTS="${T}/fonts"
780 -
781 - if use usb; then
782 - cd tools/hotplug || die
783 - sed -i -e '/^$/d' libsane.usermap || die
784 - fi
785 -
786 - if tc-is-cross-compiler; then
787 - # The build system sucks and doesn't handle this properly.
788 - # https://alioth.debian.org/tracker/index.php?func=detail&aid=314236&group_id=30186&atid=410366
789 - tc-export_build_env BUILD_CC
790 - cd "${BUILD_DIR}"/tools || die
791 - ${BUILD_CC} ${BUILD_CPPFLAGS} ${BUILD_CFLAGS} -I. -I../include -I"${S}"/include \
792 - "${S}"/sanei/sanei_config.c "${S}"/sanei/sanei_constrain_value.c \
793 - "${S}"/sanei/sanei_init_debug.c "${S}"/tools/sane-desc.c -o sane-desc || die
794 - local dirs=( hal hotplug hotplug-ng udev )
795 - local targets=(
796 - hal/libsane.fdi
797 - hotplug/libsane.usermap
798 - hotplug-ng/libsane.db
799 - udev/libsane.rules
800 - )
801 - mkdir -p "${dirs[@]}" || die
802 - emake "${targets[@]}"
803 - fi
804 -}
805 -
806 -multilib_src_install() {
807 - emake INSTALL_LOCKPATH="" DESTDIR="${D}" install \
808 - docdir="${EPREFIX}"/usr/share/doc/${PF}
809 -
810 - if multilib_is_native_abi; then
811 - if use usb; then
812 - insinto /etc/hotplug/usb
813 - doins tools/hotplug/libsane.usermap
814 - fi
815 -
816 - udev_newrules tools/udev/libsane.rules 41-libsane.rules
817 - insinto "/usr/share/pkgconfig"
818 - doins tools/sane-backends.pc
819 - fi
820 -}
821 -
822 -multilib_src_install_all() {
823 - keepdir /var/lib/lock/sane
824 - fowners root:scanner /var/lib/lock/sane
825 - fperms g+w /var/lib/lock/sane
826 - dodir /etc/env.d
827 -
828 - if use usb; then
829 - exeinto /etc/hotplug/usb
830 - doexe tools/hotplug/libusbscanner
831 - newdoc tools/hotplug/README README.hotplug
832 - fi
833 -
834 - dodoc NEWS AUTHORS ChangeLog* PROBLEMS README README.linux
835 - prune_libtool_files --all
836 - if use xinetd; then
837 - insinto /etc/xinetd.d
838 - doins "${FILESDIR}"/saned
839 - fi
840 -
841 - newinitd "${FILESDIR}"/saned.initd saned
842 - newconfd "${FILESDIR}"/saned.confd saned
843 -}
844 -
845 -pkg_postinst() {
846 - if use xinetd; then
847 - elog "If you want remote clients to connect, edit"
848 - elog "/etc/sane.d/saned.conf and /etc/hosts.allow"
849 - fi
850 -
851 - elog "If you are using a USB scanner, add all users who want"
852 - elog "to access your scanner to the \"scanner\" group."
853 -}