Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/warzone2100/
Date: Wed, 02 Mar 2022 03:04:20
Message-Id: 1646190240.cd6c3dc39d9bd0d9a434f6c2a88b8b31a65b17d0.sam@gentoo
1 commit: cd6c3dc39d9bd0d9a434f6c2a88b8b31a65b17d0
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 2 02:47:11 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 2 03:04:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd6c3dc3
7
8 games-strategy/warzone2100: add 4.2.6
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 games-strategy/warzone2100/Manifest | 1 +
13 .../warzone2100/warzone2100-4.2.6.ebuild | 116 +++++++++++++++++++++
14 2 files changed, 117 insertions(+)
15
16 diff --git a/games-strategy/warzone2100/Manifest b/games-strategy/warzone2100/Manifest
17 index 8ee4930b788e..219d47d7c648 100644
18 --- a/games-strategy/warzone2100/Manifest
19 +++ b/games-strategy/warzone2100/Manifest
20 @@ -1,3 +1,4 @@
21 DIST warzone2100-4.2.2.tar.xz 338585896 BLAKE2B e90ff6f5843a1750971a2cb7e77aac1e7c03ebeae90ea112d1eb735ea4a9cfee35de860e52f81824cde69543af6172ee630b6451ea39c141c188e4469f9200b9 SHA512 ea02207a27a01114daaf0819a98a63a5189570844dd69f50f493a1caafab7c05d85fb0d5c8a8b1b061ee3a050081e9786a1c090f4490134e93e8bbfa1903bd1b
22 DIST warzone2100-4.2.4.tar.xz 338685080 BLAKE2B d83fc41d7bb7ff062ca6d3ce924c5e50560737b309db5a31e9fa81ed4dd5c079cf53aed472d1686daaa2e758583e79c3310575191e95d0b01d0f692786ff015f SHA512 26f470c137d9f53b759d182058080a07b7a505aa900fc0e6ff8349783564e0e298216f162032ff43c15f1e5811a8192e161498f87d8cc624a1a653a4044fcfb7
23 +DIST warzone2100-4.2.6.tar.xz 338691628 BLAKE2B 234d78feb1fceb0eff23c2c1b8d85a5fd9e5ef8912b324ae159ffdb43be728d6e4aa78bdf01561e60c64826083936bc36c2dfd1cee443aed06a52eaa047e8517 SHA512 5cddeff5b66d9e710b0c4d6d2863100106a901c17815220b7a97633a3980be41eaa192921d39bffff60f547fb5f5358fa1e63a54f41b5083203916314bb3d2a1
24 DIST warzone2100-videos-2.2.wz 571937134 BLAKE2B 60b70a71bd920e2d72ded5d519b17db2f3db4b0289edadeb58059a21aba7038b95219dc44cb807754461d1a9bdca60f0d7698be68622b8bd64a55efa949622d3 SHA512 ca1a1af51296afdaca137114821508c5783f077090e665eae0f6df895855f57c43f84434706309e819417f5f35d1c649bd14e96dc9fbbb1252d30a4f9a223cf6
25
26 diff --git a/games-strategy/warzone2100/warzone2100-4.2.6.ebuild b/games-strategy/warzone2100/warzone2100-4.2.6.ebuild
27 new file mode 100644
28 index 000000000000..c52979b65465
29 --- /dev/null
30 +++ b/games-strategy/warzone2100/warzone2100-4.2.6.ebuild
31 @@ -0,0 +1,116 @@
32 +# Copyright 2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +PLOCALES="af_ZA bg_BG ca_ES cs da de el en_GB eo es et_EE fa_IR fi fr fy ga he_IL hr hu id_ID id it ko la lt nb nl pl pt_BR pt ro ru sk sl tr tt_RU uk_UA zh_CN zh_TW"
38 +inherit cmake plocale xdg
39 +
40 +MY_PV=$(ver_cut 1-2)
41 +VIDEOS_PV=2.2
42 +VIDEOS_P=${PN}-videos-${VIDEOS_PV}.wz
43 +DESCRIPTION="3D real-time strategy game"
44 +HOMEPAGE="https://wz2100.net/"
45 +SRC_URI="mirror://sourceforge/warzone2100/releases/${PV}/${PN}_src.tar.xz -> ${P}.tar.xz
46 + videos? ( mirror://sourceforge/warzone2100/warzone2100/Videos/${VIDEOS_PV}/high-quality-en/sequences.wz -> ${VIDEOS_P} )"
47 +S="${WORKDIR}/${PN}"
48 +
49 +LICENSE="GPL-2+ CC-BY-SA-3.0 public-domain vulkan? ( GPL-3 )"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86"
52 +# Upstream requested debug support
53 +IUSE="debug discord nls videos vulkan"
54 +
55 +CDEPEND="
56 + >=dev-games/physfs-2[zip]
57 + dev-db/sqlite:3
58 + >=dev-libs/libsodium-1.0.14:=
59 + media-libs/freetype:2
60 + media-libs/harfbuzz:=
61 + media-libs/libogg
62 + media-libs/libpng:=
63 + media-libs/libsdl2[opengl,video,X]
64 + media-libs/libtheora
65 + media-libs/libvorbis
66 + media-libs/openal
67 + net-libs/miniupnpc:=
68 + net-misc/curl
69 + sys-libs/zlib
70 + nls? ( virtual/libintl )
71 + vulkan? ( media-libs/libsdl2:=[vulkan] )
72 +"
73 +DEPEND="
74 + ${CDEPEND}
75 + dev-libs/fribidi
76 + media-libs/fontconfig
77 +"
78 +RDEPEND="
79 + ${CDEPEND}
80 + media-fonts/dejavu
81 +"
82 +BDEPEND="
83 + app-arch/zip
84 + app-text/asciidoc
85 + virtual/pkgconfig
86 + nls? ( sys-devel/gettext )
87 +"
88 +
89 +HTML_DOCS=( doc/quickstartguide.html doc/docbook-xsl.css doc/ScriptingManual.htm )
90 +DOCS=( README.md doc/images doc/Scripting.md doc/js-globals.md )
91 +
92 +PATCHES=(
93 + "${FILESDIR}"/${PN}-4.1.3-no-compress-manpages.patch
94 +)
95 +
96 +src_unpack() {
97 + unpack ${P}.tar.xz
98 +}
99 +
100 +src_prepare() {
101 + sed -i -e 's/#top_builddir/top_builddir/' po/Makevars || die
102 +
103 + # Delete translations we're not using
104 + cleanup_po() {
105 + local locale=${1}
106 + einfo "Cleaning up disabled locale: ${locale}"
107 + rm po/${locale}.po || die
108 + }
109 +
110 + plocale_for_each_disabled_locale cleanup_po
111 +
112 + cmake_src_prepare
113 +}
114 +
115 +src_configure() {
116 + local mycmakeargs=(
117 + -DWZ_DISTRIBUTOR="Gentoo Linux"
118 + -DWZ_ENABLE_WARNINGS_AS_ERRORS=OFF
119 + -DWZ_ENABLE_BACKEND_VULKAN=$(usex vulkan)
120 + -DBUILD_SHARED_LIBS=OFF
121 + -DENABLE_NLS=$(usex nls)
122 + -DENABLE_DISCORD=$(usex discord)
123 + )
124 +
125 + cmake_src_configure
126 +}
127 +
128 +src_compile() {
129 + cmake_src_compile
130 +
131 + asciidoc -b html5 doc/quickstartguide.asciidoc || die
132 +}
133 +
134 +src_install() {
135 + cmake_src_install
136 +
137 + rm "${ED}"/usr/bin/.portable || die
138 +
139 + # We cover licencing within the ebuild itself
140 + rm "${ED}"/usr/share/doc/${PF}/COPYING* \
141 + "${ED}"/usr/share/doc/${PF}/copyright || die
142 +
143 + if use videos ; then
144 + insinto /usr/share/${PN}
145 + newins "${DISTDIR}"/${VIDEOS_P} sequences.wz
146 + fi
147 +}