From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 26CAC138331 for ; Sun, 4 Mar 2018 20:05:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E7980E0877; Sun, 4 Mar 2018 20:05:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C27AEE0877 for ; Sun, 4 Mar 2018 20:05:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 35B2B335D10 for ; Sun, 4 Mar 2018 20:05:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B3F31231 for ; Sun, 4 Mar 2018 20:05:06 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1520193878.d42c14043e2edb5aca8da87b6f715b79d0204238.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/sane-frontends/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/sane-frontends/sane-frontends-1.0.14-r3.ebuild X-VCS-Directories: media-gfx/sane-frontends/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: d42c14043e2edb5aca8da87b6f715b79d0204238 X-VCS-Branch: master Date: Sun, 4 Mar 2018 20:05:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5b94e181-ddbe-45f8-9011-f6a6de962374 X-Archives-Hash: 67f6c5f88f3a52e2cddc88b8960a36f8 commit: d42c14043e2edb5aca8da87b6f715b79d0204238 Author: Herb Miller Jr hlmjr com> AuthorDate: Sun Mar 4 16:23:42 2018 +0000 Commit: Andreas Sturmlechner gentoo 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 +}