commit:     9a0e341f24c1bd00a3cd5391732bdaca251b1406
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Aug  9 10:49:27 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Aug  9 11:27:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a0e341f

games-arcade/cdogs-sdl: add 2.3.1

wrt bug #958001, upstream fixed the files that are actually used
but there is still some unused CMakeLists.txt so need the SKIP=1.

Closes: https://bugs.gentoo.org/958001
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 games-arcade/cdogs-sdl/Manifest               |  1 +
 games-arcade/cdogs-sdl/cdogs-sdl-2.3.1.ebuild | 58 +++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/games-arcade/cdogs-sdl/Manifest b/games-arcade/cdogs-sdl/Manifest
index 0490214f9fc1..e0a91ed3ff82 100644
--- a/games-arcade/cdogs-sdl/Manifest
+++ b/games-arcade/cdogs-sdl/Manifest
@@ -1 +1,2 @@
 DIST cdogs-sdl-2.3.0.tar.gz 36906703 BLAKE2B 
de44ed4bcc6a19fa5872aad96bcd523732019fea945dce634cce70bd2f3539bc29c9dd33ac4aa1a74e62573de98837e3ce1500ac7e17bc6f02109eff63fac801
 SHA512 
defc77e6bbf690ede7367751c462395279c40ee9604a5b9d7dbea7a3f71ffeeecf833a9cfc0acd0e2f932d0e9b8ea28e41089c663a05083397fda264dc292b0e
+DIST cdogs-sdl-2.3.1.tar.gz 37794153 BLAKE2B 
c7f614c575b59dbd79153f6ff55dbe5af95e6876fca0935677e31dd594787cb6f67d5dce373fa8652dc45de1f2e8f469f29aedd16f7f9eb0dd6dbb6b740688b8
 SHA512 
25af1f92efa61b01d232d0a328c6ce892f1334ef4ff2d010a5b019da0ad5cf56c4cb374764a536f979e4bf409bacdb9b0b5ac2ee3ac94f7118f7fbd0b6ed0916

diff --git a/games-arcade/cdogs-sdl/cdogs-sdl-2.3.1.ebuild 
b/games-arcade/cdogs-sdl/cdogs-sdl-2.3.1.ebuild
new file mode 100644
index 000000000000..0ef7f8e842c5
--- /dev/null
+++ b/games-arcade/cdogs-sdl/cdogs-sdl-2.3.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic xdg
+
+DESCRIPTION="Classic overhead run-and-gun game"
+HOMEPAGE="https://cxong.github.io/cdogs-sdl/";
+SRC_URI="
+       https://github.com/cxong/cdogs-sdl/archive/refs/tags/${PV}.tar.gz
+               -> ${P}.tar.gz
+"
+
+LICENSE="
+       GPL-2+
+       BSD-2 CC-BY-3.0 CC-BY-4.0 CC-BY-SA-3.0 CC0-1.0 WTFPL-2 XMAME 
public-domain
+       || ( MIT Unlicense )
+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       media-libs/libsdl2[haptic,opengl]
+       media-libs/sdl2-mixer[mp3,vorbis,wav]
+       net-libs/enet:1.3=
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.1.1-cmake.patch
+)
+
+CMAKE_QA_COMPAT_SKIP=1
+
+src_configure() {
+       filter-lto #858527
+
+       local mycmakeargs=(
+               -DCDOGS_DATA_DIR="${EPREFIX}"/usr/share/${PN}/ # trailing / is 
needed
+               -DBUILD_EDITOR=OFF
+               -DBUILD_TESTING=$(usex test)
+               -DUSE_SHARED_ENET=ON
+       )
+
+       cmake_src_configure
+}
+
+src_install() {
+       cmake_src_install
+
+       dodoc doc/{AUTHORS,original_readme.txt}
+
+       # CREDITS is used at runtime, rest is licenses or duplicates
+       find "${ED}"/usr/share/${PN}/doc -type f ! -name CREDITS -delete || die
+}

Reply via email to