Install this version:
emerge -a =sci-astronomy/kstars-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sci-astronomy/kstars-9999
Or alternatively:
emerge --autounmask-write -a =sci-astronomy/kstars-9999
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
ECM_TEST="true"
KFMIN=6.9.0
QTMIN=6.8.1
inherit ecm kde.org optfeature xdg
DESCRIPTION="Desktop Planetarium"
HOMEPAGE="https://apps.kde.org/kstars/ https://kstars.kde.org/"
if [[ ${KDE_BUILD_TYPE} = release ]]; then
SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-2+ GPL-3+"
SLOT="0"
IUSE="+password raw"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
# currently broken w/ KF6, https://invent.kde.org/education/kstars/-/issues/294
RESTRICT="test"
# https://wiki.gentoo.org/wiki/Project:Qt/Qt6_migration_notes#Still_unpackaged
# >=dev-qt/qtdatavis3d-${QTMIN}:6
COMMON_DEPEND="
dev-cpp/eigen:=
>=dev-qt/qtbase-${QTMIN}:6[dbus,gui,network,sql,widgets]
>=dev-qt/qtdeclarative-${QTMIN}:6
>=dev-qt/qtsvg-${QTMIN}:6
>=dev-qt/qtwebsockets-${QTMIN}:6
>=kde-frameworks/kconfig-${KFMIN}:6
>=kde-frameworks/kconfigwidgets-${KFMIN}:6
>=kde-frameworks/kcoreaddons-${KFMIN}:6
>=kde-frameworks/kcrash-${KFMIN}:6
>=kde-frameworks/ki18n-${KFMIN}:6
>=kde-frameworks/kio-${KFMIN}:6
>=kde-frameworks/knewstuff-${KFMIN}:6
>=kde-frameworks/knotifications-${KFMIN}:6
>=kde-frameworks/knotifyconfig-${KFMIN}:6
>=kde-frameworks/kplotting-${KFMIN}:6
>=kde-frameworks/kwidgetsaddons-${KFMIN}:6
>=kde-frameworks/kxmlgui-${KFMIN}:6
media-libs/opencv:=[ffmpeg]
sci-astronomy/wcslib:=
sci-libs/cfitsio:=
sci-libs/gsl:=
>=sci-libs/indilib-2.0.2
sci-libs/libnova:=
>=sci-libs/stellarsolver-2.7
virtual/zlib:=
password? ( >=dev-libs/qtkeychain-0.14.2:=[qt6(+)] )
raw? ( media-libs/libraw:= )
"
# TODO: what about virtual/opengl?
DEPEND="${COMMON_DEPEND}
>=dev-qt/qtbase-${QTMIN}:6[concurrent]
test? ( sci-astronomy/erfa )
"
RDEPEND="${COMMON_DEPEND}
!${CATEGORY}/${PN}:5
>=dev-qt/qt5compat-${QTMIN}:6[qml]
>=dev-qt/qtpositioning-${QTMIN}:6
"
CMAKE_SKIP_TESTS=(
# bug 842768, test declared unstable by upstream
TestKSPaths
# bugs 923871, 939788
TestPlaceholderPath # ki18n (KLocalizedString) failure
# all fail with offscreen plugin
TestEkos{Capture,FilterWheel,Focus,Mount,Scheduler{,Ops},Simulator}
)
PATCHES=(
# downstream patch
"${FILESDIR}"/${PN}-3.8.1-cmake.patch # bug 895892
)
src_configure() {
local mycmakeargs=(
-DCMAKE_DISABLE_FIND_PACKAGE_LibXISF=ON # not packaged
-DBUILD_WITH_QT6=ON # KF6 please
-DENABLE_SENTRY=OFF
$(cmake_use_find_package password Qt6Keychain)
$(cmake_use_find_package raw LibRaw)
)
ecm_src_configure
}
src_test() {
LC_NUMERIC="C" LC_TIME="C" TZ=UTC ecm_src_test
}
pkg_postinst() {
if [[ -z "${REPLACING_VERSIONS}" ]]; then
optfeature "Display 'current' pictures of planets" x11-misc/xplanet
fi
xdg_pkg_postinst
}
Manage flags for this package:
euse -i <flag> -p sci-astronomy/kstars |
euse -E <flag> -p sci-astronomy/kstars |
euse -D <flag> -p sci-astronomy/kstars
dev-cpp/eigen:= >=dev-qt/qtbase-:6[dbus,gui,network,sql,widgets] >=dev-qt/qtdeclarative-:6 >=dev-qt/qtsvg-:6 >=dev-qt/qtwebsockets-:6 >=kde-frameworks/kconfig-6.9.0:6 >=kde-frameworks/kconfigwidgets-:6 >=kde-frameworks/kcoreaddons-:6 >=kde-frameworks/kcrash-:6 >=kde-frameworks/ki18n-:6 >=kde-frameworks/kio-:6 >=kde-frameworks/knewstuff-:6 >=kde-frameworks/knotifications-:6 >=kde-frameworks/knotifyconfig-:6 >=kde-frameworks/kplotting-:6 >=kde-frameworks/kwidgetsaddons-:6 >=kde-frameworks/kxmlgui-:6 media-libs/opencv:=[ffmpeg] sci-astronomy/wcslib:= sci-libs/cfitsio:= sci-libs/gsl:= >=sci-libs/indilib-2.0.2 sci-libs/libnova:= >=sci-libs/stellarsolver-2.7 virtual/zlib:= password? ( >=dev-libs/qtkeychain-0.14.2:=[qt6(+)] ) raw? ( media-libs/libraw:= ) >=dev-qt/qtbase-6.8.1:6[concurrent] test? ( sci-astronomy/erfa )
dev-cpp/eigen:= >=dev-qt/qtbase-:6[dbus,gui,network,sql,widgets] >=dev-qt/qtdeclarative-:6 >=dev-qt/qtsvg-:6 >=dev-qt/qtwebsockets-:6 >=kde-frameworks/kconfig-6.9.0:6 >=kde-frameworks/kconfigwidgets-:6 >=kde-frameworks/kcoreaddons-:6 >=kde-frameworks/kcrash-:6 >=kde-frameworks/ki18n-:6 >=kde-frameworks/kio-:6 >=kde-frameworks/knewstuff-:6 >=kde-frameworks/knotifications-:6 >=kde-frameworks/knotifyconfig-:6 >=kde-frameworks/kplotting-:6 >=kde-frameworks/kwidgetsaddons-:6 >=kde-frameworks/kxmlgui-:6 media-libs/opencv:=[ffmpeg] sci-astronomy/wcslib:= sci-libs/cfitsio:= sci-libs/gsl:= >=sci-libs/indilib-2.0.2 sci-libs/libnova:= >=sci-libs/stellarsolver-2.7 virtual/zlib:= password? ( >=dev-libs/qtkeychain-0.14.2:=[qt6(+)] ) raw? ( media-libs/libraw:= ) !/kstars:5 >=dev-qt/qt5compat-6.8.1:6[qml] >=dev-qt/qtpositioning-:6