Gentoo Archives: gentoo-commits

From: "Stefan Briesenick (sbriesen)" <sbriesen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/iscan: ChangeLog iscan-2.26.2.ebuild
Date: Sun, 03 Apr 2011 00:17:24
Message-Id: 20110403001714.CBCB920054@flycatcher.gentoo.org
1 sbriesen 11/04/03 00:17:14
2
3 Modified: ChangeLog
4 Added: iscan-2.26.2.ebuild
5 Log:
6 version bump (bug #359601)
7
8 (Portage version: 2.2.0_alpha29/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.41 media-gfx/iscan/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/iscan/ChangeLog?rev=1.41&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/iscan/ChangeLog?rev=1.41&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/iscan/ChangeLog?r1=1.40&r2=1.41
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-gfx/iscan/ChangeLog,v
20 retrieving revision 1.40
21 retrieving revision 1.41
22 diff -u -r1.40 -r1.41
23 --- ChangeLog 29 Mar 2011 12:22:06 -0000 1.40
24 +++ ChangeLog 3 Apr 2011 00:17:14 -0000 1.41
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-gfx/iscan
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/iscan/ChangeLog,v 1.40 2011/03/29 12:22:06 angelos Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/iscan/ChangeLog,v 1.41 2011/04/03 00:17:14 sbriesen Exp $
30 +
31 +*iscan-2.26.2 (03 Apr 2011)
32 +
33 + 03 Apr 2011; Stefan Briesenick <sbriesen@g.o> +iscan-2.26.2.ebuild:
34 + version bump (bug #359601)
35
36 29 Mar 2011; Christoph Mende <angelos@g.o> iscan-2.11.0.ebuild,
37 iscan-2.21.0.ebuild, iscan-2.25.0.ebuild:
38
39
40
41 1.1 media-gfx/iscan/iscan-2.26.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/iscan/iscan-2.26.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/iscan/iscan-2.26.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: iscan-2.26.2.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-gfx/iscan/iscan-2.26.2.ebuild,v 1.1 2011/04/03 00:17:14 sbriesen Exp $
51
52 EAPI="2"
53
54 inherit eutils flag-o-matic autotools
55
56 SRC_REV="1" # revision used by upstream
57
58 # HINTS:
59 # -> non-free modules are x86 and amd64 only
60 # -> iscan frontend needs non-free modules
61 # -> sane-epkowa should be usable on every arch
62 # -> ${P}-${SRC_REV}.tar.gz (for gcc 3.2/3.3)
63 # -> ${P}-${SRC_REV}.c2.tar.gz (for gcc 3.4 or later)
64
65 # FIXME:
66 # Make jpeg/png optional. The problem is, that the configure script ignores --disable-*,
67 # if the corresponding lib is found on the system.
68 # Furthermore, iscan doesn't compile w/o libusb, this should be fixed somehow.
69
70 # TODO:
71 # (re)add closed-source binary modules which are needed for some scanners.
72
73 KEYWORDS="~amd64 ~x86"
74
75 DESCRIPTION="EPSON Image Scan! for Linux (including sane-epkowa backend)"
76 HOMEPAGE="http://www.avasys.jp/english/linux_e/dl_scan.html"
77 SRC_URI="http://linux.avasys.jp/drivers/iscan/${PV}/${PN}_${PV}-${SRC_REV}.tar.gz
78 doc? ( http://linux.avasys.jp/drivers/iscan/doc/userg_revL_e.pdf )"
79 LICENSE="GPL-2 AVASYS"
80 SLOT="0"
81
82 IUSE="X gimp jpeg png tiff doc"
83 IUSE_LINGUAS="ar de es fr it ja ko nl pt zh_CN zh_TW"
84
85 for X in ${IUSE_LINGUAS}; do IUSE="${IUSE} linguas_${X}"; done
86
87 QA_PRESTRIPPED="usr/$(get_libdir)/libesmod.so.*"
88 QA_TEXTRELS="${QA_PRESTRIPPED}"
89 QA_DT_HASH="${QA_PRESTRIPPED}"
90
91 # Upstream ships broken sanity test
92 RESTRICT="test"
93
94 RDEPEND="media-gfx/iscan-data
95 media-gfx/sane-backends
96 >=sys-fs/udev-103
97 >=dev-libs/libusb-0.1.12
98 sys-libs/libieee1284
99 X? (
100 x11-libs/gtk+:2
101 gimp? ( media-gfx/gimp )
102 png? ( media-libs/libpng )
103 jpeg? ( virtual/jpeg )
104 tiff? ( media-libs/tiff )
105 )"
106
107 DEPEND="${RDEPEND}
108 X? ( sys-devel/gettext )"
109
110 src_prepare() {
111 local i
112
113 # convert japanese docs to UTF-8
114 if use linguas_ja; then
115 for i in {NEWS,README}.ja non-free/*.ja.txt; do
116 if [ -f "${i}" ]; then
117 echo ">>> Converting ${i} to UTF-8"
118 iconv -f eucjp -t utf8 -o "${i}~" "${i}" && mv -f "${i}~" "${i}" || rm -f "${i}~"
119 fi
120 done
121 fi
122
123 # disable checks for gtk+
124 if ! use X; then
125 sed -i -e "s:PKG_CHECK_MODULES(GTK,.*):AC_DEFINE([HAVE_GTK_2], 0):g" \
126 -e "s:\(PKG_CHECK_MODULES(GDK_IMLIB,.*)\):#\1:g" configure.ac
127 fi
128
129 epatch "${FILESDIR}/iscan-2.25.0-drop-ltdl.patch"
130 epatch "${FILESDIR}/iscan-2.25.0-fix-g++-test.patch"
131
132 eautoreconf
133 }
134
135 src_configure() {
136 append-flags -D_GNU_SOURCE # needed for 'strndup'
137 local myconf="--enable-dependency-reduction"
138
139 if use X; then
140 myconf="${myconf}
141 --enable-frontend
142 $(use_enable gimp)
143 $(use_enable jpeg)
144 $(use_enable png)
145 $(use_enable tiff)"
146 else
147 myconf="${myconf}
148 --disable-frontend --disable-gimp
149 --disable-jpeg --disable-png --disable-tiff"
150 fi
151
152 econf --disable-static ${myconf}
153 }
154
155 src_install() {
156 local MY_LIB="/usr/$(get_libdir)"
157 emake DESTDIR="${D}" install || die "emake install failed"
158
159 # install docs
160 dodoc AUTHORS NEWS README
161 use linguas_ja && dodoc NEWS.ja README.ja
162
163 # install sane config
164 insinto /etc/sane.d
165 doins backend/epkowa.conf
166
167 # install extra docs
168 if use doc; then
169 insinto /usr/share/doc/${PF}
170 doins "${DISTDIR}/userg_revL_e.pdf"
171 fi
172
173 # link iscan so it is seen as a plugin in gimp
174 if use X && use gimp; then
175 local plugindir
176 if [ -x /usr/bin/gimptool ]; then
177 plugindir="$(gimptool --gimpplugindir)/plug-ins"
178 elif [ -x /usr/bin/gimptool-2.0 ]; then
179 plugindir="$(gimptool-2.0 --gimpplugindir)/plug-ins"
180 else
181 die "Can't find GIMP plugin directory."
182 fi
183 dodir "${plugindir}"
184 dosym /usr/bin/iscan "${plugindir}"
185 fi
186
187 # install desktop entry
188 if use X; then
189 make_desktop_entry iscan "Image Scan! for Linux ${PV}" scanner
190 fi
191 }
192
193 pkg_postinst() {
194 local i
195 local DLL_CONF="/etc/sane.d/dll.conf"
196 local EPKOWA_CONF="/etc/sane.d/epkowa.conf"
197
198 elog
199 if grep -q "^[ \t]*\<epkowa\>" ${DLL_CONF}; then
200 elog "Please edit ${EPKOWA_CONF} to suit your needs."
201 elif grep -q "\<epkowa\>" ${DLL_CONF}; then
202 elog "Hint: to enable the backend, add 'epkowa' to ${DLL_CONF}"
203 elog "Then edit ${EPKOWA_CONF} to suit your needs."
204 else
205 echo "epkowa" >> ${DLL_CONF}
206 elog "A new entry 'epkowa' was added to ${DLL_CONF}"
207 elog "Please edit ${EPKOWA_CONF} to suit your needs."
208 fi
209 }