Gentoo Archives: gentoo-commits

From: "Matthias Schwarzott (zzam)" <zzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/sane-backends: ChangeLog sane-backends-1.0.18-r5.ebuild
Date: Fri, 05 Oct 2007 07:41:26
Message-Id: E1IdhfH-0002hQ-Hq@stork.gentoo.org
1 zzam 07/10/05 07:32:03
2
3 Modified: ChangeLog
4 Added: sane-backends-1.0.18-r5.ebuild
5 Log:
6 Fixed file mode for libusb device nodes (664 as default rules do). Let the udev rules ignore printer devices, Bug #193266. Renamed rules file to 70-libsane.rules.
7 (Portage version: 2.1.3.11)
8
9 Revision Changes Path
10 1.126 media-gfx/sane-backends/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sane-backends/ChangeLog?rev=1.126&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sane-backends/ChangeLog?rev=1.126&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sane-backends/ChangeLog?r1=1.125&r2=1.126
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v
19 retrieving revision 1.125
20 retrieving revision 1.126
21 diff -u -r1.125 -r1.126
22 --- ChangeLog 5 Sep 2007 11:29:45 -0000 1.125
23 +++ ChangeLog 5 Oct 2007 07:32:03 -0000 1.126
24 @@ -1,6 +1,14 @@
25 # ChangeLog for media-gfx/sane-backends
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v 1.125 2007/09/05 11:29:45 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v 1.126 2007/10/05 07:32:03 zzam Exp $
29 +
30 +*sane-backends-1.0.18-r5 (05 Oct 2007)
31 +
32 + 05 Oct 2007; Matthias Schwarzott <zzam@g.o>
33 + +files/udev-rule-4.patch, +sane-backends-1.0.18-r5.ebuild:
34 + Fixed file mode for libusb device nodes (664 as default rules do). Let the
35 + udev rules ignore printer devices, Bug #193266. Renamed rules file to
36 + 70-libsane.rules.
37
38 05 Sep 2007; Raúl Porcel <armin76@g.o>
39 sane-backends-1.0.18-r4.ebuild:
40
41
42
43 1.1 media-gfx/sane-backends/sane-backends-1.0.18-r5.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sane-backends/sane-backends-1.0.18-r5.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sane-backends/sane-backends-1.0.18-r5.ebuild?rev=1.1&content-type=text/plain
47
48 Index: sane-backends-1.0.18-r5.ebuild
49 ===================================================================
50 # Copyright 1999-2007 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/sane-backends-1.0.18-r5.ebuild,v 1.1 2007/10/05 07:32:03 zzam Exp $
53
54 inherit eutils
55
56 IUSE="usb gphoto2 ipv6 v4l"
57
58 DESCRIPTION="Scanner Access Now Easy - Backends"
59 HOMEPAGE="http://www.sane-project.org/"
60
61 RDEPEND=">=media-libs/jpeg-6b
62 amd64? ( sys-libs/libieee1284 )
63 x86? ( sys-libs/libieee1284 )
64 usb? ( >=dev-libs/libusb-0.1.8 )
65 gphoto2? ( media-libs/libgphoto2 )
66 v4l? ( sys-kernel/linux-headers )"
67
68 DEPEND="${RDEPEND}
69 >=sys-apps/sed-4"
70
71 # We now use new syntax construct (SUBSYSTEMS!="usb|usb_device)
72 RDEPEND="${RDEPEND}
73 !<sys-fs/udev-114"
74
75 BROTHERMFCPATCHVER="1.0.18"
76 BROTHERMFCDRIVER="sane-${BROTHERMFCPATCHVER}-brother-driver.diff"
77
78 # Could not access via ftp on 2006-07-20
79 SRC_URI="http://alioth.debian.org/download.php/1669/sane-backends-1.0.18.tar.gz
80 ftp://ftp.sane-project.org/pub/sane/${P}/${P}.tar.gz
81 ftp://ftp.sane-project.org/pub/sane/old-versions/${P}/${P}.tar.gz
82 usb? ( mirror://gentoo/${BROTHERMFCDRIVER}.bz2
83 http://dev.gentoo.org/~phosphan/${BROTHERMFCDRIVER}.bz2 )"
84 SLOT="0"
85 LICENSE="GPL-2 public-domain"
86 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
87
88 # To enable specific backends, define SANE_BACKENDS with the backends you want
89 # in those:
90 #
91 # abaton agfafocus apple artec as6e avision bh brother canon
92 # canon630u coolscan coolscan2 dc25 dmc
93 # epson fujitsu genesys gt68xx hp leo lexmark matsushita microtek
94 # microtek2 mustek mustek_usb nec pie pixma plustek
95 # plustek_pp ricoh s9036 sceptre sharp
96 # sp15c st400 tamarack test teco1 teco2 teco3 umax umax_pp umax1220u
97 # artec_eplus48u ma1509 ibm hp5400 u12 snapscan niash sm3840 hp4200
98 # sm3600 hp3500 stv680"
99
100 # Note that some backends has specific dependencies which make the compilation
101 # fail because not supported on your current platform.
102
103 pkg_setup() {
104 enewgroup scanner
105
106 IEEE1284_BACKENDS="canon_pp hpsj5s mustek_pp"
107
108 if [[ "${SANE_BACKENDS}" != "" ]]; then
109 use gphoto2 && SANE_BACKENDS="${SANE_BACKENDS} gphoto2"
110 use v4l && SANE_BACKENDS="${SANE_BACKENDS} v4l"
111 use usb && SANE_BACKENDS="${SANE_BACKENDS} sm3600"
112 fi
113
114 if ! use x86 && ! use amd64; then
115 tmp="${SANE_BACKENDS}"
116 for backend in ${IEEE1284_BACKENDS}; do
117 if [[ "${tmp/$backend/}" != "${SANE_BACKENDS}" ]]; then
118 ewarn "You selected a backend which is disabled because it's not usable in your arch."
119 fi
120 done
121 fi
122 }
123
124 src_unpack() {
125 if [ -z "${SANE_BACKENDS}" ]; then
126 elog "You can use the variable SANE_BACKENDS to pick backends"
127 elog "instead of building all of them."
128 fi
129 unpack ${A}
130 if use usb; then
131 unpack ${BROTHERMFCDRIVER}.bz2
132 fi
133
134 cd "${S}"
135
136 #only generate the .ps and not the fonts
137 sed -i -e 's:$(DVIPS) sane.dvi -o sane.ps:$(DVIPS) sane.dvi -M1 -o sane.ps:' \
138 doc/Makefile.in
139
140 if use usb; then
141 epatch "${WORKDIR}/${BROTHERMFCDRIVER}"
142 sed -e 's/bh canon/bh brother canon/' -i configure || \
143 die "could not add 'brother' to backend list"
144 fi
145 epatch "${FILESDIR}"/udev-rule-4.patch
146 epatch "${FILESDIR}"/broken_coolscan.patch
147 }
148
149 src_compile() {
150 SANEI_JPEG="sanei_jpeg.o" SANEI_JPEG_LO="sanei_jpeg.lo" \
151 BACKENDS="${SANE_BACKENDS}" \
152 econf \
153 $(use_enable usb libusb) \
154 $(use_with gphoto2) \
155 $(use_enable ipv6) \
156 ${myconf} || die "econf failed"
157
158 emake || die
159
160 if use usb; then
161 cd tools/hotplug
162 grep -v '^$' libsane.usermap > libsane.usermap.new
163 mv libsane.usermap.new libsane.usermap
164 fi
165 }
166
167 src_install () {
168 make INSTALL_LOCKPATH="" DESTDIR="${D}" install \
169 docdir=/usr/share/doc/${PF}
170 keepdir /var/lib/lock/sane
171 fowners root:scanner /var/lib/lock/sane
172 fperms g+w /var/lib/lock/sane
173 dodir /etc/env.d
174 if use usb; then
175 cd tools/hotplug
176 insinto /etc/hotplug/usb
177 exeinto /etc/hotplug/usb
178 doins libsane.usermap
179 doexe libusbscanner
180 newdoc README README.hotplug
181 echo >> "${D}"/etc/env.d/30sane "USB_DEVFS_PATH=/dev/bus/usb"
182 cd ../..
183 fi
184 cd tools/udev
185 dodir /etc/udev/rules.d
186 insinto /etc/udev/rules.d
187 newins libsane.rules 70-libsane.rules
188 cd ../..
189
190 dodoc NEWS AUTHORS LICENSE ChangeLog* README README.linux
191 echo "SANE_CONFIG_DIR=/etc/sane.d" >> "${D}"/etc/env.d/30sane
192 }
193
194
195
196 --
197 gentoo-commits@g.o mailing list