diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2024-02-18 21:08:44 -0500 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2024-02-18 21:09:22 -0500 |
commit | d425b727051ca966551b41f76f8ad2016282267b (patch) | |
tree | 5dd076ad866b0b23ffb9b7a22b5d509e7bf175e1 /games-arcade | |
parent | app-arch/createrepo_c: drop 1.0.2 (diff) | |
download | gentoo-d425b727051ca966551b41f76f8ad2016282267b.tar.gz gentoo-d425b727051ca966551b41f76f8ad2016282267b.tar.bz2 gentoo-d425b727051ca966551b41f76f8ad2016282267b.zip |
games-arcade/cdogs-sdl: add 2.0.0
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-arcade')
-rw-r--r-- | games-arcade/cdogs-sdl/Manifest | 1 | ||||
-rw-r--r-- | games-arcade/cdogs-sdl/cdogs-sdl-2.0.0.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/games-arcade/cdogs-sdl/Manifest b/games-arcade/cdogs-sdl/Manifest index 18e12675bc4f..9634ce498e8d 100644 --- a/games-arcade/cdogs-sdl/Manifest +++ b/games-arcade/cdogs-sdl/Manifest @@ -1 +1,2 @@ DIST cdogs-sdl-1.5.0.tar.gz 35772274 BLAKE2B 70e06897edfe0a35ec5196ef1f1ae2d90b54958e18a68c3c114a88978b5550a3f6ac68a3d69225a7ee1f00f0d1eeaa0b3d6364e9f435acaeb9118c9a8a7c4f49 SHA512 e6ff35d16ad6af109954397f8c14d7a73a561dee55d7451446149a80b6fb8ec1df2a8c46cd220d335d30472202668672d8c9d71a6428653432794272d07469ee +DIST cdogs-sdl-2.0.0.tar.gz 35833483 BLAKE2B 3e5a57a6571ad3c28a28c6a29f34cf0b5db09aadc666c4258f33efe78b2b7c5a9b69a311a8cab79c994f88d865f2b9961dff515ebe4e45afb9ae20200b5b9733 SHA512 1e68bf0eed882836849c41d3c6a38275d8d3c551b0776b8658996d18d65a6401f810d265e9a5a666ab3b8694fe341b2783f72dee681c242f54373a584b4e2a3c diff --git a/games-arcade/cdogs-sdl/cdogs-sdl-2.0.0.ebuild b/games-arcade/cdogs-sdl/cdogs-sdl-2.0.0.ebuild new file mode 100644 index 000000000000..45e3f8fbcc15 --- /dev/null +++ b/games-arcade/cdogs-sdl/cdogs-sdl-2.0.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 +} |