1 |
commit: 5a2daa6ac21762b219d8b7fbd4a4fec3e7681403 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 3 05:13:30 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 3 05:56:15 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a2daa6a |
7 |
|
8 |
games-arcade/cdogs-sdl: add 1.3.0 |
9 |
|
10 |
Also add CC-BY-4.0 (lmg.mp3) and WTFPL-2 (easing.c) to LICENSE, and |
11 |
[mp3] to sdl2-mixer. |
12 |
|
13 |
Remove CMAKE_IN_SOURCE_BUILD workaround, no longer necessary. |
14 |
|
15 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
16 |
|
17 |
games-arcade/cdogs-sdl/Manifest | 1 + |
18 |
games-arcade/cdogs-sdl/cdogs-sdl-1.3.0.ebuild | 44 +++++++++++++++++++++++++++ |
19 |
2 files changed, 45 insertions(+) |
20 |
|
21 |
diff --git a/games-arcade/cdogs-sdl/Manifest b/games-arcade/cdogs-sdl/Manifest |
22 |
index b11570cc4d7e..b951604ba215 100644 |
23 |
--- a/games-arcade/cdogs-sdl/Manifest |
24 |
+++ b/games-arcade/cdogs-sdl/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
DIST cdogs-sdl-1.2.0.tar.gz 35018104 BLAKE2B 1a87f0c6e4af0fda69c0dd98249b319b58411a5b0b7377c21ebef51939f2b6e76959a00bf7fd5602b07bebb9eaab22c840699ae1c54e5d4dcb1aa26852fb8ba0 SHA512 70a5a4bb8e48cf53a4497807b14d8a70e26ad6b74f0c4675b3d98667c867d499d372f323e7abb669ebef08b1d6b5ac9c840ab14eada38e7b868d3099ed6b3e35 |
27 |
+DIST cdogs-sdl-1.3.0.tar.gz 35201522 BLAKE2B bdfeab22edc0e5bfe46d23862bb0e8a829eb8c782519f473340a73d6823fcf6236d61892dff5f6be52e985a8560ce2175b5aab50fb899359d47d3acdf937fe5d SHA512 913ee8a70ab2190259a88891e4f3e30034b7a88dac5fa1a79fcc9452a42fe9fa6679e24104848fab63c7aace8dac311d2166fa01c7175f14243d8658f25aee69 |
28 |
|
29 |
diff --git a/games-arcade/cdogs-sdl/cdogs-sdl-1.3.0.ebuild b/games-arcade/cdogs-sdl/cdogs-sdl-1.3.0.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000000..70ed391a2e22 |
32 |
--- /dev/null |
33 |
+++ b/games-arcade/cdogs-sdl/cdogs-sdl-1.3.0.ebuild |
34 |
@@ -0,0 +1,44 @@ |
35 |
+# Copyright 1999-2022 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=8 |
39 |
+ |
40 |
+inherit cmake xdg |
41 |
+ |
42 |
+DESCRIPTION="Classic overhead run-and-gun game" |
43 |
+HOMEPAGE="https://cxong.github.io/cdogs-sdl/" |
44 |
+SRC_URI="https://github.com/cxong/cdogs-sdl/archive/${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="GPL-2+ BSD-2 CC-BY-3.0 CC-BY-4.0 CC-BY-SA-3.0 CC0-1.0 WTFPL-2 XMAME" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ media-libs/libsdl2[haptic,opengl] |
52 |
+ media-libs/sdl2-image[png] |
53 |
+ media-libs/sdl2-mixer[mp3,vorbis,wav] |
54 |
+ net-libs/enet:1.3=" |
55 |
+DEPEND="${RDEPEND}" |
56 |
+ |
57 |
+PATCHES=( |
58 |
+ "${FILESDIR}"/${PN}-1.1.1-cmake.patch |
59 |
+) |
60 |
+ |
61 |
+src_configure() { |
62 |
+ local mycmakeargs=( |
63 |
+ -DCDOGS_DATA_DIR="${EPREFIX}"/usr/share/${PN}/ |
64 |
+ -DBUILD_EDITOR=OFF |
65 |
+ -DUSE_SHARED_ENET=ON |
66 |
+ ) |
67 |
+ |
68 |
+ cmake_src_configure |
69 |
+} |
70 |
+ |
71 |
+src_install() { |
72 |
+ cmake_src_install |
73 |
+ |
74 |
+ dodoc doc/{AUTHORS,original_readme.txt} |
75 |
+ |
76 |
+ # CREDITS is used at runtime, rest is licenses or duplicates |
77 |
+ find "${ED}"/usr/share/${PN}/doc -type f ! -name CREDITS -delete || die |
78 |
+} |