1 |
commit: e2f534410f3c73c4de3efbad930441f3080d4928 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 4 00:36:29 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 4 00:48:19 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2f53441 |
7 |
|
8 |
media-gfx/sane-frontends: EAPI-7 bump, fix gimp symlink, SRC_URI |
9 |
|
10 |
Debian alioth server has been taken down, code moved to salsa.debian.org, |
11 |
see also: https://lists.debian.org/debian-devel-announce/2018/04/msg00008.html |
12 |
|
13 |
Bug: https://bugs.gentoo.org/664570 |
14 |
Thanks-to: Herb Miller Jr <herb <AT> hlmjr.com> |
15 |
Package-Manager: Portage-2.3.59, Repoman-2.3.12 |
16 |
Closes: https://github.com/gentoo/gentoo/pull/9800 |
17 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
18 |
|
19 |
media-gfx/sane-frontends/Manifest | 1 + |
20 |
.../sane-frontends/sane-frontends-1.0.14-r4.ebuild | 61 ++++++++++++++++++++++ |
21 |
2 files changed, 62 insertions(+) |
22 |
|
23 |
diff --git a/media-gfx/sane-frontends/Manifest b/media-gfx/sane-frontends/Manifest |
24 |
index 14eae5f193d..49b144a9fad 100644 |
25 |
--- a/media-gfx/sane-frontends/Manifest |
26 |
+++ b/media-gfx/sane-frontends/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
DIST sane-frontends-1.0.14.tar.gz 231892 BLAKE2B 3d3af2ded774fa90ba4b9545a00df1f036fc72edb71a69f803dde84ca1e9d37b4d20ac91d046ce702c31eb7353d2d85b91cbf8bd53b84adea7f2e58f8be1a062 SHA512 51b24a9bd6889e99419c1d6abb30cb14d8f89b6196c5147044697bdb1b39ee029bdc0d7c6e1f1e800491988aa26f658bc974b25040c49d008ca8977673c78710 |
29 |
+DIST sane-frontends-upstream-1.0.14.tar.gz 233587 BLAKE2B 69e34ed783cff68879b92d478195fe8c67f29d8904e22bdc62deb7310e8ac73d1ce6fc89ee0eafe3e2460f54cec257dbfe28843aec679cfe8669be6c5fc0e2bd SHA512 ffb854f4f4fd08a98395f325c22aa81924ac1e0827e795107bf01f3c42c2cd64bc204c79bc5ec8fd570746d039eae87a2da9cdf30b7f4640442a33c6495d35f8 |
30 |
|
31 |
diff --git a/media-gfx/sane-frontends/sane-frontends-1.0.14-r4.ebuild b/media-gfx/sane-frontends/sane-frontends-1.0.14-r4.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..7eb6ed27c10 |
34 |
--- /dev/null |
35 |
+++ b/media-gfx/sane-frontends/sane-frontends-1.0.14-r4.ebuild |
36 |
@@ -0,0 +1,61 @@ |
37 |
+# Copyright 1999-2018 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+ |
42 |
+DESCRIPTION="Scanner Access Now Easy" |
43 |
+HOMEPAGE="http://www.sane-project.org" |
44 |
+SRC_URI="https://salsa.debian.org/debian/sane-frontends/-/archive/upstream/${PV}/${PN}-upstream-${PV}.tar.gz" |
45 |
+ |
46 |
+LICENSE="GPL-2" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" |
49 |
+IUSE="gimp gtk" |
50 |
+ |
51 |
+REQUIRED_USE="gimp? ( gtk )" |
52 |
+ |
53 |
+DEPEND=" |
54 |
+ media-gfx/sane-backends |
55 |
+ gimp? ( media-gfx/gimp:2 ) |
56 |
+ gtk? ( |
57 |
+ dev-libs/glib:2 |
58 |
+ x11-libs/gtk+:2 |
59 |
+ ) |
60 |
+" |
61 |
+RDEPEND="${DEPEND}" |
62 |
+ |
63 |
+DOCS=( AUTHORS Changelog NEWS PROBLEMS README ) |
64 |
+ |
65 |
+PATCHES=( "${FILESDIR}/MissingCapsFlag.patch" ) |
66 |
+ |
67 |
+S="${WORKDIR}"/"${PN}"-upstream-"${PV}" |
68 |
+ |
69 |
+src_configure() { |
70 |
+ local myeconfargs=( |
71 |
+ --datadir=/usr/share/misc |
72 |
+ $(use_enable gimp) |
73 |
+ $(use_enable gtk gtk2) |
74 |
+ $(use_enable gtk guis) |
75 |
+ ) |
76 |
+ econf "${myeconfargs[@]}" |
77 |
+} |
78 |
+ |
79 |
+src_install() { |
80 |
+ emake DESTDIR="${D}" install |
81 |
+ |
82 |
+ # link xscanimage so it is seen as a plugin in gimp |
83 |
+ if use gimp; then |
84 |
+ local plugindir |
85 |
+ if type gimptool &>/dev/null; then |
86 |
+ plugindir="$(gimptool --gimpplugindir)/plug-ins" |
87 |
+ elif type gimptool-2.0 &>/dev/null; then |
88 |
+ plugindir="$(gimptool-2.0 --gimpplugindir)/plug-ins" |
89 |
+ else |
90 |
+ die "Can't find GIMP plugin directory." |
91 |
+ fi |
92 |
+ dodir "${plugindir#${EPREFIX}}" |
93 |
+ dosym "${EPREFIX}"/usr/bin/xscanimage "${plugindir#${EPREFIX}}"/xscanimage |
94 |
+ fi |
95 |
+ |
96 |
+ einstalldocs |
97 |
+} |