public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Palimaka" <kensington@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/kolourpaint/
Date: Wed, 20 Jan 2016 12:57:49 +0000 (UTC)	[thread overview]
Message-ID: <1453294645.46f0cbc7b6f2fba7d0df44852f6591eb0086b9bf.kensington@gentoo> (raw)

commit:     46f0cbc7b6f2fba7d0df44852f6591eb0086b9bf
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 20 12:57:25 2016 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed Jan 20 12:57:25 2016 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=46f0cbc7

kde-apps/kolourpaint: introduce scanner USE flag

Package-Manager: portage-2.2.27

 kde-apps/kolourpaint/kolourpaint-15.12.1.ebuild     | 21 +++++++++++++--------
 .../kolourpaint/kolourpaint-15.12.49.9999.ebuild    | 21 +++++++++++++--------
 kde-apps/kolourpaint/kolourpaint-9999.ebuild        | 21 +++++++++++++--------
 3 files changed, 39 insertions(+), 24 deletions(-)

diff --git a/kde-apps/kolourpaint/kolourpaint-15.12.1.ebuild b/kde-apps/kolourpaint/kolourpaint-15.12.1.ebuild
index 8b1c5a6..0a2407b 100644
--- a/kde-apps/kolourpaint/kolourpaint-15.12.1.ebuild
+++ b/kde-apps/kolourpaint/kolourpaint-15.12.1.ebuild
@@ -11,15 +11,20 @@ DESCRIPTION="Paint Program for KDE"
 HOMEPAGE="https://www.kde.org/applications/graphics/kolourpaint/"
 KEYWORDS=" ~amd64 ~x86"
 LICENSE="BSD LGPL-2"
-IUSE="debug"
+IUSE="debug scanner"
 
-DEPEND="media-libs/qimageblitz"
-RDEPEND="${DEPEND}"
+DEPEND="
+	media-libs/qimageblitz
+	scanner? ( $(add_kdeapps_dep libksane) )
+"
+RDEPEND="${DEPEND}
+	scanner? ( $(add_kdeapps_dep ksaneplugin) )
+"
 
-pkg_postinst() {
-	kde4-base_pkg_postinst
+src_configure() {
+	local mycmakeargs=(
+		$(cmake-utils_use_find_package scanner KSane)
+	)
 
-	if ! has_version kde-apps/ksaneplugin:${SLOT} ; then
-		elog "To enable scanner support, please install kde-apps/ksaneplugin:${SLOT}"
-	fi
+	kde4-base_src_configure
 }

diff --git a/kde-apps/kolourpaint/kolourpaint-15.12.49.9999.ebuild b/kde-apps/kolourpaint/kolourpaint-15.12.49.9999.ebuild
index 15da9a0..0e93748 100644
--- a/kde-apps/kolourpaint/kolourpaint-15.12.49.9999.ebuild
+++ b/kde-apps/kolourpaint/kolourpaint-15.12.49.9999.ebuild
@@ -11,15 +11,20 @@ DESCRIPTION="Paint Program for KDE"
 HOMEPAGE="https://www.kde.org/applications/graphics/kolourpaint/"
 KEYWORDS=""
 LICENSE="BSD LGPL-2"
-IUSE="debug"
+IUSE="debug scanner"
 
-DEPEND="media-libs/qimageblitz"
-RDEPEND="${DEPEND}"
+DEPEND="
+	media-libs/qimageblitz
+	scanner? ( $(add_kdeapps_dep libksane) )
+"
+RDEPEND="${DEPEND}
+	scanner? ( $(add_kdeapps_dep ksaneplugin) )
+"
 
-pkg_postinst() {
-	kde4-base_pkg_postinst
+src_configure() {
+	local mycmakeargs=(
+		$(cmake-utils_use_find_package scanner KSane)
+	)
 
-	if ! has_version kde-apps/ksaneplugin:${SLOT} ; then
-		elog "To enable scanner support, please install kde-apps/ksaneplugin:${SLOT}"
-	fi
+	kde4-base_src_configure
 }

diff --git a/kde-apps/kolourpaint/kolourpaint-9999.ebuild b/kde-apps/kolourpaint/kolourpaint-9999.ebuild
index 15da9a0..0e93748 100644
--- a/kde-apps/kolourpaint/kolourpaint-9999.ebuild
+++ b/kde-apps/kolourpaint/kolourpaint-9999.ebuild
@@ -11,15 +11,20 @@ DESCRIPTION="Paint Program for KDE"
 HOMEPAGE="https://www.kde.org/applications/graphics/kolourpaint/"
 KEYWORDS=""
 LICENSE="BSD LGPL-2"
-IUSE="debug"
+IUSE="debug scanner"
 
-DEPEND="media-libs/qimageblitz"
-RDEPEND="${DEPEND}"
+DEPEND="
+	media-libs/qimageblitz
+	scanner? ( $(add_kdeapps_dep libksane) )
+"
+RDEPEND="${DEPEND}
+	scanner? ( $(add_kdeapps_dep ksaneplugin) )
+"
 
-pkg_postinst() {
-	kde4-base_pkg_postinst
+src_configure() {
+	local mycmakeargs=(
+		$(cmake-utils_use_find_package scanner KSane)
+	)
 
-	if ! has_version kde-apps/ksaneplugin:${SLOT} ; then
-		elog "To enable scanner support, please install kde-apps/ksaneplugin:${SLOT}"
-	fi
+	kde4-base_src_configure
 }


             reply	other threads:[~2016-01-20 12:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-20 12:57 Michael Palimaka [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-06 22:03 [gentoo-commits] proj/kde:master commit in: kde-apps/kolourpaint/ Andreas Sturmlechner
2024-02-26 19:59 Andreas Sturmlechner
2024-01-07 13:26 Andreas Sturmlechner
2020-01-02  0:14 Andreas Sturmlechner
2019-12-07 11:43 Andreas Sturmlechner
2018-12-04 20:40 Andreas Sturmlechner
2018-08-06 23:59 Andreas Sturmlechner
2016-11-27  8:20 Michael Palimaka
2016-11-12 10:55 Michael Palimaka
2016-08-25 18:52 Michael Palimaka
2016-08-25 18:52 Michael Palimaka
2016-07-13 18:34 Johannes Huber
2016-07-11 12:21 Johannes Huber
2016-04-12 21:22 Johannes Huber
2016-04-04 22:51 Johannes Huber
2015-06-12 19:09 Michael Palimaka

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=1453294645.46f0cbc7b6f2fba7d0df44852f6591eb0086b9bf.kensington@gentoo \
    --to=kensington@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