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@gentoo.org>
This commit is contained in:
James Le Cuirot 2025-06-14 20:52:05 +01:00
parent ff27832024
commit f9087de7b9
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137
2 changed files with 34 additions and 8 deletions

View File

@ -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)

View File

@ -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; }