1 |
commit: c0fa8b1d326f4fd0b18ad38d49336558b8d47796 |
2 |
Author: Amy Liffey <amynka <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 12 17:54:41 2017 +0000 |
4 |
Commit: Amy Liffey <amynka <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 12 17:55:04 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0fa8b1d |
7 |
|
8 |
media-gfx/sane-frontends: EAPI 6 bump |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
11 |
|
12 |
.../sane-frontends/files/MissingCapsFlag.patch | 4 +- |
13 |
.../sane-frontends/sane-frontends-1.0.14-r1.ebuild | 54 ++++++++++++++++++++++ |
14 |
2 files changed, 56 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/media-gfx/sane-frontends/files/MissingCapsFlag.patch b/media-gfx/sane-frontends/files/MissingCapsFlag.patch |
17 |
index 4175a87f8e6..226ca085713 100644 |
18 |
--- a/media-gfx/sane-frontends/files/MissingCapsFlag.patch |
19 |
+++ b/media-gfx/sane-frontends/files/MissingCapsFlag.patch |
20 |
@@ -1,5 +1,5 @@ |
21 |
---- src/gtkglue.c 2005-04-16 15:12:07.000000000 +0200 |
22 |
-+++ src/gtkglue.c.new 2009-06-24 00:26:46.000000000 +0200 |
23 |
+--- a/src/gtkglue.c 2005-04-16 15:12:07.000000000 +0200 |
24 |
++++ b/src/gtkglue.c 2009-06-24 00:26:46.000000000 +0200 |
25 |
@@ -1476,8 +1476,7 @@ |
26 |
|| opt->type == SANE_TYPE_GROUP || !dialog->element[i].widget) |
27 |
continue; |
28 |
|
29 |
diff --git a/media-gfx/sane-frontends/sane-frontends-1.0.14-r1.ebuild b/media-gfx/sane-frontends/sane-frontends-1.0.14-r1.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..26cd1d46586 |
32 |
--- /dev/null |
33 |
+++ b/media-gfx/sane-frontends/sane-frontends-1.0.14-r1.ebuild |
34 |
@@ -0,0 +1,54 @@ |
35 |
+# Copyright 1999-2017 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+inherit eutils |
41 |
+ |
42 |
+DESCRIPTION="Scanner Access Now Easy" |
43 |
+HOMEPAGE="http://www.sane-project.org" |
44 |
+SRC_URI="ftp://ftp.sane-project.org/pub/sane/${P}/${P}.tar.gz |
45 |
+ ftp://ftp.sane-project.org/pub/sane/old-versions/${P}/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" |
50 |
+IUSE="gimp" |
51 |
+ |
52 |
+RDEPEND="" |
53 |
+DEPEND="media-gfx/sane-backends |
54 |
+ gimp? ( media-gfx/gimp )" |
55 |
+ |
56 |
+PATCHES=( "${FILESDIR}/MissingCapsFlag.patch" ) |
57 |
+ |
58 |
+src_configure () { |
59 |
+ local myconf="" |
60 |
+ use gimp || myconf="--disable-gimp" |
61 |
+ use gimp && ! has_version ">=media-gfx/gimp-2" && myconf="--enable-gimp12" |
62 |
+ econf \ |
63 |
+ --datadir=/usr/share/misc \ |
64 |
+ ${myconf} |
65 |
+ emake |
66 |
+} |
67 |
+ |
68 |
+src_install () { |
69 |
+ local gimpplugindir |
70 |
+ local gimptool |
71 |
+ emake DESTDIR="${D}" install |
72 |
+ if use gimp; then |
73 |
+ for gimptool in gimptool gimptool-2.0 gimptool-1.2; do |
74 |
+ if [ -x /usr/bin/${gimptool} ]; then |
75 |
+ einfo "Setting plugin link for GIMP version $(/usr/bin/${gimptool} --version)" |
76 |
+ gimpplugindir=$(/usr/bin/${gimptool} --gimpplugindir)/plug-ins |
77 |
+ break |
78 |
+ fi |
79 |
+ done |
80 |
+ if [ "/plug-ins" != "${gimpplugindir}" ]; then |
81 |
+ dodir ${gimpplugindir} |
82 |
+ dosym /usr/bin/xscanimage ${gimpplugindir}/xscanimage |
83 |
+ else |
84 |
+ ewarn "No idea where to find the gimp plugin directory" |
85 |
+ fi |
86 |
+ fi |
87 |
+ dodoc AUTHORS Changelog NEWS PROBLEMS README |
88 |
+} |