1 |
commit: d081da5fba84475797db1f8227587a1777f34bca |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 5 09:02:56 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 5 09:19:03 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d081da5f |
7 |
|
8 |
media-gfx/iscan: Drop 2.30.2.2* |
9 |
|
10 |
Package-Manager: Portage-2.3.67, Repoman-2.3.14 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
media-gfx/iscan/Manifest | 1 - |
14 |
media-gfx/iscan/iscan-2.30.2.2-r1.ebuild | 166 ----------------------------- |
15 |
media-gfx/iscan/iscan-2.30.2.2.ebuild | 174 ------------------------------- |
16 |
3 files changed, 341 deletions(-) |
17 |
|
18 |
diff --git a/media-gfx/iscan/Manifest b/media-gfx/iscan/Manifest |
19 |
index 8b76d3a3995..94b2fb3de0d 100644 |
20 |
--- a/media-gfx/iscan/Manifest |
21 |
+++ b/media-gfx/iscan/Manifest |
22 |
@@ -1,4 +1,3 @@ |
23 |
-DIST iscan_2.30.2-2.tar.gz 1216875 BLAKE2B 73a0de2b8432df026c5755df610205085c351ef586c1225d17f3f1ceb1404dae0449aaf2e6f0dbe18b98c0c1dc793fb184c17479fa08b195e6342d53bea3512e SHA512 bc5e871fa5e3baa62eee7b8b0a73abf2640a38f71f98248b1c9e1cace17c2a32de2f64c2a7527e8618f20e9913a16d0f55a8a94b3aea88ae8a157339e8bcf8e9 |
24 |
DIST iscan_2.30.3-1.tar.gz 1216848 BLAKE2B 8a5f485c1dd814248c46aec6accedd331105c3ccc0f70a582e60dfb62b1cc1f1ebab358f0896b15cbf842ea06f8a35447d91f76391b10bad07df371512856c32 SHA512 5f68b2f7b7c1d1b5d3d65a55c3a80538fda5d2bdf9cd50fbf942e0eb49dcb84983ede66ed2f6354f9591692808df54415400fe02ed47e7373082869612a47872 |
25 |
DIST userg_revQ_e.pdf 627189 BLAKE2B ff57871c58dc541e30d65127bd8f4cc2a20ec5341c1d0914116f7ec4ae002d896853b99488eec71e5f8cb150e6b63d353efb9be11977de26d017701bc051014a SHA512 b09d5143855a759e0fa3e74794762566b6fbf734642f9d7f712e5f2f20e3dce6b830465fd65f83f9cc368292ce7a2c0cec709b0eba6356d95e1ba5114b3348fc |
26 |
DIST userg_revQ_j.pdf 734920 BLAKE2B ed2cffdc2dbf0a2403dcbd93cef3349b9e35afb305f9b36f92b8f11bd42b5281fc7bfbec108703f327fb538868c530418406d37505e6eb6afa621d2d49d007ba SHA512 d5cb0cebaae0ac36951379cad516f0575e85e0bb509cf88549239e300c7d6c6a4996497145acaa9e9783de6b08c6e352c7ffbedb23ed04c15eefbe9c3cf0bc90 |
27 |
|
28 |
diff --git a/media-gfx/iscan/iscan-2.30.2.2-r1.ebuild b/media-gfx/iscan/iscan-2.30.2.2-r1.ebuild |
29 |
deleted file mode 100644 |
30 |
index be96146638b..00000000000 |
31 |
--- a/media-gfx/iscan/iscan-2.30.2.2-r1.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,166 +0,0 @@ |
34 |
-# Copyright 1999-2018 Gentoo Foundation |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=6 |
38 |
- |
39 |
-inherit autotools desktop flag-o-matic versionator |
40 |
- |
41 |
-# HINTS: |
42 |
-# -> non-free modules are x86 and amd64 only |
43 |
-# -> iscan frontend needs non-free modules |
44 |
-# -> sane-epkowa should be usable on every arch |
45 |
-# -> ${P}-${SRC_REV}.tar.gz (for gcc 3.2/3.3) |
46 |
-# -> ${P}-${SRC_REV}.c2.tar.gz (for gcc 3.4 or later) |
47 |
- |
48 |
-# FIXME: |
49 |
-# Make jpeg/png optional. The problem is, that the configure script ignores --disable-*, |
50 |
-# if the corresponding lib is found on the system. |
51 |
-# Furthermore, iscan doesn't compile w/o libusb, this should be fixed somehow. |
52 |
- |
53 |
-# TODO: |
54 |
-# (re)add closed-source binary modules which are needed for some scanners. |
55 |
- |
56 |
-MY_PV="$(get_version_component_range 1-3)" |
57 |
-MY_PVR="$(replace_version_separator 3 -)" |
58 |
-MY_DOC="userg_revQ" |
59 |
- |
60 |
-DESCRIPTION="EPSON Image Scan! for Linux (including sane-epkowa backend)" |
61 |
-HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX" |
62 |
-SRC_URI="http://support.epson.net/linux/src/scanner/iscan/${PN}_${MY_PVR}.tar.gz |
63 |
- doc? ( |
64 |
- https://dev.gentoo.org/~flameeyes/avasys/${MY_DOC}_e.pdf |
65 |
- l10n_ja? ( https://dev.gentoo.org/~flameeyes/avasys/${MY_DOC}_j.pdf ) |
66 |
- )" |
67 |
- |
68 |
-LICENSE="GPL-2 AVASYS" |
69 |
-SLOT="0" |
70 |
-KEYWORDS="~amd64 ~x86" |
71 |
-IUSE="X doc gimp jpeg png tiff l10n_ja" |
72 |
-REQUIRED_USE="gimp? ( X ) |
73 |
- jpeg? ( X ) |
74 |
- png? ( X ) |
75 |
- tiff? ( X )" |
76 |
-# Upstream ships broken sanity test |
77 |
-RESTRICT="test" |
78 |
- |
79 |
-RDEPEND="dev-libs/libxml2 |
80 |
- media-gfx/iscan-data |
81 |
- media-gfx/sane-backends |
82 |
- virtual/udev |
83 |
- virtual/libusb:1 |
84 |
- X? ( x11-libs/gtk+:2 ) |
85 |
- gimp? ( media-gfx/gimp ) |
86 |
- jpeg? ( virtual/jpeg:= ) |
87 |
- png? ( media-libs/libpng:= ) |
88 |
- tiff? ( media-libs/tiff:= )" |
89 |
- |
90 |
-DEPEND="${RDEPEND} |
91 |
- virtual/pkgconfig |
92 |
- X? ( sys-devel/gettext )" |
93 |
- |
94 |
-S="${WORKDIR}/${PN}-${MY_PV}" |
95 |
- |
96 |
-PATCHES=( |
97 |
- "${FILESDIR}"/iscan-2.29.1-drop-ltdl.patch |
98 |
- "${FILESDIR}"/iscan-2.28.1.3+libpng-1.5.patch |
99 |
- "${FILESDIR}"/iscan-2.29.1-png-libs.patch |
100 |
- "${FILESDIR}"/iscan-2.30.1-fix-g++-test.patch |
101 |
- "${FILESDIR}"/iscan-2.30.1.1-gcc6.patch |
102 |
-) |
103 |
- |
104 |
-QA_PRESTRIPPED="usr/lib*/libesmod.so.*" |
105 |
-QA_TEXTRELS="${QA_PRESTRIPPED}" |
106 |
-QA_FLAGS_IGNORED="${QA_PRESTRIPPED}" |
107 |
- |
108 |
-src_prepare() { |
109 |
- local i |
110 |
- |
111 |
- # convert japanese docs to UTF-8 |
112 |
- if use l10n_ja; then |
113 |
- for i in {NEWS,README}.ja non-free/*.ja.txt; do |
114 |
- if [[ -f ${i} ]]; then |
115 |
- elog ">>> Converting ${i} to UTF-8" |
116 |
- iconv -f eucjp -t utf8 -o "${i}~" "${i}" && mv -f "${i}~" "${i}" || rm -f "${i}~" |
117 |
- fi |
118 |
- done |
119 |
- fi |
120 |
- |
121 |
- # disable checks for gtk+ |
122 |
- if ! use X; then |
123 |
- sed -i -e "s:PKG_CHECK_MODULES(GTK,.*):AC_DEFINE([HAVE_GTK_2], 0):g" \ |
124 |
- -e "s:\(PKG_CHECK_MODULES(GDK_IMLIB,.*)\):#\1:g" configure.ac || die |
125 |
- fi |
126 |
- |
127 |
- default |
128 |
- eautoreconf |
129 |
-} |
130 |
- |
131 |
-src_configure() { |
132 |
- append-cppflags -D_GNU_SOURCE # needed for 'strndup' |
133 |
- # Fix selector box bug 388073 |
134 |
- replace-flags "-O[0-9s]" "-O1" |
135 |
- |
136 |
- local myconf=( |
137 |
- --enable-dependency-reduction |
138 |
- --disable-static |
139 |
- $(use_enable X frontend) |
140 |
- $(use_enable gimp) |
141 |
- $(use_enable jpeg) |
142 |
- $(use_enable png) |
143 |
- $(use_enable tiff) |
144 |
- ) |
145 |
- econf "${myconf[@]}" |
146 |
-} |
147 |
- |
148 |
-src_install() { |
149 |
- local MY_LIB="${EPREFIX}/usr/$(get_libdir)" |
150 |
- emake DESTDIR="${D}" install |
151 |
- |
152 |
- # install docs |
153 |
- dodoc AUTHORS NEWS README |
154 |
- use l10n_ja && dodoc NEWS.ja README.ja |
155 |
- |
156 |
- # install sane config |
157 |
- insinto /etc/sane.d |
158 |
- doins backend/epkowa.conf |
159 |
- |
160 |
- # install extra docs |
161 |
- use doc && dodoc "${DISTDIR}"/${MY_DOC}_$(usex l10n_ja j e).pdf |
162 |
- |
163 |
- # link iscan so it is seen as a plugin in gimp |
164 |
- if use X && use gimp; then |
165 |
- local plugindir |
166 |
- if [[ -x ${EPREFIX}/usr/bin/gimptool ]]; then |
167 |
- plugindir="$(gimptool --gimpplugindir)/plug-ins" || die "Failed to get gimpplugindir" |
168 |
- elif [[ -x ${EPREFIX}/usr/bin/gimptool-2.0 ]]; then |
169 |
- plugindir="$(gimptool-2.0 --gimpplugindir)/plug-ins" || die "Failed to get gimpplugindir" |
170 |
- else |
171 |
- die "Can't find GIMP plugin directory." |
172 |
- fi |
173 |
- dodir "${plugindir}" |
174 |
- dosym /usr/bin/iscan "${plugindir}"/iscan |
175 |
- fi |
176 |
- |
177 |
- # install desktop entry |
178 |
- if use X; then |
179 |
- make_desktop_entry iscan "Image Scan! for Linux ${PV}" scanner |
180 |
- fi |
181 |
-} |
182 |
- |
183 |
-pkg_postinst() { |
184 |
- local i |
185 |
- local DLL_CONF="${EPREFIX}/etc/sane.d/dll.conf" |
186 |
- local EPKOWA_CONF="${EPREFIX}/etc/sane.d/epkowa.conf" |
187 |
- |
188 |
- elog |
189 |
- if grep -q "^[ \t]*\<epkowa\>" ${DLL_CONF}; then |
190 |
- elog "Please edit ${EPKOWA_CONF} to suit your needs." |
191 |
- elif grep -q "\<epkowa\>" ${DLL_CONF}; then |
192 |
- elog "Hint: to enable the backend, add 'epkowa' to ${DLL_CONF}" |
193 |
- elog "Then edit ${EPKOWA_CONF} to suit your needs." |
194 |
- else |
195 |
- echo "epkowa" >> ${DLL_CONF} || die |
196 |
- elog "A new entry 'epkowa' was added to ${DLL_CONF}" |
197 |
- elog "Please edit ${EPKOWA_CONF} to suit your needs." |
198 |
- fi |
199 |
-} |
200 |
|
201 |
diff --git a/media-gfx/iscan/iscan-2.30.2.2.ebuild b/media-gfx/iscan/iscan-2.30.2.2.ebuild |
202 |
deleted file mode 100644 |
203 |
index 3cf3ccb4a96..00000000000 |
204 |
--- a/media-gfx/iscan/iscan-2.30.2.2.ebuild |
205 |
+++ /dev/null |
206 |
@@ -1,174 +0,0 @@ |
207 |
-# Copyright 1999-2018 Gentoo Foundation |
208 |
-# Distributed under the terms of the GNU General Public License v2 |
209 |
- |
210 |
-EAPI=6 |
211 |
- |
212 |
-inherit eutils flag-o-matic autotools versionator |
213 |
- |
214 |
-# HINTS: |
215 |
-# -> non-free modules are x86 and amd64 only |
216 |
-# -> iscan frontend needs non-free modules |
217 |
-# -> sane-epkowa should be usable on every arch |
218 |
-# -> ${P}-${SRC_REV}.tar.gz (for gcc 3.2/3.3) |
219 |
-# -> ${P}-${SRC_REV}.c2.tar.gz (for gcc 3.4 or later) |
220 |
- |
221 |
-# FIXME: |
222 |
-# Make jpeg/png optional. The problem is, that the configure script ignores --disable-*, |
223 |
-# if the corresponding lib is found on the system. |
224 |
-# Furthermore, iscan doesn't compile w/o libusb, this should be fixed somehow. |
225 |
- |
226 |
-# TODO: |
227 |
-# (re)add closed-source binary modules which are needed for some scanners. |
228 |
- |
229 |
-KEYWORDS="amd64 x86" |
230 |
- |
231 |
-MY_PV="$(get_version_component_range 1-3)" |
232 |
-MY_PVR="$(replace_version_separator 3 -)" |
233 |
-MY_DOC="userg_revQ" |
234 |
- |
235 |
-DESCRIPTION="EPSON Image Scan! for Linux (including sane-epkowa backend)" |
236 |
-HOMEPAGE="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX" |
237 |
-SRC_URI="http://support.epson.net/linux/src/scanner/iscan/${PN}_${MY_PVR}.tar.gz |
238 |
- doc? ( |
239 |
- https://dev.gentoo.org/~flameeyes/avasys/${MY_DOC}_e.pdf |
240 |
- l10n_ja? ( https://dev.gentoo.org/~flameeyes/avasys/${MY_DOC}_j.pdf ) |
241 |
- )" |
242 |
-LICENSE="GPL-2 AVASYS" |
243 |
-SLOT="0" |
244 |
- |
245 |
-IUSE="X doc gimp jpeg png tiff l10n_ja" |
246 |
- |
247 |
-REQUIRED_USE="gimp? ( X ) |
248 |
- jpeg? ( X ) |
249 |
- png? ( X ) |
250 |
- tiff? ( X )" |
251 |
- |
252 |
-QA_PRESTRIPPED="usr/lib*/libesmod.so.*" |
253 |
-QA_TEXTRELS="${QA_PRESTRIPPED}" |
254 |
-QA_FLAGS_IGNORED="${QA_PRESTRIPPED}" |
255 |
- |
256 |
-# Upstream ships broken sanity test |
257 |
-RESTRICT="test" |
258 |
- |
259 |
-RDEPEND="dev-libs/libxml2 |
260 |
- media-gfx/iscan-data |
261 |
- media-gfx/sane-backends |
262 |
- virtual/udev |
263 |
- virtual/libusb:1 |
264 |
- X? ( x11-libs/gtk+:2 ) |
265 |
- gimp? ( media-gfx/gimp ) |
266 |
- jpeg? ( virtual/jpeg:= ) |
267 |
- png? ( media-libs/libpng:= ) |
268 |
- tiff? ( media-libs/tiff:= )" |
269 |
- |
270 |
-DEPEND="${RDEPEND} |
271 |
- virtual/pkgconfig |
272 |
- X? ( sys-devel/gettext )" |
273 |
- |
274 |
-S="${WORKDIR}/${PN}-${MY_PV}" |
275 |
- |
276 |
-src_prepare() { |
277 |
- eapply_user |
278 |
- local i |
279 |
- |
280 |
- # convert japanese docs to UTF-8 |
281 |
- if use l10n_ja; then |
282 |
- for i in {NEWS,README}.ja non-free/*.ja.txt; do |
283 |
- if [ -f "${i}" ]; then |
284 |
- echo ">>> Converting ${i} to UTF-8" |
285 |
- iconv -f eucjp -t utf8 -o "${i}~" "${i}" && mv -f "${i}~" "${i}" || rm -f "${i}~" |
286 |
- fi |
287 |
- done |
288 |
- fi |
289 |
- |
290 |
- # disable checks for gtk+ |
291 |
- if ! use X; then |
292 |
- sed -i -e "s:PKG_CHECK_MODULES(GTK,.*):AC_DEFINE([HAVE_GTK_2], 0):g" \ |
293 |
- -e "s:\(PKG_CHECK_MODULES(GDK_IMLIB,.*)\):#\1:g" configure.ac || die |
294 |
- fi |
295 |
- |
296 |
- epatch "${FILESDIR}"/iscan-2.29.1-drop-ltdl.patch |
297 |
- epatch "${FILESDIR}"/iscan-2.28.1.3+libpng-1.5.patch |
298 |
- epatch "${FILESDIR}"/iscan-2.29.1-png-libs.patch |
299 |
- epatch "${FILESDIR}"/iscan-2.30.1-fix-g++-test.patch |
300 |
- epatch "${FILESDIR}"/iscan-2.30.1.1-gcc6.patch |
301 |
- |
302 |
- eautoreconf |
303 |
-} |
304 |
- |
305 |
-src_configure() { |
306 |
- append-cppflags -D_GNU_SOURCE # needed for 'strndup' |
307 |
- # Fix selector box bug 388073 |
308 |
- replace-flags "-O[0-9s]" "-O1" |
309 |
- |
310 |
- local myconf=( |
311 |
- --enable-dependency-reduction |
312 |
- --disable-static |
313 |
- $(use_enable X frontend) |
314 |
- $(use_enable gimp) |
315 |
- $(use_enable jpeg) |
316 |
- $(use_enable png) |
317 |
- $(use_enable tiff) |
318 |
- ) |
319 |
- econf ${myconf[@]} |
320 |
-} |
321 |
- |
322 |
-src_install() { |
323 |
- local MY_LIB="/usr/$(get_libdir)" |
324 |
- emake DESTDIR="${D}" install || die "emake install failed" |
325 |
- |
326 |
- # install docs |
327 |
- dodoc AUTHORS NEWS README |
328 |
- use l10n_ja && dodoc NEWS.ja README.ja |
329 |
- |
330 |
- # install sane config |
331 |
- insinto /etc/sane.d |
332 |
- doins backend/epkowa.conf |
333 |
- |
334 |
- # install extra docs |
335 |
- if use doc; then |
336 |
- insinto /usr/share/doc/${PF} |
337 |
- if use l10n_ja; then |
338 |
- doins "${DISTDIR}/${MY_DOC}_j.pdf" |
339 |
- else |
340 |
- doins "${DISTDIR}/${MY_DOC}_e.pdf" |
341 |
- fi |
342 |
- fi |
343 |
- |
344 |
- # link iscan so it is seen as a plugin in gimp |
345 |
- if use X && use gimp; then |
346 |
- local plugindir |
347 |
- if [ -x /usr/bin/gimptool ]; then |
348 |
- plugindir="$(gimptool --gimpplugindir)/plug-ins" || die "Failed to get gimpplugindir" |
349 |
- elif [ -x /usr/bin/gimptool-2.0 ]; then |
350 |
- plugindir="$(gimptool-2.0 --gimpplugindir)/plug-ins" || die "Failed to get gimpplugindir" |
351 |
- else |
352 |
- die "Can't find GIMP plugin directory." |
353 |
- fi |
354 |
- dodir "${plugindir}" |
355 |
- dosym /usr/bin/iscan "${plugindir}"/iscan |
356 |
- fi |
357 |
- |
358 |
- # install desktop entry |
359 |
- if use X; then |
360 |
- make_desktop_entry iscan "Image Scan! for Linux ${PV}" scanner |
361 |
- fi |
362 |
-} |
363 |
- |
364 |
-pkg_postinst() { |
365 |
- local i |
366 |
- local DLL_CONF="/etc/sane.d/dll.conf" |
367 |
- local EPKOWA_CONF="/etc/sane.d/epkowa.conf" |
368 |
- |
369 |
- elog |
370 |
- if grep -q "^[ \t]*\<epkowa\>" ${DLL_CONF}; then |
371 |
- elog "Please edit ${EPKOWA_CONF} to suit your needs." |
372 |
- elif grep -q "\<epkowa\>" ${DLL_CONF}; then |
373 |
- elog "Hint: to enable the backend, add 'epkowa' to ${DLL_CONF}" |
374 |
- elog "Then edit ${EPKOWA_CONF} to suit your needs." |
375 |
- else |
376 |
- echo "epkowa" >> ${DLL_CONF} |
377 |
- elog "A new entry 'epkowa' was added to ${DLL_CONF}" |
378 |
- elog "Please edit ${EPKOWA_CONF} to suit your needs." |
379 |
- fi |
380 |
-} |