aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-09-07 16:50:46 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2020-09-07 17:05:51 +0200
commitf15d96dd196ba3d122997b32f046bbb886a622e1 (patch)
tree18ae839beb4e44f6d8b3b8699ca0ac7abdda6743 /sci-astronomy
parentdev-util/kdevelop: Use optfeature (diff)
downloadkde-f15d96dd196ba3d122997b32f046bbb886a622e1.tar.gz
kde-f15d96dd196ba3d122997b32f046bbb886a622e1.tar.bz2
kde-f15d96dd196ba3d122997b32f046bbb886a622e1.zip
sci-astronomy/kstars: Use optfeature
Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'sci-astronomy')
-rw-r--r--sci-astronomy/kstars/kstars-9999.ebuild12
1 files 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
}