commit: 676c44ddd36d18c33ab97b6dcf8bb77777e6704e Author: Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org> AuthorDate: Sun Sep 28 21:48:26 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Oct 3 00:38:15 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=676c44dd
games-arcade/cavezofphear: add 0.6.1 Closes: https://bugs.gentoo.org/943818 Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org> Part-of: https://github.com/gentoo/gentoo/pull/43979 Signed-off-by: Sam James <sam <AT> gentoo.org> games-arcade/cavezofphear/Manifest | 1 + .../cavezofphear/cavezofphear-0.6.1.ebuild | 30 ++++++++++++++++++++ .../files/cavezofphear-0.6.1-gcc15.patch | 32 ++++++++++++++++++++++ games-arcade/cavezofphear/metadata.xml | 11 +++++--- 4 files changed, 70 insertions(+), 4 deletions(-) diff --git a/games-arcade/cavezofphear/Manifest b/games-arcade/cavezofphear/Manifest index b83142b399c9..e2a8edcfe1fb 100644 --- a/games-arcade/cavezofphear/Manifest +++ b/games-arcade/cavezofphear/Manifest @@ -1 +1,2 @@ +DIST cavezofphear-0.6.1.tar.gz 46968 BLAKE2B 7391c55fdbb90f6f4756b58281058b9adbf72730d002f89fe033d8440eb006f62f9a065efc71945e70c3ce1c0ab8f42c9873646f3b880ce5c5e0970d9bf86c65 SHA512 a97c37d8fc68b8028cc1cb5bbc0db0b98a042b375ac7ecc126cf87845e8423a07015b4b706ccec10de8e177b1cc6984c7c809b56507a1784c23a1a0fe135bc5e DIST phear-0.5.1.tar.bz2 25750 BLAKE2B 0b2c4a6f51fadd48a1e01dd5ac2072984368b3314fd3df01d4ad8adfdc0d031d443ac5f950651d4fff4ff5019b61868532eff0ed3d31bd6b2ba0f97893391d6a SHA512 23326a63acc06e77a1dd3505345940f8ef31b671282e00f623b181fe1cdbdf1b7e4b37a6e91ea430348a02239ed1450736dc075ea3af3eee0e8acb115aa89f3b diff --git a/games-arcade/cavezofphear/cavezofphear-0.6.1.ebuild b/games-arcade/cavezofphear/cavezofphear-0.6.1.ebuild new file mode 100644 index 000000000000..1958a4635008 --- /dev/null +++ b/games-arcade/cavezofphear/cavezofphear-0.6.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="A boulder dash / digger-like game for console using ncurses" +HOMEPAGE="https://github.com/AMDmi3/cavezofphear" +SRC_URI="https://github.com/AMDmi3/cavezofphear/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +RDEPEND=">=sys-libs/ncurses-5:0=" +DEPEND="${RDEPEND}" +BDEPEND="sys-apps/help2man" + +PATCHES=( + "${FILESDIR}"/${P}-gcc15.patch +) + +src_configure() { + local mycmakeargs=( + -DSYSTEMWIDE=yes + ) + + cmake_src_configure +} diff --git a/games-arcade/cavezofphear/files/cavezofphear-0.6.1-gcc15.patch b/games-arcade/cavezofphear/files/cavezofphear-0.6.1-gcc15.patch new file mode 100644 index 000000000000..bd532e90c00d --- /dev/null +++ b/games-arcade/cavezofphear/files/cavezofphear-0.6.1-gcc15.patch @@ -0,0 +1,32 @@ +https://bugs.gentoo.org/943818 +https://github.com/AMDmi3/cavezofphear/pull/2 + +--- a/src/frame.c ++++ b/src/frame.c +@@ -60,12 +60,12 @@ void bail(const char* message) { + exit(EXIT_FAILURE); + } + +-void sigint_handler() { ++void sigint_handler(int arg) { + curses_stop(); + bail("got SIGINT, cleaning up"); + } + +-void sigwinch_handler() { ++void sigwinch_handler(int arg) { + /* + curses_stop(); + bail("got SIGWINCH, cleaning up"); +--- a/src/frame.h ++++ b/src/frame.h +@@ -21,7 +21,7 @@ + void curses_start(void); + void curses_stop(void); + void bail(const char* message); +-void sigint_handler(); +-void sigwinch_handler(); ++void sigint_handler(int arg); ++void sigwinch_handler(int arg); + + #endif diff --git a/games-arcade/cavezofphear/metadata.xml b/games-arcade/cavezofphear/metadata.xml index 1c3ba213c494..a4718709c871 100644 --- a/games-arcade/cavezofphear/metadata.xml +++ b/games-arcade/cavezofphear/metadata.xml @@ -1,8 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<maintainer type="project"> - <email>[email protected]</email> - <name>Gentoo Games Project</name> -</maintainer> + <maintainer type="project"> + <email>[email protected]</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="github">AMDmi3/cavezofphear</remote-id> + </upstream> </pkgmetadata>
