Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/warmux/files/, games-strategy/warmux/
Date: Mon, 04 Oct 2021 23:58:52
Message-Id: 1633391778.748756d8d10e901754d9d33a9a6104284ebd6c76.ionen@gentoo
1 commit: 748756d8d10e901754d9d33a9a6104284ebd6c76
2 Author: Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
3 AuthorDate: Mon Oct 4 20:52:18 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 4 23:56:18 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=748756d8
7
8 games-strategy/warmux: fix build, deps, bump eapi
9
10 Remove nls USE flag, because it caused build failure when disabled,
11 because in that case it defines its own ngettext macro, which conflicts
12 with that function defined in libintl.h which is transitively included
13 anyway.
14
15 Closes: https://bugs.gentoo.org/739400
16 Closes: https://bugs.gentoo.org/796914
17 Closes: https://bugs.gentoo.org/631434
18 Package-Manager: Portage-3.0.20, Repoman-3.0.3
19 Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
20 Closes: https://github.com/gentoo/gentoo/pull/22489
21 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
22
23 .../warmux/files/warmux-11.04.1-clang.patch | 13 ++++++++
24 ...-11.04.1-r1.ebuild => warmux-11.04.1-r2.ebuild} | 37 +++++++++++++---------
25 2 files changed, 35 insertions(+), 15 deletions(-)
26
27 diff --git a/games-strategy/warmux/files/warmux-11.04.1-clang.patch b/games-strategy/warmux/files/warmux-11.04.1-clang.patch
28 new file mode 100644
29 index 00000000000..eb4097bfe6f
30 --- /dev/null
31 +++ b/games-strategy/warmux/files/warmux-11.04.1-clang.patch
32 @@ -0,0 +1,13 @@
33 +https://bugs.gentoo.org/739400
34 +
35 +--- a/src/map/tile.cpp
36 ++++ b/src/map/tile.cpp
37 +@@ -673,7 +673,7 @@ Tile::SynchTileList Tile::GetTilesToSynch()
38 + TileItem_NonEmpty *t = static_cast<TileItem_NonEmpty*>(item[i]);
39 +
40 + if (t->NeedSynch()) {
41 +- SynchTileInfo info = { i, t->GetSynchsum() };
42 ++ SynchTileInfo info = { (uint16_t)i, t->GetSynchsum() };
43 + list.push_back(info);
44 + }
45 + }
46
47 diff --git a/games-strategy/warmux/warmux-11.04.1-r1.ebuild b/games-strategy/warmux/warmux-11.04.1-r2.ebuild
48 similarity index 64%
49 rename from games-strategy/warmux/warmux-11.04.1-r1.ebuild
50 rename to games-strategy/warmux/warmux-11.04.1-r2.ebuild
51 index fd2b025c8fa..b387e9b15a2 100644
52 --- a/games-strategy/warmux/warmux-11.04.1-r1.ebuild
53 +++ b/games-strategy/warmux/warmux-11.04.1-r2.ebuild
54 @@ -1,36 +1,46 @@
55 # Copyright 1999-2021 Gentoo Authors
56 # Distributed under the terms of the GNU General Public License v2
57
58 -EAPI=6
59 +EAPI=8
60
61 inherit autotools desktop
62
63 DESCRIPTION="A free Worms clone"
64 -HOMEPAGE="http://gna.org/projects/warmux/"
65 -SRC_URI="http://download.gna.org/warmux/${P}.tar.bz2"
66 +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
67 +SRC_URI="mirror://gentoo/${P}.tar.bz2"
68 S="${WORKDIR}"/${PN}-11.04
69
70 -LICENSE="GPL-2"
71 +LICENSE="
72 + GPL-2+
73 + || ( Apache-2.0 GPL-3 )
74 + UbuntuFontLicense-1.0
75 + vlgothic
76 +"
77 SLOT="0"
78 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
79 -IUSE="debug nls unicode"
80 +IUSE="debug unicode"
81
82 RDEPEND="
83 dev-libs/libxml2
84 + media-libs/libpng:=
85 media-libs/libsdl[joystick,video,X]
86 media-libs/sdl-image[jpeg,png]
87 media-libs/sdl-mixer[vorbis]
88 media-libs/sdl-ttf
89 media-libs/sdl-net
90 - media-libs/sdl-gfx
91 - media-fonts/dejavu
92 + media-libs/sdl-gfx:=
93 net-misc/curl
94 + virtual/libintl
95 x11-libs/libX11
96 - nls? ( virtual/libintl )
97 - unicode? ( dev-libs/fribidi )"
98 + unicode? ( dev-libs/fribidi )
99 +"
100 DEPEND="${RDEPEND}
101 + x11-base/xorg-proto
102 +"
103 +BDEPEND="
104 + sys-devel/gettext
105 virtual/pkgconfig
106 - nls? ( sys-devel/gettext )"
107 +"
108
109 PATCHES=(
110 "${FILESDIR}"/${P}-gentoo.patch
111 @@ -40,6 +50,7 @@ PATCHES=(
112 "${FILESDIR}"/${P}-stat.patch
113 "${FILESDIR}"/${P}-fix-c++14.patch
114 "${FILESDIR}"/${P}-respect-AR.patch
115 + "${FILESDIR}"/${P}-clang.patch
116 )
117
118 src_prepare() {
119 @@ -49,18 +60,14 @@ src_prepare() {
120
121 src_configure() {
122 econf \
123 - --with-localedir-name="${EPREFIX}"/usr/share/locale \
124 - --with-datadir-name="${EPREFIX}"/usr/share/${PN} \
125 - --with-font-path="${EPREFIX}"/usr/share/fonts/dejavu/DejaVuSans.ttf \
126 + --enable-nls \
127 $(use_enable debug) \
128 - $(use_enable nls) \
129 $(use_enable unicode fribidi)
130 }
131
132 src_install() {
133 default
134
135 - rm -f "${ED%/}"/usr/share/${PN}/font/DejaVuSans.ttf || die
136 doicon data/icon/warmux.svg
137 make_desktop_entry warmux Warmux
138 }