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] proj/kde:master commit in: kde-apps/konqueror/
Date: Mon,  7 Sep 2020 15:07:46 +0000 (UTC)	[thread overview]
Message-ID: <1599491149.3acabde8a7aa0d278e8aa0d3f48a57b467fecd27.asturm@gentoo> (raw)

commit:     3acabde8a7aa0d278e8aa0d3f48a57b467fecd27
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  7 13:35:40 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Sep  7 15:05:49 2020 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=3acabde8

kde-apps/konqueror: Use optfeature

Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-apps/konqueror/konqueror-20.08.49.9999.ebuild | 28 ++++++---------------
 kde-apps/konqueror/konqueror-9999.ebuild          | 30 ++++++-----------------
 2 files changed, 15 insertions(+), 43 deletions(-)

diff --git a/kde-apps/konqueror/konqueror-20.08.49.9999.ebuild b/kde-apps/konqueror/konqueror-20.08.49.9999.ebuild
index 10ebf1d25b..16d9aaeb6c 100644
--- a/kde-apps/konqueror/konqueror-20.08.49.9999.ebuild
+++ b/kde-apps/konqueror/konqueror-20.08.49.9999.ebuild
@@ -8,7 +8,7 @@ ECM_TEST="true"
 KFMIN=5.72.0
 QTMIN=5.14.2
 VIRTUALX_REQUIRED="test"
-inherit flag-o-matic ecm kde.org
+inherit flag-o-matic ecm kde.org optfeature
 
 DESCRIPTION="Web browser and file manager based on KDE Frameworks"
 HOMEPAGE="https://kde.org/applications/internet/org.kde.konqueror"
@@ -79,26 +79,12 @@ src_configure() {
 }
 
 pkg_postinst() {
-	ecm_pkg_postinst
-
 	if [[ -z "${REPLACING_VERSIONS}" ]]; then
-		if ! has_version kde-apps/keditbookmarks:${SLOT} ; then
-			elog "For bookmarks support, install keditbookmarks:"
-			elog "kde-apps/keditbookmarks:${SLOT}"
-		fi
-
-		if ! has_version kde-apps/dolphin:${SLOT} ; then
-			elog "If you want to use konqueror as a filemanager, install the dolphin kpart:"
-			elog "kde-apps/dolphin:${SLOT}"
-		fi
-
-		if ! has_version kde-apps/svg:${SLOT} ; then
-			elog "For konqueror to view SVGs, install the svg kpart:"
-			elog "kde-apps/svgpart:${SLOT}"
-		fi
-
-		if ! has_version virtual/jre ; then
-			elog "To use Java on webpages install virtual/jre."
-		fi
+		elog "Optional dependencies:"
+		optfeature "bookmarks support" kde-apps/keditbookmarks:${SLOT}
+		optfeature "filemanager component" kde-apps/dolphin:${SLOT}
+		optfeature "SVG support" kde-apps/svg:${SLOT}
+		optfeature "Java support on webpages" virtual/jre
 	fi
+	ecm_pkg_postinst
 }

diff --git a/kde-apps/konqueror/konqueror-9999.ebuild b/kde-apps/konqueror/konqueror-9999.ebuild
index d967f89e00..0538477c16 100644
--- a/kde-apps/konqueror/konqueror-9999.ebuild
+++ b/kde-apps/konqueror/konqueror-9999.ebuild
@@ -3,12 +3,12 @@
 
 EAPI=7
 
-ECM_HANDBOOK="optional" # not optional until !kdelibs4support
+ECM_HANDBOOK="optional"
 ECM_TEST="true"
 KFMIN=5.73.0
 QTMIN=5.14.2
 VIRTUALX_REQUIRED="test"
-inherit flag-o-matic ecm kde.org
+inherit flag-o-matic ecm kde.org optfeature
 
 DESCRIPTION="Web browser and file manager based on KDE Frameworks"
 HOMEPAGE="https://kde.org/applications/internet/org.kde.konqueror"
@@ -78,26 +78,12 @@ src_configure() {
 }
 
 pkg_postinst() {
-	ecm_pkg_postinst
-
 	if [[ -z "${REPLACING_VERSIONS}" ]]; then
-		if ! has_version kde-apps/keditbookmarks:${SLOT} ; then
-			elog "For bookmarks support, install keditbookmarks:"
-			elog "kde-apps/keditbookmarks:${SLOT}"
-		fi
-
-		if ! has_version kde-apps/dolphin:${SLOT} ; then
-			elog "If you want to use konqueror as a filemanager, install the dolphin kpart:"
-			elog "kde-apps/dolphin:${SLOT}"
-		fi
-
-		if ! has_version kde-apps/svg:${SLOT} ; then
-			elog "For konqueror to view SVGs, install the svg kpart:"
-			elog "kde-apps/svgpart:${SLOT}"
-		fi
-
-		if ! has_version virtual/jre ; then
-			elog "To use Java on webpages install virtual/jre."
-		fi
+		elog "Optional dependencies:"
+		optfeature "bookmarks support" kde-apps/keditbookmarks:${SLOT}
+		optfeature "filemanager component" kde-apps/dolphin:${SLOT}
+		optfeature "SVG support" kde-apps/svg:${SLOT}
+		optfeature "Java support on webpages" virtual/jre
 	fi
+	ecm_pkg_postinst
 }


             reply	other threads:[~2020-09-07 15:07 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-07 15:07 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-23 14:04 [gentoo-commits] proj/kde:master commit in: kde-apps/konqueror/ Andreas Sturmlechner
2024-03-15 14:07 Andreas Sturmlechner
2024-03-03  9:38 Andreas Sturmlechner
2024-02-23  6:26 Sam James
2024-02-23  4:49 Sam James
2023-12-21 11:46 Andreas Sturmlechner
2023-11-11 20:05 Andreas Sturmlechner
2023-10-14 19:52 Andreas Sturmlechner
2023-07-06 12:00 Andreas Sturmlechner
2022-10-06  9:02 Andreas Sturmlechner
2022-08-04  9:35 Andreas Sturmlechner
2021-09-16 18:55 Andreas Sturmlechner
2021-05-12  7:50 Andreas Sturmlechner
2021-04-16 19:37 Andreas Sturmlechner
2021-04-04 19:21 Andreas Sturmlechner
2020-07-21 11:17 Andreas Sturmlechner
2020-01-14 19:23 Andreas Sturmlechner
2020-01-07 19:42 Andreas Sturmlechner
2020-01-06 20:14 Andreas Sturmlechner
2020-01-05 12:25 Andreas Sturmlechner
2020-01-04 13:49 Andreas Sturmlechner
2019-01-19 12:22 Andreas Sturmlechner
2018-12-13 22:24 Andreas Sturmlechner
2018-08-06 23:59 Andreas Sturmlechner
2018-05-03 11:40 Andreas Sturmlechner
2018-02-04 21:14 Andreas Sturmlechner
2016-11-24 13:01 Michael Palimaka
2016-11-19 10:47 Michael Palimaka
2016-11-13 17:48 Michael Palimaka
2016-11-12 10:55 Michael Palimaka
2016-10-22 14:29 Michael Palimaka
2016-09-25 17:39 Michael Palimaka
2016-09-21 14:37 Michael Palimaka
2016-08-04 12:28 Michael Palimaka
2016-08-02 21:22 Johannes Huber
2016-08-02 21:22 Johannes Huber
2016-07-20 15:18 Michael Palimaka
2016-07-18 20:42 Johannes Huber
2016-07-09 18:07 Johannes Huber
2016-04-04 22:51 Johannes Huber
2015-07-01 20:08 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=1599491149.3acabde8a7aa0d278e8aa0d3f48a57b467fecd27.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