commit: f9087de7b92e58b7f82609733afb193a5ac0beaa Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Sat Jun 14 19:52:05 2025 +0000 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> CommitDate: Sat Jun 14 19:52:28 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9087de7
games-action/violetland: Patch for CMake 4, EAPI 8 I didn't bother sending the CMake patch upstream. They're clearly gone. Closes: https://bugs.gentoo.org/957832 Closes: https://bugs.gentoo.org/957833 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> .../violetland/files/violetland-0.5-cmake4.patch | 28 ++++++++++++++++++++++ ...letland-0.5.ebuild => violetland-0.5-r1.ebuild} | 14 +++++------ 2 files changed, 34 insertions(+), 8 deletions(-) diff --git a/games-action/violetland/files/violetland-0.5-cmake4.patch b/games-action/violetland/files/violetland-0.5-cmake4.patch new file mode 100644 index 000000000000..ef2d0566a2a5 --- /dev/null +++ b/games-action/violetland/files/violetland-0.5-cmake4.patch @@ -0,0 +1,28 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,6 +1,6 @@ +-PROJECT(violetland) ++CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0...4.0 FATAL_ERROR) + +-CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR) ++PROJECT(violetland) + + find_package(SDL REQUIRED) + find_package(SDL_image REQUIRED) +--- a/lib/fcitx/CMakeLists.txt ++++ b/lib/fcitx/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required (VERSION 2.6) ++cmake_minimum_required (VERSION 2.6...4.0) + + project(fcitx) + +--- a/po/CMakeLists.txt ++++ b/po/CMakeLists.txt +@@ -1,5 +1,5 @@ ++CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0...4.0 FATAL_ERROR) + PROJECT(po) +-CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR) + + set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../lib/CMake-Gettext") + set(GettextTranslate_ALL true) diff --git a/games-action/violetland/violetland-0.5.ebuild b/games-action/violetland/violetland-0.5-r1.ebuild similarity index 84% rename from games-action/violetland/violetland-0.5.ebuild rename to games-action/violetland/violetland-0.5-r1.ebuild index 2db7c5ac14cf..06fee934f43f 100644 --- a/games-action/violetland/violetland-0.5.ebuild +++ b/games-action/violetland/violetland-0.5-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit cmake desktop xdg-utils +inherit cmake desktop xdg DESCRIPTION="Help a girl named Violet in the struggle with hordes of monsters" HOMEPAGE="https://violetland.github.io/" @@ -15,11 +15,11 @@ KEYWORDS="~amd64 ~x86" RDEPEND=" dev-libs/boost:= + media-libs/libglvnd media-libs/libsdl[opengl,sound,video] media-libs/sdl-image[png] media-libs/sdl-mixer[vorbis] media-libs/sdl-ttf - virtual/opengl " DEPEND="${RDEPEND}" @@ -30,6 +30,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${P}-boost1.85.patch + "${FILESDIR}"/${P}-cmake4.patch ) src_prepare() { @@ -57,8 +58,5 @@ src_install() { rm -r "${ED}"/usr/share/${PN}/README* || die newicon -s 64 icon-light.png ${PN}.png - make_desktop_entry ${PN} VioletLand + make_desktop_entry ${PN} Violetland } - -pkg_postinst() { xdg_icon_cache_update; } -pkg_postrm() { xdg_icon_cache_update; }
