commit:     f15d96dd196ba3d122997b32f046bbb886a622e1
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  7 14:50:46 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Sep  7 15:05:51 2020 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=f15d96dd

sci-astronomy/kstars: Use optfeature

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

 sci-astronomy/kstars/kstars-9999.ebuild | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/sci-astronomy/kstars/kstars-9999.ebuild 
b/sci-astronomy/kstars/kstars-9999.ebuild
index 3c1a48fa23..337700e089 100644
--- a/sci-astronomy/kstars/kstars-9999.ebuild
+++ b/sci-astronomy/kstars/kstars-9999.ebuild
@@ -6,7 +6,7 @@ EAPI=7
 ECM_HANDBOOK="forceoptional"
 KFMIN=5.60.0
 QTMIN=5.12.3
-inherit ecm kde.org
+inherit ecm kde.org optfeature
 
 DESCRIPTION="Desktop Planetarium"
 HOMEPAGE="https://kde.org/applications/education/org.kde.kstars
@@ -89,10 +89,10 @@ src_configure() {
 }
 
 pkg_postinst() {
-       ecm_pkg_postinst
-
-       if [[ -z "${REPLACING_VERSIONS}" ]] && ! has_version "x11-misc/xplanet" 
; then
-               elog "${PN} has optional runtime support for x11-misc/xplanet"
+       if [[ -z "${REPLACING_VERSIONS}" ]]; then
+               elog "Optional dependencies:"
+               optfeature "Display 'current' pictures of planets" 
x11-misc/xplanet
+               # for AstrometryNet is not packaged.
        fi
-       # same for AstrometryNet, which is not packaged.
+       ecm_pkg_postinst
 }

Reply via email to