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.19-r2.ebuild
Date: Fri, 01 Aug 2008 15:18:27
Message-Id: E1KOwOe-0005yw-5M@stork.gentoo.org
1 phosphan 08/08/01 15:18:24
2
3 Modified: ChangeLog
4 Added: sane-backends-1.0.19-r2.ebuild
5 Log:
6 Included epson2 related fixes from SANE cvs
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.145 media-gfx/sane-backends/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sane-backends/ChangeLog?rev=1.145&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sane-backends/ChangeLog?rev=1.145&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sane-backends/ChangeLog?r1=1.144&r2=1.145
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v
19 retrieving revision 1.144
20 retrieving revision 1.145
21 diff -u -r1.144 -r1.145
22 --- ChangeLog 17 Jun 2008 01:19:23 -0000 1.144
23 +++ ChangeLog 1 Aug 2008 15:18:23 -0000 1.145
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.144 2008/06/17 01:19:23 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v 1.145 2008/08/01 15:18:23 phosphan Exp $
29 +
30 +*sane-backends-1.0.19-r2 (01 Aug 2008)
31 +
32 + 01 Aug 2008; Patrick Kursawe <phosphan@g.o>
33 + +files/epson2fixes-1.0.19.patch, +sane-backends-1.0.19-r2.ebuild:
34 + Included epson2 related fixes from SANE cvs
35
36 17 Jun 2008; Jeroen Roovers <jer@g.o>
37 sane-backends-1.0.19-r1.ebuild:
38
39
40
41 1.1 media-gfx/sane-backends/sane-backends-1.0.19-r2.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/sane-backends/sane-backends-1.0.19-r2.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-r2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: sane-backends-1.0.19-r2.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-r2.ebuild,v 1.1 2008/08/01 15:18:23 phosphan 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 ~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 if ! use doc; then
140 sed -i -e 's:@USE_LATEX@:no:' doc/Makefile.in
141 fi
142
143 if use usb; then
144 epatch "${WORKDIR}/${BROTHERMFCDRIVER}"
145 sed -e 's/bh canon/bh brother canon/' -i configure || \
146 die "could not add 'brother' to backend list"
147 fi
148 epatch "${FILESDIR}"/udev-rule-5.patch
149 epatch "${FILESDIR}"/fujitsu_DBG_LEVEL.patch
150 epatch "${FILESDIR}"/epson2fixes-"${PV}".patch
151 cat >> backend/dll.conf.in <<-EOF
152 # Add support for the HP-specific backend. Needs net-print/hplip installed.
153 hpaio
154 EOF
155 }
156
157 src_compile() {
158 SANEI_JPEG="sanei_jpeg.o" SANEI_JPEG_LO="sanei_jpeg.lo" \
159 BACKENDS="${SANE_BACKENDS}" \
160 econf \
161 $(use_enable usb libusb) \
162 $(use_with gphoto2) \
163 $(use_enable ipv6) \
164 ${myconf} || die "econf failed"
165
166 emake VARTEXFONTS="${T}/fonts" || die
167
168 if use usb; then
169 cd tools/hotplug
170 grep -v '^$' libsane.usermap > libsane.usermap.new
171 mv libsane.usermap.new libsane.usermap
172 fi
173 }
174
175 src_install () {
176 make INSTALL_LOCKPATH="" DESTDIR="${D}" install \
177 docdir=/usr/share/doc/${PF}
178 keepdir /var/lib/lock/sane
179 fowners root:scanner /var/lib/lock/sane
180 fperms g+w /var/lib/lock/sane
181 dodir /etc/env.d
182 if use usb; then
183 cd tools/hotplug
184 insinto /etc/hotplug/usb
185 exeinto /etc/hotplug/usb
186 doins libsane.usermap
187 doexe libusbscanner
188 newdoc README README.hotplug
189 echo >> "${D}"/etc/env.d/30sane "USB_DEVFS_PATH=/dev/bus/usb"
190 cd ../..
191 fi
192 cd tools/udev
193 dodir /etc/udev/rules.d
194 insinto /etc/udev/rules.d
195 newins libsane.rules 70-libsane.rules
196 cd ../..
197 dodoc NEWS AUTHORS ChangeLog* README README.linux
198 echo "SANE_CONFIG_DIR=/etc/sane.d" >> "${D}"/etc/env.d/30sane
199 }