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