commit:     70dabe22e8a4cc3b12c326620ab1e17a8c6e5330
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Wed Mar 19 10:50:41 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 24 05:58:18 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70dabe22

x11-misc/kdocker: add 6.2, qt6

port qt6/cmake

it works without any custom phase

libXmu and libXpm are no longer required

Closes: https://bugs.gentoo.org/947614
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Closes: https://github.com/gentoo/gentoo/pull/41169
Signed-off-by: Sam James <sam <AT> gentoo.org>

 x11-misc/kdocker/Manifest                          |  1 +
 x11-misc/kdocker/files/kdocker-6.2-fix_clang.patch | 24 ++++++++++++++++++
 x11-misc/kdocker/kdocker-6.2.ebuild                | 29 ++++++++++++++++++++++
 3 files changed, 54 insertions(+)

diff --git a/x11-misc/kdocker/Manifest b/x11-misc/kdocker/Manifest
index 10ae4225980b..f058f7769a8a 100644
--- a/x11-misc/kdocker/Manifest
+++ b/x11-misc/kdocker/Manifest
@@ -1 +1,2 @@
 DIST KDocker-5.4.tar.gz 181166 BLAKE2B 
7a301cd36f73112f5a6df6ce65fc11c30b16089ccec98f46d435694b2bfb373eac11c2ba3be5c4e56a56cec1f5fad9bc17b014e47e55f886f0685b6f11707c51
 SHA512 
1bc1bc445ccc2406f3fe21deb68d9654b3d384ab88bce4bc49f123c343ece3dcc3dfdc49b796f6ad5251d050e57b4ad13e1900851519b3643263137550f0ccc9
+DIST KDocker-6.2.tar.gz 352810 BLAKE2B 
d299c71c53a4c519da2ee038878a689bcc074fbf49ad69eda74f38ebd9b7734fa7a8ef9e6cbdbaa20fcce18814d5a397ba0fd2e6bdbf71790271d46603b136d8
 SHA512 
0e3ef8235e2ecb95bfaec704fb3cc9dfc15be5955ab12155e78128628e00dc3398f179b7e3393b1f0898b3c43d681b1b5bb1828bfc92629136f818773b650caf

diff --git a/x11-misc/kdocker/files/kdocker-6.2-fix_clang.patch 
b/x11-misc/kdocker/files/kdocker-6.2-fix_clang.patch
new file mode 100644
index 000000000000..84aba1550192
--- /dev/null
+++ b/x11-misc/kdocker/files/kdocker-6.2-fix_clang.patch
@@ -0,0 +1,24 @@
+https://github.com/user-none/KDocker/pull/142.patch
+From 114d1f3ac0f78569c1c0a6e8deac141c0efddff0 Mon Sep 17 00:00:00 2001
+From: Reilly Brogan <[email protected]>
+Date: Sat, 7 Dec 2024 00:49:16 -0600
+Subject: [PATCH] Fix clang compilation
+
+Signed-off-by: Reilly Brogan <[email protected]>
+---
+ src/xlibutil.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/xlibutil.cpp b/src/xlibutil.cpp
+index b18f20a..d899bb5 100644
+--- a/src/xlibutil.cpp
++++ b/src/xlibutil.cpp
+@@ -654,7 +654,7 @@ void XLibUtil::raiseWindow(windowid_t window)
+ // found icon.
+ static bool imageMeetsMinimumOpaque(size_t num_opaque, size_t width, size_t 
height)
+ {
+-    if (static_cast<double>(num_opaque) / static_cast<double>(width * height) 
> 0.1d)
++    if (static_cast<double>(num_opaque) / static_cast<double>(width * height) 
> 0.1)
+         return true;
+     return false;
+ }

diff --git a/x11-misc/kdocker/kdocker-6.2.ebuild 
b/x11-misc/kdocker/kdocker-6.2.ebuild
new file mode 100644
index 000000000000..90e55eb29de1
--- /dev/null
+++ b/x11-misc/kdocker/kdocker-6.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake xdg
+
+MY_P=KDocker-${PV}
+DESCRIPTION="Helper to dock any application into the system tray"
+HOMEPAGE="https://github.com/user-none/KDocker";
+SRC_URI="https://github.com/user-none/KDocker/archive/${PV}.tar.gz -> 
${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       dev-qt/qtbase:6[dbus,gui,widgets,X]
+       x11-libs/libX11
+"
+DEPEND="${RDEPEND}
+       x11-libs/libxcb
+"
+
+PATCHES=(
+       # Merged. To be removed at next version 6.3.
+       "${FILESDIR}"/${P}-fix_clang.patch
+)

Reply via email to