1 |
commit: bd142618d8a708a307bad239bc74d857bae7211a |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 1 03:17:18 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 1 03:25:55 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd142618 |
7 |
|
8 |
games-strategy/warzone2100: Bump to version 3.3.0_beta1 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/691202 |
11 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
12 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
13 |
|
14 |
games-strategy/warzone2100/Manifest | 1 + |
15 |
.../warzone2100-3.3.0_beta1-gettext_version.patch | 36 +++++++ |
16 |
.../warzone2100/warzone2100-3.3.0_beta1.ebuild | 115 +++++++++++++++++++++ |
17 |
3 files changed, 152 insertions(+) |
18 |
|
19 |
diff --git a/games-strategy/warzone2100/Manifest b/games-strategy/warzone2100/Manifest |
20 |
index bb5b63ad593..426b447104e 100644 |
21 |
--- a/games-strategy/warzone2100/Manifest |
22 |
+++ b/games-strategy/warzone2100/Manifest |
23 |
@@ -1,3 +1,4 @@ |
24 |
DIST warzone2100-3.2.3-qt_compile_fix.patch 680 BLAKE2B 1073ea1619640455326c63dc55bf031579c8e9cb0b1b159e4fb1f9e8aa63bfcc6985e91cb2667149e7cc4b354bf96726fc6b8f8a8f519375e0a88c4be21dcb69 SHA512 766698c25c02b4254424efdafb8aa7b37360c3c05d3cd2d6c7f9127cbdd6a25840f98e8e3aadd5d6af494b4632584e564214c1f20c0bd74eb637da305552e067 |
25 |
DIST warzone2100-3.2.3.tar.xz 81314060 BLAKE2B 231be8c24d1c0967adb0a76ac9e441c2ea9f835720df9951f74227988473d100b24bccbfe4b5882a36c63a798368ed1a1f871751b6b363d90a82fea48c44ba65 SHA512 4b1bc0a0bb50a8b4726a2762a922ee233b92f9835e38bbab80c159a9cb301df7434a73ba5acfb17404031467c02a9b3480d6a0d44906d70896311b3468141746 |
26 |
+DIST warzone2100-3.3.0_beta1.tar.xz 85916776 BLAKE2B ec94e6fafff103e014e063f554b6a40411577d9c415733eb7857c4cd470195f1ab9878c2d5afd6c154e1f058c2f2a645a46738518d307da42ae97e0898fdf75a SHA512 17e9d81e7eadc71ad285147ff76517a92e8ea8747a05a6a08373d994725efa6bae11f87cd6bc9068cbfd78aa24d26fea95929c65a0906d03605b96469d972f4a |
27 |
DIST warzone2100-videos-2.2.wz 571937134 BLAKE2B 60b70a71bd920e2d72ded5d519b17db2f3db4b0289edadeb58059a21aba7038b95219dc44cb807754461d1a9bdca60f0d7698be68622b8bd64a55efa949622d3 SHA512 ca1a1af51296afdaca137114821508c5783f077090e665eae0f6df895855f57c43f84434706309e819417f5f35d1c649bd14e96dc9fbbb1252d30a4f9a223cf6 |
28 |
|
29 |
diff --git a/games-strategy/warzone2100/files/warzone2100-3.3.0_beta1-gettext_version.patch b/games-strategy/warzone2100/files/warzone2100-3.3.0_beta1-gettext_version.patch |
30 |
new file mode 100644 |
31 |
index 00000000000..2d4b6c50a48 |
32 |
--- /dev/null |
33 |
+++ b/games-strategy/warzone2100/files/warzone2100-3.3.0_beta1-gettext_version.patch |
34 |
@@ -0,0 +1,36 @@ |
35 |
+From 5539b080824bd4bcd0f212829012993ef193dc41 Mon Sep 17 00:00:00 2001 |
36 |
+From: Lars Wendler <polynomial-c@g.o> |
37 |
+Date: Thu, 1 Aug 2019 04:53:14 +0200 |
38 |
+Subject: [PATCH] configure.ac: Raise AM_GNU_GETTEXT_VERSION to 0.17 |
39 |
+ |
40 |
+the shipped copy of po/Makefile.in.in comes from gettext-0.17 and since |
41 |
+m4/po.m4 has been changed to use AC_PROG_MKDIR_P (Trac ticket #4701) |
42 |
+autopoint from gettext would produce a broken po/Makefile.in.in which has |
43 |
+no MKDIR_P definition. This again would result in "make install" throwing |
44 |
+the following error when invoking install-data-yes target in /po/ dir: |
45 |
+ |
46 |
+ make[1]: execvp: /usr/share: Permission denied |
47 |
+ |
48 |
+Raising AM_GNU_GETTEXT_VERSION fixes the described issue. |
49 |
+ |
50 |
+Signed-off-by: Lars Wendler <polynomial-c@g.o> |
51 |
+--- |
52 |
+ configure.ac | 2 +- |
53 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
54 |
+ |
55 |
+diff --git a/configure.ac b/configure.ac |
56 |
+index 7e9c31433..30a732447 100644 |
57 |
+--- a/configure.ac |
58 |
++++ b/configure.ac |
59 |
+@@ -71,7 +71,7 @@ AC_CHECK_HEADERS(alloca.h sys/ucontext.h) |
60 |
+ |
61 |
+ # Check for gettext |
62 |
+ AM_GNU_GETTEXT([external]) |
63 |
+-AM_GNU_GETTEXT_VERSION([0.15]) |
64 |
++AM_GNU_GETTEXT_VERSION([0.17]) |
65 |
+ |
66 |
+ # Check for pkg-config |
67 |
+ PKG_PROG_PKG_CONFIG |
68 |
+-- |
69 |
+2.22.0 |
70 |
+ |
71 |
|
72 |
diff --git a/games-strategy/warzone2100/warzone2100-3.3.0_beta1.ebuild b/games-strategy/warzone2100/warzone2100-3.3.0_beta1.ebuild |
73 |
new file mode 100644 |
74 |
index 00000000000..fddc0901378 |
75 |
--- /dev/null |
76 |
+++ b/games-strategy/warzone2100/warzone2100-3.3.0_beta1.ebuild |
77 |
@@ -0,0 +1,115 @@ |
78 |
+# Copyright 1999-2019 Gentoo Authors |
79 |
+# Distributed under the terms of the GNU General Public License v2 |
80 |
+ |
81 |
+EAPI=7 |
82 |
+inherit autotools toolchain-funcs xdg |
83 |
+ |
84 |
+MY_PV=$(ver_cut 1-2) |
85 |
+VIDEOS_PV=2.2 |
86 |
+VIDEOS_P=${PN}-videos-${VIDEOS_PV}.wz |
87 |
+DESCRIPTION="3D real-time strategy game" |
88 |
+HOMEPAGE="http://wz2100.net/" |
89 |
+SRC_URI="mirror://sourceforge/warzone2100/${P}.tar.xz |
90 |
+ videos? ( mirror://sourceforge/warzone2100/warzone2100/Videos/${VIDEOS_PV}/high-quality-en/sequences.wz -> ${VIDEOS_P} )" |
91 |
+ |
92 |
+LICENSE="GPL-2+ CC-BY-SA-3.0 public-domain" |
93 |
+SLOT="0" |
94 |
+#[[ "${PV}" == *_beta* ]] || \ |
95 |
+KEYWORDS="~amd64 ~x86" |
96 |
+# upstream requested debug support |
97 |
+IUSE="debug nls videos" |
98 |
+ |
99 |
+# TODO: unbundle miniupnpc and quesoglc |
100 |
+# quesoglc-0.7.2 is buggy: http://developer.wz2100.net/ticket/2828 |
101 |
+CDEPEND=" |
102 |
+ >=dev-games/physfs-2[zip] |
103 |
+ dev-libs/openssl:0= |
104 |
+ dev-qt/qtcore:5 |
105 |
+ dev-qt/qtgui:5 |
106 |
+ dev-qt/qtopengl:5 |
107 |
+ dev-qt/qtscript:5 |
108 |
+ dev-qt/qtwidgets:5 |
109 |
+ dev-qt/qtx11extras:5 |
110 |
+ media-libs/freetype:2 |
111 |
+ media-libs/glew:= |
112 |
+ media-libs/harfbuzz |
113 |
+ media-libs/libogg |
114 |
+ media-libs/libpng:0 |
115 |
+ media-libs/libsdl2[opengl,video,X] |
116 |
+ media-libs/libtheora |
117 |
+ media-libs/libvorbis |
118 |
+ media-libs/openal |
119 |
+ sys-libs/zlib |
120 |
+ virtual/glu |
121 |
+ virtual/opengl |
122 |
+ x11-libs/libX11 |
123 |
+ x11-libs/libXrandr |
124 |
+ nls? ( virtual/libintl ) |
125 |
+" |
126 |
+DEPEND=" |
127 |
+ ${CDEPEND} |
128 |
+ dev-libs/fribidi |
129 |
+ media-libs/fontconfig |
130 |
+" |
131 |
+RDEPEND=" |
132 |
+ ${CDEPEND} |
133 |
+ media-fonts/dejavu |
134 |
+" |
135 |
+BDEPEND=" |
136 |
+ app-arch/zip |
137 |
+ virtual/pkgconfig |
138 |
+ nls? ( sys-devel/gettext ) |
139 |
+" |
140 |
+ |
141 |
+S="${WORKDIR}/${PN}" |
142 |
+ |
143 |
+PATCHES=( |
144 |
+ "${FILESDIR}"/${PN}-3.3.0_beta1-gettext_version.patch |
145 |
+) |
146 |
+ |
147 |
+src_prepare() { |
148 |
+ default |
149 |
+ |
150 |
+ sed -i -e 's/#top_builddir/top_builddir/' po/Makevars || die |
151 |
+ sed '/appdata\.xml/d' -i icons/Makefile.am || die |
152 |
+ eautoreconf |
153 |
+} |
154 |
+ |
155 |
+src_configure() { |
156 |
+ local myeconfargs=( |
157 |
+ --localedir="${EPREFIX}"/usr/share/locale |
158 |
+ --with-distributor="Gentoo ${PF}" |
159 |
+ --with-icondir="${EPREFIX}"/usr/share/icons/hicolor/128x128/apps |
160 |
+ --with-applicationdir="${EPREFIX}"/usr/share/applications |
161 |
+ $(use_enable debug debug relaxed) |
162 |
+ $(use_enable nls) |
163 |
+ ) |
164 |
+ econf "${myeconfargs[@]}" |
165 |
+} |
166 |
+ |
167 |
+src_compile() { |
168 |
+ emake AR="$(tc-getAR)" |
169 |
+} |
170 |
+ |
171 |
+src_install() { |
172 |
+ local HTML_DOCS=( doc/quickstartguide.html ) |
173 |
+ default |
174 |
+ rm "${ED}"/usr/share/doc/${PF}/COPYING* || die |
175 |
+ if use videos ; then |
176 |
+ insinto /usr/share/${PN} |
177 |
+ newins "${DISTDIR}"/${VIDEOS_P} sequences.wz |
178 |
+ fi |
179 |
+ doman doc/warzone2100.6 |
180 |
+} |
181 |
+ |
182 |
+pkg_preinst() { |
183 |
+ xdg_pkg_preinst |
184 |
+} |
185 |
+ |
186 |
+pkg_postinst() { |
187 |
+ xdg_pkg_postinst |
188 |
+} |
189 |
+ |
190 |
+pkg_postrm() { |
191 |
+ xdg_pkg_postrm |
192 |
+} |