Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/teeworlds/
Date: Wed, 01 Jul 2020 10:28:15
Message-Id: 1593598575.6101c95ee5879e1d10a5e502c88f3a752df06751.asturm@gentoo
1 commit: 6101c95ee5879e1d10a5e502c88f3a752df06751
2 Author: Victor Kustov <ktrace <AT> yandex <DOT> ru>
3 AuthorDate: Mon May 11 13:34:18 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 1 10:16:15 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6101c95e
7
8 games-action/teeworlds: bump to 0.7.5
9
10 Bump version
11 Remove dev-util/bam (switch to cmake)
12
13 Closes: https://bugs.gentoo.org/668928
14 Signed-off-by: Victor Kustov <ktrace <AT> yandex.ru>
15 Closes: https://github.com/gentoo/gentoo/pull/13781
16 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
17
18 games-action/teeworlds/Manifest | 4 ++
19 games-action/teeworlds/teeworlds-0.7.5.ebuild | 80 +++++++++++++++++++++++++++
20 2 files changed, 84 insertions(+)
21
22 diff --git a/games-action/teeworlds/Manifest b/games-action/teeworlds/Manifest
23 index 78521c5092a..6b9d796adb2 100644
24 --- a/games-action/teeworlds/Manifest
25 +++ b/games-action/teeworlds/Manifest
26 @@ -1 +1,5 @@
27 DIST teeworlds-0.6.4-src.tar.gz 8771622 BLAKE2B 14493fcad458b0e1c749e40bdd6a5a858704bf971d53d11782d52fbe9b5fe2a09235dcac25340e51a3330001d46ee512f2971e8db06eb9f51eec5e6b3cd2a328 SHA512 7546ee358a2126339f6c727bb7b5f49009a8fad0b5e77a796202cba4d8fc5dfcaf79b7e65151d85fead2a70ad61ef3e1888b8c07fe0206f87575d5dd8c9f91ce
28 +DIST teeworlds-0.7.5-maps.tar.gz 151689 BLAKE2B f8ffbb6a024755bb972955a8c7d277709e17021c0554be0e2803e8c1b4848f5dca6d91b9f7f4e0731766745878c1143d27be3fa8aede01ff9cc69ac557ca70a8 SHA512 74084e169c1870cd541f5bb719c209210227055d304b3ce22fbad3d32d24b3356fbdec8d948edf3aa582270a8b0db7dec41e4924401f8398f7d5feba5ded49b3
29 +DIST teeworlds-0.7.5-translation.tar.gz 169121 BLAKE2B 1c649392385abf8e00d8c9e64ca7eaaa5af5848878566081cda83c7d78c417652137e7285d16038f302a6fdf94eb3993c506886d4cc1359694d534c7be5ea925 SHA512 41c69cd9e9290857b44be18f89ab9f3a7ccd6804757332966b973aec3a9e6fd5a40d323696a044a724228b2bb67b097311fa8c24fdec226eecb7a27c2da559dc
30 +DIST teeworlds-0.7.5.tar.gz 8654985 BLAKE2B ebeb9aa1119950e4d78d8c0d6c7be5711894c3212755a6db3b8b8c1f1803dba1e0d2e1a0e294e1a1fffe84a28beab8fac0e55fa0e94c68ed97e8764ac3b742d3 SHA512 673410a5fb5e488229ddc4ea4a1ac9cd8143a6e9499bde9f5535d7f0be5b6c85163065da9580c3de0d240f1cad63e0bc12c10caf1d893c324edb301bc150653b
31 +DIST teeworlds.png 21502 BLAKE2B 8064e0c2149f20f182b2ca2f7454f0e8395e199a432b8f21a9963cc771b1504ebe8cbe427ecd738d35313b1a378eaf8e305d509cd5360a07e9ab3c5224b78b77 SHA512 a272a1d9f13504c43ba873d93899df93c435f58cec20ae68bc9493a983e54cdd4c8f0f2e0630558c5e915aec891d2267bc3459ecc78c25738602452a2123fadf
32
33 diff --git a/games-action/teeworlds/teeworlds-0.7.5.ebuild b/games-action/teeworlds/teeworlds-0.7.5.ebuild
34 new file mode 100644
35 index 00000000000..f2e0b2da85e
36 --- /dev/null
37 +++ b/games-action/teeworlds/teeworlds-0.7.5.ebuild
38 @@ -0,0 +1,80 @@
39 +# Copyright 1999-2020 Gentoo Authors
40 +# Distributed under the terms of the GNU General Public License v2
41 +
42 +EAPI=7
43 +
44 +PYTHON_COMPAT=( python3_{5,6,7} )
45 +
46 +inherit cmake-utils desktop python-any-r1 xdg-utils
47 +
48 +COMMIT_LANG="4ba6f824e9c34565e61340d25bc8c3cc004d40fb"
49 +COMMIT_MAPS="1d3401a37a3334e311faf18a22aeff0e0ac9ee65"
50 +
51 +DESCRIPTION="Online multi-player platform 2D shooter"
52 +HOMEPAGE="https://www.teeworlds.com/"
53 +SRC_URI="
54 + https://github.com/ktrace/gentoo-blobs/raw/master/teeworlds.png
55 + https://github.com/teeworlds/teeworlds/archive/${PV}.tar.gz -> ${P}.tar.gz
56 + https://github.com/teeworlds/teeworlds-maps/archive/${COMMIT_MAPS}.tar.gz -> ${P}-maps.tar.gz
57 + https://github.com/teeworlds/teeworlds-translation/archive/${COMMIT_LANG}.tar.gz -> ${P}-translation.tar.gz
58 + "
59 +
60 +LICENSE="ZLIB"
61 +SLOT="0"
62 +KEYWORDS="~amd64 ~x86"
63 +IUSE="debug dedicated"
64 +
65 +RDEPEND="
66 + !dedicated? (
67 + app-arch/bzip2
68 + media-libs/freetype
69 + media-libs/libsdl[X,sound,opengl,video]
70 + media-libs/pnglite
71 + media-sound/wavpack
72 + virtual/glu
73 + virtual/opengl
74 + x11-libs/libX11
75 + )
76 + dev-libs/openssl:0=
77 + sys-libs/zlib"
78 +
79 +DEPEND="${RDEPEND} ${PYTHON_DEPS}"
80 +
81 +src_prepare() {
82 + rm -r "${S}/datasrc/languages" || die
83 + rm -r "${S}/datasrc/maps" || die
84 + mv "${WORKDIR}/${PN}-translation-${COMMIT_LANG}" "${S}/datasrc/languages" || die
85 + mv "${WORKDIR}/${PN}-maps-${COMMIT_MAPS}" "${S}/datasrc/maps" || die
86 + cp "${DISTDIR}/${PN}.png" "${S}/" || die
87 + python_fix_shebang scripts/
88 + cmake-utils_src_prepare
89 +}
90 +
91 +src_configure() {
92 + local mycmakeargs=(
93 + -DCLIENT=$(usex dedicated OFF ON)
94 + -DDEV=$(usex debug ON OFF)
95 + -DPYTHON_EXECUTABLE="${PYTHON}"
96 + )
97 +
98 + cmake-utils_src_configure
99 +}
100 +
101 +src_install() {
102 + cmake-utils_src_install
103 + doicon -s 256 "${PN}.png"
104 + domenu other/teeworlds.desktop
105 + newinitd "${FILESDIR}"/${PN}-init.d ${PN}
106 + insinto "/etc/${PN}"
107 + doins "${FILESDIR}"/teeworlds_srv.cfg
108 +}
109 +
110 +pkg_postinst() {
111 + xdg_desktop_database_update
112 + xdg_icon_cache_update
113 +}
114 +
115 +pkg_postrm() {
116 + xdg_desktop_database_update
117 + xdg_icon_cache_update
118 +}