Skip to content

Commit

Permalink
kde-apps/marble: Drop unused dependencies, always run ecm_src_configure
Browse files Browse the repository at this point in the history
Upstream commits:
9a8bd45e4b4f766ff3e5379504a0bf4e0edb9b21
6ba72d68b57d41c97a1440cfbc9027f8052c1887

IUSE kde: Replace bogus WITH_KF6 switch with deselecting all KF6 automagic.
This is prerequisite to reproduce Unknown CMake command "qt_policy" error.

Bug: https://bugs.gentoo.org/946470
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Dec 15, 2024
1 parent 58338e4 commit ea33b74
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
17 changes: 7 additions & 10 deletions kde-apps/marble/marble-24.12.49.9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,8 @@ DEPEND="
>=kde-frameworks/kcrash-${KFMIN}:6
>=kde-frameworks/ki18n-${KFMIN}:6
>=kde-frameworks/kio-${KFMIN}:6
>=kde-frameworks/knewstuff-${KFMIN}:6
>=kde-frameworks/kparts-${KFMIN}:6
>=kde-frameworks/krunner-${KFMIN}:6
>=kde-frameworks/kservice-${KFMIN}:6
>=kde-frameworks/kwallet-${KFMIN}:6
)
pbf? ( dev-libs/protobuf:= )
phonon? ( >=media-libs/phonon-4.12.0[qt6(+)] )
Expand All @@ -61,7 +58,7 @@ BDEPEND="
src_prepare() {
ecm_src_prepare

rm -rf src/3rdparty/zlib || die "Failed to remove bundled libs"
rm -r src/3rdparty/zlib || die "Failed to remove bundled libs"
}

src_configure() {
Expand All @@ -71,7 +68,6 @@ src_configure() {
-DBUILD_WITH_DBUS=$(usex dbus)
-DWITH_DESIGNER_PLUGIN=$(usex designer)
-DWITH_libgps=$(usex gps)
-DWITH_KF6=$(usex kde)
$(cmake_use_find_package pbf Protobuf)
-DWITH_Phonon4Qt6=$(usex phonon)
-DWITH_libshp=$(usex shapefile)
Expand All @@ -80,9 +76,10 @@ src_configure() {
# bug 608890
-DKDE_INSTALL_CONFDIR="/etc/xdg"
)
if use kde; then
ecm_src_configure
else
cmake_src_configure
fi
# KF6KIO: src/thumbnailer/CMakeLists.txt
# KF6Runner: src/plasmarunner/CMakeLists.txt
for x in CoreAddons I18n Config Crash KIO Parts Runner; do
mycmakeargs+=( $(cmake_use_find_package kde KF6${x}) )
done
ecm_src_configure
}
17 changes: 7 additions & 10 deletions kde-apps/marble/marble-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,8 @@ DEPEND="
>=kde-frameworks/kcrash-${KFMIN}:6
>=kde-frameworks/ki18n-${KFMIN}:6
>=kde-frameworks/kio-${KFMIN}:6
>=kde-frameworks/knewstuff-${KFMIN}:6
>=kde-frameworks/kparts-${KFMIN}:6
>=kde-frameworks/krunner-${KFMIN}:6
>=kde-frameworks/kservice-${KFMIN}:6
>=kde-frameworks/kwallet-${KFMIN}:6
)
pbf? ( dev-libs/protobuf:= )
phonon? ( >=media-libs/phonon-4.12.0[qt6(+)] )
Expand All @@ -61,7 +58,7 @@ BDEPEND="
src_prepare() {
ecm_src_prepare

rm -rf src/3rdparty/zlib || die "Failed to remove bundled libs"
rm -r src/3rdparty/zlib || die "Failed to remove bundled libs"
}

src_configure() {
Expand All @@ -71,7 +68,6 @@ src_configure() {
-DBUILD_WITH_DBUS=$(usex dbus)
-DWITH_DESIGNER_PLUGIN=$(usex designer)
-DWITH_libgps=$(usex gps)
-DWITH_KF6=$(usex kde)
$(cmake_use_find_package pbf Protobuf)
-DWITH_Phonon4Qt6=$(usex phonon)
-DWITH_libshp=$(usex shapefile)
Expand All @@ -80,9 +76,10 @@ src_configure() {
# bug 608890
-DKDE_INSTALL_CONFDIR="/etc/xdg"
)
if use kde; then
ecm_src_configure
else
cmake_src_configure
fi
# KF6KIO: src/thumbnailer/CMakeLists.txt
# KF6Runner: src/plasmarunner/CMakeLists.txt
for x in CoreAddons I18n Config Crash KIO Parts Runner; do
mycmakeargs+=( $(cmake_use_find_package kde KF6${x}) )
done
ecm_src_configure
}

0 comments on commit ea33b74

Please sign in to comment.