1 |
commit: 117940f3721bb3530b37048e81d34c864b117c61 |
2 |
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 28 07:39:53 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 28 07:40:46 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=117940f3 |
7 |
|
8 |
media-gfx/sane-backends: remove old 1.0.30-r1 |
9 |
|
10 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
11 |
|
12 |
.../sane-backends/sane-backends-1.0.30-r1.ebuild | 337 --------------------- |
13 |
1 file changed, 337 deletions(-) |
14 |
|
15 |
diff --git a/media-gfx/sane-backends/sane-backends-1.0.30-r1.ebuild b/media-gfx/sane-backends/sane-backends-1.0.30-r1.ebuild |
16 |
deleted file mode 100644 |
17 |
index 2748eaef313..00000000000 |
18 |
--- a/media-gfx/sane-backends/sane-backends-1.0.30-r1.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,337 +0,0 @@ |
21 |
-# Copyright 1999-2020 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=7 |
25 |
- |
26 |
-inherit autotools eutils flag-o-matic multilib-minimal systemd toolchain-funcs udev user |
27 |
- |
28 |
-# gphoto and v4l are handled by their usual USE flags. |
29 |
-# The pint backend was disabled because I could not get it to compile. |
30 |
-IUSE_SANE_BACKENDS=" |
31 |
- abaton |
32 |
- agfafocus |
33 |
- apple |
34 |
- artec |
35 |
- artec_eplus48u |
36 |
- as6e |
37 |
- avision |
38 |
- bh |
39 |
- canon |
40 |
- canon630u |
41 |
- canon_dr |
42 |
- canon_pp |
43 |
- cardscan |
44 |
- coolscan |
45 |
- coolscan2 |
46 |
- coolscan3 |
47 |
- dc210 |
48 |
- dc240 |
49 |
- dc25 |
50 |
- dell1600n_net |
51 |
- dmc |
52 |
- epjitsu |
53 |
- epson |
54 |
- epson2 |
55 |
- escl |
56 |
- fujitsu |
57 |
- genesys |
58 |
- gt68xx |
59 |
- hp |
60 |
- hp3500 |
61 |
- hp3900 |
62 |
- hp4200 |
63 |
- hp5400 |
64 |
- hp5590 |
65 |
- hpljm1005 |
66 |
- hpsj5s |
67 |
- hs2p |
68 |
- ibm |
69 |
- kodak |
70 |
- kodakaio |
71 |
- kvs1025 |
72 |
- kvs20xx |
73 |
- kvs40xx |
74 |
- leo |
75 |
- lexmark |
76 |
- ma1509 |
77 |
- magicolor |
78 |
- matsushita |
79 |
- microtek |
80 |
- microtek2 |
81 |
- mustek |
82 |
- mustek_pp |
83 |
- mustek_usb |
84 |
- mustek_usb2 |
85 |
- nec |
86 |
- net |
87 |
- niash |
88 |
- p5 |
89 |
- pie |
90 |
- pixma |
91 |
- plustek |
92 |
- plustek_pp |
93 |
- pnm |
94 |
- qcam |
95 |
- ricoh |
96 |
- rts8891 |
97 |
- s9036 |
98 |
- sceptre |
99 |
- sharp |
100 |
- sm3600 |
101 |
- sm3840 |
102 |
- snapscan |
103 |
- sp15c |
104 |
- st400 |
105 |
- stv680 |
106 |
- tamarack |
107 |
- teco1 |
108 |
- teco2 |
109 |
- teco3 |
110 |
- test |
111 |
- u12 |
112 |
- umax |
113 |
- umax1220u |
114 |
- umax_pp |
115 |
- xerox_mfp" |
116 |
- |
117 |
-IUSE="gphoto2 ipv6 snmp systemd threads usb v4l xinetd zeroconf" |
118 |
- |
119 |
-for GBACKEND in ${IUSE_SANE_BACKENDS}; do |
120 |
- case ${GBACKEND} in |
121 |
- # Disable backends that require parallel ports as no one has those anymore. |
122 |
- canon_pp|hpsj5s|mustek_pp|\ |
123 |
- pnm|mustek_usb2|kvs40xx) |
124 |
- IUSE+=" sane_backends_${GBACKEND}" |
125 |
- ;; |
126 |
- *) |
127 |
- IUSE+=" +sane_backends_${GBACKEND}" |
128 |
- esac |
129 |
-done |
130 |
- |
131 |
-REQUIRED_USE=" |
132 |
- sane_backends_escl? ( zeroconf ) |
133 |
- sane_backends_kvs40xx? ( threads ) |
134 |
- sane_backends_mustek_usb2? ( threads ) |
135 |
-" |
136 |
- |
137 |
-MY_PN=${PN//sane-/} |
138 |
-MY_P="${MY_PN}-${PV}" |
139 |
- |
140 |
-DESCRIPTION="Scanner Access Now Easy - Backends" |
141 |
-HOMEPAGE="http://www.sane-project.org/" |
142 |
-SRC_URI="https://gitlab.com/sane-project/backends/-/archive/${PV}/${MY_P}.tar.gz" |
143 |
- |
144 |
-LICENSE="GPL-2 public-domain" |
145 |
-SLOT="0" |
146 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
147 |
- |
148 |
-RDEPEND=" |
149 |
- gphoto2? ( |
150 |
- >=media-libs/libgphoto2-2.5.3.1:=[${MULTILIB_USEDEP}] |
151 |
- >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}] |
152 |
- ) |
153 |
- sane_backends_canon_pp? ( >=sys-libs/libieee1284-0.2.11-r3[${MULTILIB_USEDEP}] ) |
154 |
- sane_backends_dc210? ( >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}] ) |
155 |
- sane_backends_dc240? ( >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}] ) |
156 |
- sane_backends_dell1600n_net? ( |
157 |
- >=media-libs/tiff-3.9.7-r1:0=[${MULTILIB_USEDEP}] |
158 |
- >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}] |
159 |
- ) |
160 |
- sane_backends_escl? ( net-misc/curl ) |
161 |
- sane_backends_hpsj5s? ( >=sys-libs/libieee1284-0.2.11-r3[${MULTILIB_USEDEP}] ) |
162 |
- sane_backends_mustek_pp? ( >=sys-libs/libieee1284-0.2.11-r3[${MULTILIB_USEDEP}] ) |
163 |
- snmp? ( net-analyzer/net-snmp:0= ) |
164 |
- systemd? ( sys-apps/systemd:0= ) |
165 |
- usb? ( >=virtual/libusb-1-r1:1=[${MULTILIB_USEDEP}] ) |
166 |
- v4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
167 |
- xinetd? ( sys-apps/xinetd ) |
168 |
- zeroconf? ( >=net-dns/avahi-0.6.31-r2[${MULTILIB_USEDEP}] ) |
169 |
-" |
170 |
- |
171 |
-DEPEND="${RDEPEND} |
172 |
- dev-libs/libxml2 |
173 |
- v4l? ( sys-kernel/linux-headers ) |
174 |
-" |
175 |
-BDEPEND=" |
176 |
- sys-devel/gettext |
177 |
- virtual/pkgconfig |
178 |
-" |
179 |
- |
180 |
-PATCHES=( |
181 |
- "${FILESDIR}"/${PN}-1.0.24-saned_pidfile_location.patch |
182 |
- "${FILESDIR}"/${PN}-1.0.27-disable-usb-tests.patch |
183 |
- "${FILESDIR}"/${P}-missing-stdint-include.patch |
184 |
- "${FILESDIR}"/sane-backends-1.0.30-add_hpaio_epkowa_dll.conf.patch |
185 |
-) |
186 |
- |
187 |
-S="${WORKDIR}/${MY_P}" |
188 |
- |
189 |
-MULTILIB_CHOST_TOOLS=( |
190 |
- /usr/bin/sane-config |
191 |
-) |
192 |
- |
193 |
-pkg_setup() { |
194 |
- enewgroup scanner |
195 |
- enewuser saned -1 -1 -1 scanner |
196 |
-} |
197 |
- |
198 |
-src_prepare() { |
199 |
- default |
200 |
- |
201 |
- # Patch out the git reference so we can run eautoreconf |
202 |
- sed -i -e "s/m4_esyscmd_s(\[git describe --dirty\])/${PV}/" configure.ac || die |
203 |
- eautoreconf |
204 |
- |
205 |
- # Fix for "make check". Upstream sometimes forgets to update this. |
206 |
- local ver=$(./configure --version | awk '{print $NF; exit 0}') |
207 |
- sed -i \ |
208 |
- -e "/by sane-desc 3.5 from sane-backends/s:sane-backends .*:sane-backends ${ver}:" \ |
209 |
- testsuite/tools/data/html* || die |
210 |
- |
211 |
-} |
212 |
- |
213 |
-src_configure() { |
214 |
- append-flags -fno-strict-aliasing # From Fedora |
215 |
- multilib-minimal_src_configure |
216 |
-} |
217 |
- |
218 |
-multilib_src_configure() { |
219 |
- # the blank is intended - an empty string would result in building ALL backends. |
220 |
- local lbackends=" " |
221 |
- |
222 |
- use gphoto2 && lbackends="gphoto2" |
223 |
- use v4l && lbackends="${lbackends} v4l" |
224 |
- for backend in ${IUSE_SANE_BACKENDS}; do |
225 |
- if use "sane_backends_${backend}" && [ ${backend} != pnm ]; then |
226 |
- lbackends="${lbackends} ${backend}" |
227 |
- fi |
228 |
- done |
229 |
- |
230 |
- local myconf=( |
231 |
- $(use_with usb) |
232 |
- $(multilib_native_use_with snmp) |
233 |
- ) |
234 |
- |
235 |
- # you can only enable this backend, not disable it... |
236 |
- if use sane_backends_pnm; then |
237 |
- myconf+=( --enable-pnm-backend ) |
238 |
- fi |
239 |
- if use sane_backends_mustek_pp; then |
240 |
- myconf+=( --enable-parport-directio ) |
241 |
- fi |
242 |
- if ! { use sane_backends_canon_pp || use sane_backends_hpsj5s || use sane_backends_mustek_pp; }; then |
243 |
- myconf+=( sane_cv_use_libieee1284=no ) |
244 |
- fi |
245 |
- |
246 |
- # relative path must be used for tests to work properly |
247 |
- # All distributions pass --disable-locking because /var/lock/sane/ would be a world-writable directory |
248 |
- # --without-api-spec to not automagically depend on tons of stuff |
249 |
- # that break in many ways, bug #636202, #668232, #668350 |
250 |
- # People can refer to the "Programmer's Documentation" at http://www.sane-project.org/docs.html |
251 |
- ECONF_SOURCE=${S} \ |
252 |
- SANEI_JPEG="sanei_jpeg.o" SANEI_JPEG_LO="sanei_jpeg.lo" \ |
253 |
- BACKENDS="${lbackends}" \ |
254 |
- econf \ |
255 |
- --disable-locking \ |
256 |
- --without-api-spec \ |
257 |
- $(use_with gphoto2) \ |
258 |
- $(multilib_native_use_with systemd) \ |
259 |
- $(use_with v4l) \ |
260 |
- $(use_enable ipv6) \ |
261 |
- $(use_enable threads pthread) \ |
262 |
- $(use_enable zeroconf avahi) \ |
263 |
- "${myconf[@]}" |
264 |
-} |
265 |
- |
266 |
-multilib_src_compile() { |
267 |
- emake VARTEXFONTS="${T}/fonts" |
268 |
- |
269 |
- if tc-is-cross-compiler; then |
270 |
- pushd "${BUILD_DIR}"/tools >/dev/null || die |
271 |
- |
272 |
- # The build system sucks and doesn't handle this properly. |
273 |
- # https://alioth.debian.org/tracker/index.php?func=detail&aid=314236&group_id=30186&atid=410366 |
274 |
- tc-export_build_env BUILD_CC |
275 |
- ${BUILD_CC} ${BUILD_CPPFLAGS} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} \ |
276 |
- -I. -I../include -I"${S}"/include \ |
277 |
- "${S}"/sanei/sanei_config.c "${S}"/sanei/sanei_constrain_value.c \ |
278 |
- "${S}"/sanei/sanei_init_debug.c "${S}"/tools/sane-desc.c -o sane-desc || die |
279 |
- local dirs=( hal hotplug hotplug-ng udev ) |
280 |
- local targets=( |
281 |
- hal/libsane.fdi |
282 |
- hotplug/libsane.usermap |
283 |
- hotplug-ng/libsane.db |
284 |
- udev/libsane.rules |
285 |
- ) |
286 |
- mkdir -p "${dirs[@]}" || die |
287 |
- emake "${targets[@]}" |
288 |
- |
289 |
- popd >/dev/null || die |
290 |
- fi |
291 |
- |
292 |
- if use usb; then |
293 |
- sed -i -e '/^$/d' \ |
294 |
- tools/hotplug/libsane.usermap || die |
295 |
- fi |
296 |
-} |
297 |
- |
298 |
-multilib_src_install() { |
299 |
- emake INSTALL_LOCKPATH="" DESTDIR="${D}" install \ |
300 |
- docdir="${EPREFIX}"/usr/share/doc/${PF} |
301 |
- |
302 |
- if multilib_is_native_abi; then |
303 |
- if use usb; then |
304 |
- insinto /etc/hotplug/usb |
305 |
- doins tools/hotplug/libsane.usermap |
306 |
- fi |
307 |
- |
308 |
- udev_newrules tools/udev/libsane.rules 41-libsane.rules |
309 |
- insinto "/usr/share/pkgconfig" |
310 |
- doins tools/sane-backends.pc |
311 |
- fi |
312 |
-} |
313 |
- |
314 |
-multilib_src_install_all() { |
315 |
- keepdir /var/lib/lock/sane |
316 |
- fowners root:scanner /var/lib/lock/sane |
317 |
- fperms g+w /var/lib/lock/sane |
318 |
- dodir /etc/env.d |
319 |
- |
320 |
- if use systemd; then |
321 |
- systemd_newunit "${FILESDIR}"/saned_at.service "saned@.service" |
322 |
- systemd_newunit "${FILESDIR}"/saned.socket saned.socket |
323 |
- fi |
324 |
- |
325 |
- if use usb; then |
326 |
- exeinto /etc/hotplug/usb |
327 |
- doexe tools/hotplug/libusbscanner |
328 |
- newdoc tools/hotplug/README README.hotplug |
329 |
- fi |
330 |
- |
331 |
- dodoc NEWS AUTHORS PROBLEMS README README.linux |
332 |
- find "${D}" -name '*.la' -delete || die |
333 |
- |
334 |
- if use xinetd; then |
335 |
- insinto /etc/xinetd.d |
336 |
- doins "${FILESDIR}"/saned |
337 |
- fi |
338 |
- |
339 |
- newinitd "${FILESDIR}"/saned.initd saned |
340 |
- newconfd "${FILESDIR}"/saned.confd saned |
341 |
-} |
342 |
- |
343 |
-pkg_postinst() { |
344 |
- elog "Optional backends:" |
345 |
- optfeature "Epson-specific backend" media-gfx/iscan |
346 |
- optfeature "HP-specific backend" net-print/hplip |
347 |
- |
348 |
- if use xinetd; then |
349 |
- elog "If you want remote clients to connect, edit" |
350 |
- elog "/etc/sane.d/saned.conf and /etc/hosts.allow" |
351 |
- fi |
352 |
- |
353 |
- if ! use systemd; then |
354 |
- elog "If you are using a USB scanner, add all users who want" |
355 |
- elog "to access your scanner to the \"scanner\" group." |
356 |
- fi |
357 |
-} |