diff options
-rw-r--r-- | sci-astronomy/kstars/kstars-9999.ebuild | 14 | ||||
-rw-r--r-- | sci-astronomy/kstars/metadata.xml | 1 |
2 files changed, 10 insertions, 5 deletions
diff --git a/sci-astronomy/kstars/kstars-9999.ebuild b/sci-astronomy/kstars/kstars-9999.ebuild index a481533f11..f4a6b52784 100644 --- a/sci-astronomy/kstars/kstars-9999.ebuild +++ b/sci-astronomy/kstars/kstars-9999.ebuild @@ -14,11 +14,10 @@ fi DESCRIPTION="Desktop Planetarium" HOMEPAGE="https://www.kde.org/applications/education/kstars https://edu.kde.org/kstars" -IUSE="fits indi raw wcs xplanet" +IUSE="fits indi raw wcs" REQUIRED_USE="indi? ( fits ) ${PYTHON_REQUIRED_USE}" -# TODO: AstrometryNet requires new package COMMON_DEPEND=" $(add_frameworks_dep kauth) $(add_frameworks_dep kconfig) @@ -46,7 +45,6 @@ COMMON_DEPEND=" indi? ( >=sci-libs/indilib-1.4.0 ) raw? ( media-libs/libraw:= ) wcs? ( sci-astronomy/wcslib ) - xplanet? ( x11-misc/xplanet ) " # TODO: Add back when re-enabled by upstream # opengl? ( @@ -67,8 +65,16 @@ src_configure() { $(cmake-utils_use_find_package indi INDI) $(cmake-utils_use_find_package raw LibRaw) $(cmake-utils_use_find_package wcs WCSLIB) - $(cmake-utils_use_find_package xplanet Xplanet) ) kde5_src_configure } + +pkg_postinst () { + kde5_pkg_postinst + + if ! has_version "x11-misc/xplanet" ; then + elog "${PN} has optional runtime support for x11-misc/xplanet" + fi + # same for AstrometryNet, which is not packaged. +} diff --git a/sci-astronomy/kstars/metadata.xml b/sci-astronomy/kstars/metadata.xml index 2102d7af3d..efd7ced31b 100644 --- a/sci-astronomy/kstars/metadata.xml +++ b/sci-astronomy/kstars/metadata.xml @@ -9,6 +9,5 @@ <flag name="fits">Enable support for NASA's <pkg>sci-libs/cfitsio</pkg> library</flag> <flag name="indi">Enable support for Astronomical control library using libindi</flag> <flag name="wcs">Enable support for World Coordinate System library using wcslib</flag> - <flag name="xplanet">Enable support for Xplanet</flag> </use> </pkgmetadata> |