commit: cde1fcb6803062f41d7ba68133c74e2a81e76e36 Author: Kostadin Shishmanov <kostadinshishmanov <AT> protonmail <DOT> com> AuthorDate: Fri May 30 15:21:11 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri May 30 19:16:20 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cde1fcb6
x11-misc/ydotool: fix build with cmake 4 Closes: https://bugs.gentoo.org/951676 Signed-off-by: Kostadin Shishmanov <kostadinshishmanov <AT> protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42352 Closes: https://github.com/gentoo/gentoo/pull/42352 Signed-off-by: Sam James <sam <AT> gentoo.org> x11-misc/ydotool/files/ydotool-1.0.4-cmake4.patch | 31 +++++++++++++++++++++++ x11-misc/ydotool/ydotool-1.0.4-r4.ebuild | 24 ++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/x11-misc/ydotool/files/ydotool-1.0.4-cmake4.patch b/x11-misc/ydotool/files/ydotool-1.0.4-cmake4.patch new file mode 100644 index 000000000000..df9656ccf2e9 --- /dev/null +++ b/x11-misc/ydotool/files/ydotool-1.0.4-cmake4.patch @@ -0,0 +1,31 @@ +https://bugs.gentoo.org/951676 +https://github.com/ReimuNotMoe/ydotool/commit/58fde33 + +From 58fde33d9a8b393fd59348f71e80c56177b62706 Mon Sep 17 00:00:00 2001 +From: Paiusco <> +Date: Mon, 26 Feb 2024 17:58:13 +0100 +Subject: [PATCH] Upgrade CMake to 3.22 and C to 2011 + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7b91f69..aaba5c2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,7 +1,7 @@ +-cmake_minimum_required(VERSION 3.4) ++cmake_minimum_required(VERSION 3.22) + project(ydotool C) + +-set(CMAKE_C_STANDARD 99) ++set(CMAKE_C_STANDARD 11) + + # Include GNU install directory module to detect where to install + # files on Linux/Unix systems (e.g., lib vs lib64) +@@ -25,8 +25,6 @@ if (${RC_GIT_VER} EQUAL 0) + add_definitions(-DVERSION=\"${GIT_VERSION}\") + endif() + +- +- + set(SOURCE_FILES_DAEMON Daemon/ydotoold.c) + set(SOURCE_FILES_CLIENT Client/ydotool.c Client/tool_click.c Client/tool_mousemove.c Client/tool_type.c Client/tool_key.c) + diff --git a/x11-misc/ydotool/ydotool-1.0.4-r4.ebuild b/x11-misc/ydotool/ydotool-1.0.4-r4.ebuild new file mode 100644 index 000000000000..b8c5f3066c06 --- /dev/null +++ b/x11-misc/ydotool/ydotool-1.0.4-r4.ebuild @@ -0,0 +1,24 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Generic command-line automation tool (no X!)" +HOMEPAGE="https://github.com/ReimuNotMoe/ydotool" +SRC_URI="https://github.com/ReimuNotMoe/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="AGPL-3+" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND=" + app-text/scdoc + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-openrc.patch + "${FILESDIR}"/${PN}-1.0.4-cmake4.patch +)
