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