Gentoo Archives: gentoo-commits

From: "Patrick Kursawe (phosphan)" <phosphan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/sane-backends: ChangeLog sane-backends-1.0.20-r3.ebuild
Date: Sat, 02 Jan 2010 23:26:54
Message-Id: E1NRD5G-00022f-T2@stork.gentoo.org
1 phosphan 10/01/02 23:08:34
2
3 Modified: ChangeLog
4 Added: sane-backends-1.0.20-r3.ebuild
5 Log:
6 Fixing a genesys specific problem, see bug #298578
7 (Portage version: 2.1.6.13/cvs/Linux i686)
8
9 Revision Changes Path
10 1.166 media-gfx/sane-backends/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sane-backends/ChangeLog?rev=1.166&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sane-backends/ChangeLog?rev=1.166&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sane-backends/ChangeLog?r1=1.165&r2=1.166
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v
19 retrieving revision 1.165
20 retrieving revision 1.166
21 diff -u -r1.165 -r1.166
22 --- ChangeLog 22 Nov 2009 20:22:19 -0000 1.165
23 +++ ChangeLog 2 Jan 2010 23:08:34 -0000 1.166
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-gfx/sane-backends
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v 1.165 2009/11/22 20:22:19 phosphan Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v 1.166 2010/01/02 23:08:34 phosphan Exp $
30 +
31 +*sane-backends-1.0.20-r3 (02 Jan 2010)
32 +
33 + 02 Jan 2010; Patrick Kursawe <phosphan@g.o>
34 + +sane-backends-1.0.20-r3.ebuild, +files/genesys_io.patch:
35 + Fixing a genesys specific problem, see bug #298578
36
37 *sane-backends-1.0.20-r2 (22 Nov 2009)
38
39
40
41
42 1.1 media-gfx/sane-backends/sane-backends-1.0.20-r3.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sane-backends/sane-backends-1.0.20-r3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sane-backends/sane-backends-1.0.20-r3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: sane-backends-1.0.20-r3.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/sane-backends-1.0.20-r3.ebuild,v 1.1 2010/01/02 23:08:34 phosphan Exp $
52
53 EAPI="1"
54
55 inherit eutils flag-o-matic
56
57 # gphoto and v4l are handled by their usual USE flags.
58 # The pint backend was disabled because I could not get it to compile.
59 IUSE_SANE_BACKENDS="
60 abaton
61 agfafocus
62 apple
63 artec
64 artec_eplus48u
65 as6e
66 avision
67 bh
68 canon
69 canon630u
70 canon_dr
71 canon_pp
72 cardscan
73 coolscan
74 coolscan2
75 coolscan3
76 dc25
77 dc210
78 dc240
79 dell1600n_net
80 dmc
81 epjitsu
82 epson
83 epson2
84 fujitsu
85 genesys
86 gt68xx
87 hp
88 hp3500
89 hp3900
90 hp4200
91 hp5400
92 hp5590
93 hpsj5s
94 hpljm1005
95 hs2p
96 ibm
97 leo
98 lexmark
99 ma1509
100 matsushita
101 microtek
102 microtek2
103 mustek
104 mustek_pp
105 mustek_usb
106 mustek_usb2
107 nec
108 net
109 niash
110 pie
111 pixma
112 plustek
113 plustek_pp
114 qcam
115 ricoh
116 rts8891
117 s9036
118 sceptre
119 sharp
120 sm3600
121 sm3840
122 snapscan
123 sp15c
124 st400
125 stv680
126 tamarack
127 teco1
128 teco2
129 teco3
130 test
131 u12
132 umax
133 umax_pp
134 umax1220u
135 xerox_mfp"
136
137 IUSE="avahi usb gphoto2 ipv6 v4l doc"
138
139 for backend in ${IUSE_SANE_BACKENDS}; do
140 IUSE="${IUSE} +sane_backends_${backend}"
141 done
142
143 DESCRIPTION="Scanner Access Now Easy - Backends"
144 HOMEPAGE="http://www.sane-project.org/"
145
146 RDEPEND="
147 sane_backends_dc210? ( >=media-libs/jpeg-6b )
148 sane_backends_dc240? ( >=media-libs/jpeg-6b )
149 sane_backends_dell1600n_net? ( >=media-libs/jpeg-6b )
150 avahi? ( >=net-dns/avahi-0.6.24 )
151 x86? (
152 sane_backends_canon_pp? ( sys-libs/libieee1284 )
153 sane_backends_hpsj5s? ( sys-libs/libieee1284 )
154 sane_backends_mustek_pp? ( sys-libs/libieee1284 )
155 )
156 amd64? (
157 sane_backends_canon_pp? ( sys-libs/libieee1284 )
158 sane_backends_hpsj5s? ( sys-libs/libieee1284 )
159 sane_backends_mustek_pp? ( sys-libs/libieee1284 )
160 )
161 usb? ( virtual/libusb:0 )
162 gphoto2? (
163 media-libs/libgphoto2
164 >=media-libs/jpeg-6b
165 )
166 v4l? ( sys-kernel/linux-headers
167 arm? ( media-libs/libv4l )
168 alpha? ( media-libs/libv4l )
169 amd64? ( media-libs/libv4l )
170 ppc? ( media-libs/libv4l )
171 ppc64? ( media-libs/libv4l )
172 x86? ( media-libs/libv4l )
173 )"
174
175 DEPEND="${RDEPEND}
176 doc? (
177 virtual/latex-base
178 || ( dev-texlive/texlive-latexextra app-text/tetex app-text/ptex )
179 )
180 >=sys-apps/sed-4"
181
182 # We now use new syntax construct (SUBSYSTEMS!="usb|usb_device)
183 RDEPEND="${RDEPEND}
184 !<sys-fs/udev-114"
185
186 # Could not access via ftp on 2006-07-20
187 SRC_URI="http://alioth.debian.org/frs/download.php/2318/${P}.tar.gz
188 ftp://ftp.sane-project.org/pub/sane/${P}/${P}.tar.gz
189 ftp://ftp.sane-project.org/pub/sane/old-versions/${P}/${P}.tar.gz"
190 SLOT="0"
191 LICENSE="GPL-2 public-domain"
192 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
193
194 # the blank is intended - an empty string would result in building ALL backends.
195 BACKENDS=" "
196
197 pkg_setup() {
198
199 enewgroup scanner
200
201 use gphoto2 && BACKENDS="gphoto2"
202 use v4l && BACKENDS="${BACKENDS} v4l"
203 for backend in ${IUSE_SANE_BACKENDS}; do
204 if use "sane_backends_${backend}"; then
205 BACKENDS="${BACKENDS} ${backend}"
206 fi
207 done
208 IEEE1284_BACKENDS="canon_pp hpsj5s mustek_pp"
209 if ! use x86 && ! use amd64; then
210 tmp="${IUSE_SANE_BACKENDS}"
211 for backend in ${IEEE1284_BACKENDS}; do
212 if [[ "${tmp/$backend/}" != "${IUSE_SANE_BACKENDS}" ]]; then
213 ewarn "You selected a backend which is disabled because it's not usable in your arch."
214 fi
215 done
216 fi
217 }
218
219 src_unpack() {
220 unpack ${A}
221 cd "${S}"
222
223 cat >> backend/dll.conf.in <<-EOF
224 # Add support for the HP-specific backend. Needs net-print/hplip installed.
225 hpaio
226 EOF
227 epatch "${FILESDIR}/${PV}-unbreak-udev.diff"
228 epatch "${FILESDIR}/udev-rule-6.patch"
229 epatch "${FILESDIR}/genesys_io.patch"
230 }
231
232 src_compile() {
233 append-flags -fno-strict-aliasing
234
235 myconf=$(use_enable usb libusb)
236 if ! use doc; then
237 myconf="${myconf} --disable-latex"
238 fi
239 if use sane_backends_mustek_pp; then
240 myconf="${myconf} --enable-parport-directio"
241 fi
242 SANEI_JPEG="sanei_jpeg.o" SANEI_JPEG_LO="sanei_jpeg.lo" \
243 BACKENDS="${BACKENDS}" econf \
244 $(use_with gphoto2) \
245 $(use_enable ipv6) \
246 $(use_enable avahi) \
247 ${myconf} || die "econf failed"
248
249 emake VARTEXFONTS="${T}/fonts" || die
250
251 if use usb; then
252 cd tools/hotplug
253 grep -v '^$' libsane.usermap > libsane.usermap.new
254 mv libsane.usermap.new libsane.usermap
255 fi
256 }
257
258 src_install () {
259 make INSTALL_LOCKPATH="" DESTDIR="${D}" install \
260 docdir=/usr/share/doc/${PF}
261 keepdir /var/lib/lock/sane
262 fowners root:scanner /var/lib/lock/sane
263 fperms g+w /var/lib/lock/sane
264 dodir /etc/env.d
265 if use usb; then
266 cd tools/hotplug
267 insinto /etc/hotplug/usb
268 exeinto /etc/hotplug/usb
269 doins libsane.usermap
270 doexe libusbscanner
271 newdoc README README.hotplug
272 echo >> "${D}"/etc/env.d/30sane "USB_DEVFS_PATH=/dev/bus/usb"
273 cd ../..
274 fi
275 cd tools/udev
276 dodir /etc/udev/rules.d
277 insinto /etc/udev/rules.d
278 newins libsane.rules 70-libsane.rules
279 cd ../..
280 dodoc NEWS AUTHORS ChangeLog* README README.linux
281 echo "SANE_CONFIG_DIR=/etc/sane.d" >> "${D}"/etc/env.d/30sane
282 }