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