Skip to content

Commit

Permalink
sci-astronomy/kstars: Port to KF6
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Nov 9, 2024
1 parent cd32469 commit e304124
Showing 1 changed file with 29 additions and 37 deletions.
66 changes: 29 additions & 37 deletions sci-astronomy/kstars/kstars-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ EAPI=8

ECM_HANDBOOK="forceoptional"
ECM_TEST="true"
KFMIN=5.115.0
QTMIN=5.15.12
KFMIN=6.5.0
QTMIN=6.7.2
inherit ecm kde.org optfeature

DESCRIPTION="Desktop Planetarium"
Expand All @@ -18,60 +18,51 @@ if [[ ${KDE_BUILD_TYPE} = release ]]; then
fi

LICENSE="GPL-2+ GPL-3+"
SLOT="5"
SLOT="0"
IUSE="+password raw wcs"

# IUSE wcs needed by TestPolarAlign
REQUIRED_USE="${PYTHON_REQUIRED_USE} test? ( wcs )"

# https://wiki.gentoo.org/wiki/Project:Qt/Qt6_migration_notes#Still_unpackaged
# >=dev-qt/qtdatavis3d-${QTMIN}:6
COMMON_DEPEND="
>=dev-qt/qtdatavis3d-${QTMIN}:5
>=dev-qt/qtdbus-${QTMIN}:5
>=dev-qt/qtdeclarative-${QTMIN}:5
>=dev-qt/qtgui-${QTMIN}:5
>=dev-qt/qtnetwork-${QTMIN}:5
>=dev-qt/qtprintsupport-${QTMIN}:5
>=dev-qt/qtsql-${QTMIN}:5
>=dev-qt/qtsvg-${QTMIN}:5
>=dev-qt/qtwebsockets-${QTMIN}:5
>=dev-qt/qtwidgets-${QTMIN}:5
>=kde-frameworks/kconfig-${KFMIN}:5
>=kde-frameworks/kconfigwidgets-${KFMIN}:5
>=kde-frameworks/kcoreaddons-${KFMIN}:5
>=kde-frameworks/kcrash-${KFMIN}:5
>=kde-frameworks/ki18n-${KFMIN}:5
>=kde-frameworks/kio-${KFMIN}:5
>=kde-frameworks/knewstuff-${KFMIN}:5
>=kde-frameworks/knotifications-${KFMIN}:5
>=kde-frameworks/knotifyconfig-${KFMIN}:5
>=kde-frameworks/kplotting-${KFMIN}:5
>=kde-frameworks/kwidgetsaddons-${KFMIN}:5
>=kde-frameworks/kxmlgui-${KFMIN}:5
>=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
sci-libs/cfitsio:=
sci-libs/gsl:=
>=sci-libs/indilib-2.0.2
sci-libs/libnova:=
>=sci-libs/stellarsolver-2.2
sys-libs/zlib
password? ( dev-libs/qtkeychain:=[qt5(+)] )
password? ( >=dev-libs/qtkeychain-0.14.2:=[qt6(+)] )
raw? ( media-libs/libraw:= )
wcs? ( sci-astronomy/wcslib:= )
"
# TODO: Add back when re-enabled by upstream
# opengl? (
# >=dev-qt/qtopengl-${QTMIN}:5
# virtual/opengl
# )
# TODO: what about virtual/opengl?
DEPEND="${COMMON_DEPEND}
dev-cpp/eigen:3
>=dev-qt/qtconcurrent-${QTMIN}:5
>=dev-qt/qtbase-${QTMIN}:6[concurrent]
test? ( sci-astronomy/erfa )
"
RDEPEND="${COMMON_DEPEND}
>=dev-qt/qtgraphicaleffects-${QTMIN}:5
>=dev-qt/qtpositioning-${QTMIN}:5
>=dev-qt/qtquickcontrols-${QTMIN}:5
>=dev-qt/qtquickcontrols2-${QTMIN}:5
!${CATEGORY}/${PN}:5
>=dev-qt/qt5compat-${QTMIN}:6[qml]
>=dev-qt/qtpositioning-${QTMIN}:6
"

CMAKE_SKIP_TESTS=(
Expand All @@ -86,8 +77,9 @@ CMAKE_SKIP_TESTS=(
src_configure() {
local mycmakeargs=(
-DCMAKE_DISABLE_FIND_PACKAGE_LibXISF=ON # not packaged
-DBUILD_QT5=OFF # KF6 please
-DBUILD_DOC=$(usex handbook)
$(cmake_use_find_package password Qt5Keychain)
$(cmake_use_find_package password Qt6Keychain)
$(cmake_use_find_package raw LibRaw)
$(cmake_use_find_package wcs WCSLIB)
)
Expand Down

0 comments on commit e304124

Please sign in to comment.