Gentoo Archives: gentoo-commits

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