summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2024-03-15 14:36:45 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2024-03-24 22:02:14 +0100
commitdcffa1856ce6d56c7f170946e5aae9d2dee4e6b4 (patch)
tree4c19a74a397f0eb9da5d3599ceec252089e85194 /kde-frameworks/kdbusaddons
parentapp-arch/file-roller: add 44 (diff)
downloadgentoo-dcffa1856ce6d56c7f170946e5aae9d2dee4e6b4.tar.gz
gentoo-dcffa1856ce6d56c7f170946e5aae9d2dee4e6b4.tar.bz2
gentoo-dcffa1856ce6d56c7f170946e5aae9d2dee4e6b4.zip
kde-frameworks/kdbusaddons: Add missing dev-qt/qtbase:6= slot op
See also: https://invent.kde.org/frameworks/kdbusaddons/-/merge_requests/49 Backporting to 6.0.0, otherwise this dependency fix would only be introduced by 6.1.0 on April 13th. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-frameworks/kdbusaddons')
-rw-r--r--kde-frameworks/kdbusaddons/files/kdbusaddons-6.0.0-cmake.patch35
-rw-r--r--kde-frameworks/kdbusaddons/kdbusaddons-6.0.0-r1.ebuild (renamed from kde-frameworks/kdbusaddons/kdbusaddons-6.0.0.ebuild)5
2 files changed, 39 insertions, 1 deletions
diff --git a/kde-frameworks/kdbusaddons/files/kdbusaddons-6.0.0-cmake.patch b/kde-frameworks/kdbusaddons/files/kdbusaddons-6.0.0-cmake.patch
new file mode 100644
index 000000000000..b1ebc6d32bfd
--- /dev/null
+++ b/kde-frameworks/kdbusaddons/files/kdbusaddons-6.0.0-cmake.patch
@@ -0,0 +1,35 @@
+From d307f232232de6e5646fd6a91053fe097b90b35f Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <asturm@gentoo.org>
+Date: Fri, 15 Mar 2024 14:26:49 +0100
+Subject: [PATCH] Conditionalise Qt6::GuiPrivate on HAVE_X11
+
+qtx11extras_p.h is already conditional behind HAVE_X11
+
+Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
+---
+ src/CMakeLists.txt | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index c47bc15..de5ac6f 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -60,11 +60,11 @@ ecm_generate_export_header(KF6DBusAddons
+ EXCLUDE_DEPRECATED_BEFORE_AND_AT ${EXCLUDE_DEPRECATED_BEFORE_AND_AT}
+ )
+
+-if(TARGET Qt6::Gui)
+- set(_qt_x11_extras_libs Qt6::GuiPrivate) # qtx11extras_p.h
+-endif()
++target_link_libraries(KF6DBusAddons PUBLIC Qt6::DBus)
+
+-target_link_libraries(KF6DBusAddons PUBLIC Qt6::DBus PRIVATE ${_qt_x11_extras_libs})
++if(HAVE_X11)
++ target_link_libraries(KF6DBusAddons PRIVATE Qt6::GuiPrivate) # qtx11extras_p.h
++endif()
+
+ target_include_directories(KF6DBusAddons INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF}/KDBusAddons>")
+
+--
+GitLab
+
diff --git a/kde-frameworks/kdbusaddons/kdbusaddons-6.0.0.ebuild b/kde-frameworks/kdbusaddons/kdbusaddons-6.0.0-r1.ebuild
index 7d0db60a68ee..5c8019cf1755 100644
--- a/kde-frameworks/kdbusaddons/kdbusaddons-6.0.0.ebuild
+++ b/kde-frameworks/kdbusaddons/kdbusaddons-6.0.0-r1.ebuild
@@ -13,13 +13,16 @@ LICENSE="LGPL-2+"
KEYWORDS="~amd64"
IUSE="X"
+# slot op: Uses Qt6::GuiPrivate for qtx11extras_p.h
DEPEND="
>=dev-qt/qtbase-${QTMIN}:6[dbus]
- X? ( >=dev-qt/qtbase-${QTMIN}:6[gui] )
+ X? ( >=dev-qt/qtbase-${QTMIN}:6=[gui] )
"
RDEPEND="${DEPEND}"
BDEPEND=">=dev-qt/qttools-${QTMIN}:6[linguist]"
+PATCHES=( "${FILESDIR}/${P}-cmake.patch" )
+
src_configure() {
local mycmakeargs=(
-DWITH_X11=$(usex X)