summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2024-04-16 05:40:03 -0400
committerIonen Wolkens <ionen@gentoo.org>2024-04-16 05:45:13 -0400
commit081cb5bb4c1bcbc025d95681c293518519b43cc7 (patch)
treed65a5153cb34f9451af42c8920d65dd945c34639 /games-arcade
parentgames-board/scid: add 5.0.2 (diff)
downloadgentoo-081cb5bb4c1bcbc025d95681c293518519b43cc7.tar.gz
gentoo-081cb5bb4c1bcbc025d95681c293518519b43cc7.tar.bz2
gentoo-081cb5bb4c1bcbc025d95681c293518519b43cc7.zip
games-arcade/cdogs-sdl: add 2.1.0
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/cdogs-sdl/Manifest1
-rw-r--r--games-arcade/cdogs-sdl/cdogs-sdl-2.1.0.ebuild53
2 files changed, 54 insertions, 0 deletions
diff --git a/games-arcade/cdogs-sdl/Manifest b/games-arcade/cdogs-sdl/Manifest
index 59cac33df380..bbaf745f3bdd 100644
--- a/games-arcade/cdogs-sdl/Manifest
+++ b/games-arcade/cdogs-sdl/Manifest
@@ -1 +1,2 @@
DIST cdogs-sdl-2.0.0.tar.gz 35833483 BLAKE2B 3e5a57a6571ad3c28a28c6a29f34cf0b5db09aadc666c4258f33efe78b2b7c5a9b69a311a8cab79c994f88d865f2b9961dff515ebe4e45afb9ae20200b5b9733 SHA512 1e68bf0eed882836849c41d3c6a38275d8d3c551b0776b8658996d18d65a6401f810d265e9a5a666ab3b8694fe341b2783f72dee681c242f54373a584b4e2a3c
+DIST cdogs-sdl-2.1.0.tar.gz 35945061 BLAKE2B 03dc9554fd982ecc322a01224846fde05a116cdea8ed8415ba703d2711957ec5314301c7a92117d231d338cabe4c21e14297c2cff1205f6cf1abac1ff7606c4a SHA512 92b82a94cd73c7e33e141878db6ee71ca1e164a41c79e0c575aa02f4121506496e2e8e6bbef1eb239c7b145b90c0a49c3f31f4cc6d8817f75e91f5554b6d6d05
diff --git a/games-arcade/cdogs-sdl/cdogs-sdl-2.1.0.ebuild b/games-arcade/cdogs-sdl/cdogs-sdl-2.1.0.ebuild
new file mode 100644
index 000000000000..45e3f8fbcc15
--- /dev/null
+++ b/games-arcade/cdogs-sdl/cdogs-sdl-2.1.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2024 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
+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ media-libs/libsdl2[haptic,opengl]
+ media-libs/sdl2-image[png]
+ media-libs/sdl2-mixer[mp3,vorbis,wav]
+ net-libs/enet:1.3=
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.1.1-cmake.patch
+)
+
+src_configure() {
+ filter-lto #858527
+
+ local mycmakeargs=(
+ -DCDOGS_DATA_DIR="${EPREFIX}"/usr/share/${PN}/ # trailing / is needed
+ -DBUILD_EDITOR=OFF
+ -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
+}