commit:     a2e51c4b9a7df06f4382fd348edfcc13adda26dd
Author:     Johannes Huber <johu <AT> gmx <DOT> de>
AuthorDate: Mon May 26 14:49:38 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 27 04:27:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2e51c4b

x11-misc/xcalib: fix build w/ cmake 4

Closes: https://bugs.gentoo.org/954113
Signed-off-by: Johannes Huber <johu <AT> gmx.de>
Part-of: https://github.com/gentoo/gentoo/pull/42264
Signed-off-by: Sam James <sam <AT> gentoo.org>

 x11-misc/xcalib/files/xcalib-0.10-cmake4.patch | 10 ++++++++++
 x11-misc/xcalib/xcalib-0.10-r1.ebuild          | 26 ++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)

diff --git a/x11-misc/xcalib/files/xcalib-0.10-cmake4.patch 
b/x11-misc/xcalib/files/xcalib-0.10-cmake4.patch
new file mode 100644
index 000000000000..342865f134e2
--- /dev/null
+++ b/x11-misc/xcalib/files/xcalib-0.10-cmake4.patch
@@ -0,0 +1,10 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 6a48c13..0f883dd 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-CMAKE_MINIMUM_REQUIRED (VERSION 2.6)
++CMAKE_MINIMUM_REQUIRED (VERSION 3.5)
+ 
+ PROJECT (xcalib C)
+ 

diff --git a/x11-misc/xcalib/xcalib-0.10-r1.ebuild 
b/x11-misc/xcalib/xcalib-0.10-r1.ebuild
new file mode 100644
index 000000000000..ebdb938707d0
--- /dev/null
+++ b/x11-misc/xcalib/xcalib-0.10-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Tiny monitor calibration loader for X.org"
+HOMEPAGE="https://github.com/OpenICC/xcalib";
+SRC_URI="https://github.com/OpenICC/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+
+RDEPEND="
+       x11-libs/libX11
+       x11-libs/libXrandr
+       x11-libs/libXxf86vm
+"
+DEPEND="${RDEPEND}
+       x11-base/xorg-proto
+       x11-libs/libXext
+"
+
+PATCHES=( "$FILESDIR"/${P}-cmake4.patch )

Reply via email to