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