summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-09-07 16:40:54 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2020-09-07 17:05:50 +0200
commitdd195a7a2fd957d45f6dd27dd7e128a2541dc6a8 (patch)
treefa498fbb292d63faebfe9a738f9b4ec61ceb5ab8
parent41a9176b891c2ecec7e736e2c0fd7d8ca7050997 (diff)
downloadkde-dd195a7a2fd957d45f6dd27dd7e128a2541dc6a8.tar.gz
kde-dd195a7a2fd957d45f6dd27dd7e128a2541dc6a8.tar.bz2
kde-dd195a7a2fd957d45f6dd27dd7e128a2541dc6a8.zip
kde-plasma/kinfocenter: Use optfeature
Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r--kde-plasma/kinfocenter/kinfocenter-9999.ebuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/kde-plasma/kinfocenter/kinfocenter-9999.ebuild b/kde-plasma/kinfocenter/kinfocenter-9999.ebuild
index 606a489d548..e8e7385b091 100644
--- a/kde-plasma/kinfocenter/kinfocenter-9999.ebuild
+++ b/kde-plasma/kinfocenter/kinfocenter-9999.ebuild
@@ -7,7 +7,7 @@ ECM_HANDBOOK="forceoptional"
KFMIN=9999
PVCUT=$(ver_cut 1-3)
QTMIN=5.15.0
-inherit ecm kde.org
+inherit ecm kde.org optfeature
DESCRIPTION="Utility providing information about the computer hardware"
HOMEPAGE="https://userbase.kde.org/KInfoCenter"
@@ -93,13 +93,10 @@ src_install() {
}
pkg_postinst() {
- ecm_pkg_postinst
-
if [[ -z "${REPLACING_VERSIONS}" ]]; then
- has_version "net-fs/nfs-utils" || \
- elog "Installing net-fs/nfs-utils will enable the NFS information module."
-
- has_version "net-fs/samba" || \
- elog "Installing net-fs/samba will enable the Samba status information module."
+ elog "Optional dependencies:"
+ optfeature "NFS information module" net-fs/nfs-utils
+ optfeature "Samba status information module" net-fs/samba
fi
+ ecm_pkg_postinst
}