summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-02-04 01:36:29 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2019-02-04 01:48:19 +0100
commite2f534410f3c73c4de3efbad930441f3080d4928 (patch)
tree269d512e6f7772f4d17b3c7bf1815ae319537958 /media-gfx/sane-frontends
parentdev-libs/double-conversion: Drop 3.0.0-r1 (diff)
downloadgentoo-e2f534410f3c73c4de3efbad930441f3080d4928.tar.gz
gentoo-e2f534410f3c73c4de3efbad930441f3080d4928.tar.bz2
gentoo-e2f534410f3c73c4de3efbad930441f3080d4928.zip
media-gfx/sane-frontends: EAPI-7 bump, fix gimp symlink, SRC_URI
Debian alioth server has been taken down, code moved to salsa.debian.org, see also: https://lists.debian.org/debian-devel-announce/2018/04/msg00008.html Bug: https://bugs.gentoo.org/664570 Thanks-to: Herb Miller Jr <herb@hlmjr.com> Package-Manager: Portage-2.3.59, Repoman-2.3.12 Closes: https://github.com/gentoo/gentoo/pull/9800 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-gfx/sane-frontends')
-rw-r--r--media-gfx/sane-frontends/Manifest1
-rw-r--r--media-gfx/sane-frontends/sane-frontends-1.0.14-r4.ebuild61
2 files changed, 62 insertions, 0 deletions
diff --git a/media-gfx/sane-frontends/Manifest b/media-gfx/sane-frontends/Manifest
index 14eae5f193dd..49b144a9fad3 100644
--- a/media-gfx/sane-frontends/Manifest
+++ b/media-gfx/sane-frontends/Manifest
@@ -1 +1,2 @@
DIST sane-frontends-1.0.14.tar.gz 231892 BLAKE2B 3d3af2ded774fa90ba4b9545a00df1f036fc72edb71a69f803dde84ca1e9d37b4d20ac91d046ce702c31eb7353d2d85b91cbf8bd53b84adea7f2e58f8be1a062 SHA512 51b24a9bd6889e99419c1d6abb30cb14d8f89b6196c5147044697bdb1b39ee029bdc0d7c6e1f1e800491988aa26f658bc974b25040c49d008ca8977673c78710
+DIST sane-frontends-upstream-1.0.14.tar.gz 233587 BLAKE2B 69e34ed783cff68879b92d478195fe8c67f29d8904e22bdc62deb7310e8ac73d1ce6fc89ee0eafe3e2460f54cec257dbfe28843aec679cfe8669be6c5fc0e2bd SHA512 ffb854f4f4fd08a98395f325c22aa81924ac1e0827e795107bf01f3c42c2cd64bc204c79bc5ec8fd570746d039eae87a2da9cdf30b7f4640442a33c6495d35f8
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
new file mode 100644
index 000000000000..7eb6ed27c108
--- /dev/null
+++ b/media-gfx/sane-frontends/sane-frontends-1.0.14-r4.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Scanner Access Now Easy"
+HOMEPAGE="http://www.sane-project.org"
+SRC_URI="https://salsa.debian.org/debian/sane-frontends/-/archive/upstream/${PV}/${PN}-upstream-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="gimp gtk"
+
+REQUIRED_USE="gimp? ( gtk )"
+
+DEPEND="
+ media-gfx/sane-backends
+ gimp? ( media-gfx/gimp:2 )
+ gtk? (
+ dev-libs/glib:2
+ x11-libs/gtk+:2
+ )
+"
+RDEPEND="${DEPEND}"
+
+DOCS=( AUTHORS Changelog NEWS PROBLEMS README )
+
+PATCHES=( "${FILESDIR}/MissingCapsFlag.patch" )
+
+S="${WORKDIR}"/"${PN}"-upstream-"${PV}"
+
+src_configure() {
+ local myeconfargs=(
+ --datadir=/usr/share/misc
+ $(use_enable gimp)
+ $(use_enable gtk gtk2)
+ $(use_enable gtk guis)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ # link xscanimage so it is seen as a plugin in gimp
+ if use gimp; then
+ local plugindir
+ if type gimptool &>/dev/null; then
+ plugindir="$(gimptool --gimpplugindir)/plug-ins"
+ elif type gimptool-2.0 &>/dev/null; then
+ plugindir="$(gimptool-2.0 --gimpplugindir)/plug-ins"
+ else
+ die "Can't find GIMP plugin directory."
+ fi
+ dodir "${plugindir#${EPREFIX}}"
+ dosym "${EPREFIX}"/usr/bin/xscanimage "${plugindir#${EPREFIX}}"/xscanimage
+ fi
+
+ einstalldocs
+}