public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/sane-frontends/
Date: Sun,  4 Mar 2018 20:05:06 +0000 (UTC)	[thread overview]
Message-ID: <1520193878.d42c14043e2edb5aca8da87b6f715b79d0204238.asturm@gentoo> (raw)

commit:     d42c14043e2edb5aca8da87b6f715b79d0204238
Author:     Herb Miller Jr <herb <AT> hlmjr <DOT> com>
AuthorDate: Sun Mar  4 16:23:42 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Mar  4 20:04:38 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d42c1404

media-gfx/sane-frontends: Make dev-libs/gtk+:2 optional

Closes: https://bugs.gentoo.org/649570
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Closes: https://github.com/gentoo/gentoo/pull/7358

 .../sane-frontends/sane-frontends-1.0.14-r3.ebuild | 59 ++++++++++++++++++++++
 1 file changed, 59 insertions(+)

diff --git a/media-gfx/sane-frontends/sane-frontends-1.0.14-r3.ebuild b/media-gfx/sane-frontends/sane-frontends-1.0.14-r3.ebuild
new file mode 100644
index 00000000000..c2a973cf79b
--- /dev/null
+++ b/media-gfx/sane-frontends/sane-frontends-1.0.14-r3.ebuild
@@ -0,0 +1,59 @@
+# 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 gtk"
+
+RDEPEND="
+	gtk? (
+		dev-libs/glib:2
+		x11-libs/gtk+:2
+	)
+"
+DEPEND="${RDEPEND}
+	media-gfx/sane-backends
+	gimp? ( media-gfx/gimp:2 )
+"
+
+DOCS=( AUTHORS Changelog NEWS PROBLEMS README )
+
+PATCHES=( "${FILESDIR}/MissingCapsFlag.patch" )
+
+src_configure() {
+	econf \
+		--datadir=/usr/share/misc \
+		$(use_enable gimp) \
+		$(use_enable gtk gtk2) \
+		$(use_enable gtk guis)
+}
+
+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
+	einstalldocs
+}


             reply	other threads:[~2018-03-04 20:05 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-04 20:05 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-01-08 10:38 [gentoo-commits] repo/gentoo:master commit in: media-gfx/sane-frontends/ Sam James
2021-01-08 10:36 Sam James
2021-01-08  0:53 Sam James
2021-01-06 17:35 Sergei Trofimovich
2020-11-08 12:02 Sam James
2020-10-11 19:21 Sam James
2020-01-28  8:24 Joonas Niilola
2019-02-04  9:06 Miroslav Šulc
2019-02-04  0:48 Andreas Sturmlechner
2018-04-11 23:25 Andreas Sturmlechner
2018-04-03 18:20 Jonas Stein
2018-04-03 18:15 Matt Turner
2018-03-31 18:24 Sergei Trofimovich
2018-03-05 13:57 Tobias Klausmann
2018-03-04 20:05 Andreas Sturmlechner
2018-03-04 20:05 Andreas Sturmlechner
2018-03-04 20:05 Andreas Sturmlechner
2018-02-25 18:21 Thomas Deutschmann
2018-02-24  8:55 Sergei Trofimovich
2018-02-22 12:04 Agostino Sarubbo
2018-02-21 23:55 Andreas Sturmlechner
2018-02-18 17:52 Andreas Sturmlechner
2018-02-18 17:11 Andreas Sturmlechner
2018-02-18 17:11 Andreas Sturmlechner
2018-02-18 17:11 Andreas Sturmlechner
2018-02-18 17:11 Andreas Sturmlechner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1520193878.d42c14043e2edb5aca8da87b6f715b79d0204238.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox