summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-02-18 18:02:06 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2018-02-18 18:10:50 +0100
commit137e388d3c3439bb738dbc5473890997573470bc (patch)
tree0f7517fcaf0c871c7fde3d6f600d1528de27938c /media-gfx/sane-frontends
parentmedia-gfx/sane-frontends: Drop eutils.eclass, fix dosym (diff)
downloadgentoo-137e388d3c3439bb738dbc5473890997573470bc.tar.gz
gentoo-137e388d3c3439bb738dbc5473890997573470bc.tar.bz2
gentoo-137e388d3c3439bb738dbc5473890997573470bc.zip
media-gfx/sane-frontends: Drop obsolete gimp-1 compat
Cleanup, don't compile in src_configure. Bug: https://bugs.gentoo.org/647524 Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'media-gfx/sane-frontends')
-rw-r--r--media-gfx/sane-frontends/sane-frontends-1.0.14-r2.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/media-gfx/sane-frontends/sane-frontends-1.0.14-r2.ebuild b/media-gfx/sane-frontends/sane-frontends-1.0.14-r2.ebuild
new file mode 100644
index 000000000000..b635cb4ba34b
--- /dev/null
+++ b/media-gfx/sane-frontends/sane-frontends-1.0.14-r2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Scanner Access Now Easy"
+HOMEPAGE="http://www.sane-project.org"
+SRC_URI="ftp://ftp.sane-project.org/pub/sane/${P}/${P}.tar.gz
+ ftp://ftp.sane-project.org/pub/sane/old-versions/${P}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="gimp"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ media-gfx/sane-backends
+ gimp? ( media-gfx/gimp:2 )
+"
+
+PATCHES=( "${FILESDIR}/MissingCapsFlag.patch" )
+
+src_configure() {
+ econf \
+ --datadir=/usr/share/misc \
+ $(use_enable gimp)
+}
+
+src_install() {
+ local gimpplugindir
+ local gimptool
+ emake DESTDIR="${D}" install
+ if use gimp; then
+ for gimptool in gimptool gimptool-2.0; do
+ if [ -x /usr/bin/${gimptool} ]; then
+ einfo "Setting plugin link for GIMP version $(/usr/bin/${gimptool} --version)"
+ gimpplugindir=$(/usr/bin/${gimptool} --gimpplugindir)/plug-ins
+ break
+ fi
+ done
+ if [ "/plug-ins" != "${gimpplugindir}" ]; then
+ dodir ${gimpplugindir}
+ dosym xscanimage ${gimpplugindir}/xscanimage
+ else
+ ewarn "No idea where to find the gimp plugin directory"
+ fi
+ fi
+ dodoc AUTHORS Changelog NEWS PROBLEMS README
+}