Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/commandergenius/files/, games-arcade/commandergenius/
Date: Mon, 30 Mar 2020 22:39:11
Message-Id: 1585607926.85c3414f25e0944e041379d55eb8507a1196f89b.chewi@gentoo
1 commit: 85c3414f25e0944e041379d55eb8507a1196f89b
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 30 22:38:46 2020 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 30 22:38:46 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85c3414f
7
8 games-arcade/commandergenius: Drop old 2.3.3
9
10 Package-Manager: Portage-2.3.96, Repoman-2.3.20
11 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
12
13 games-arcade/commandergenius/Manifest | 1 -
14 .../commandergenius/commandergenius-2.3.3.ebuild | 92 ---------------------
15 .../files/commandergenius-2.3.1-desktop.patch | 52 ------------
16 .../files/commandergenius-2.3.1-minizip.patch | 93 ----------------------
17 4 files changed, 238 deletions(-)
18
19 diff --git a/games-arcade/commandergenius/Manifest b/games-arcade/commandergenius/Manifest
20 index 67267068a0c..8161b076039 100644
21 --- a/games-arcade/commandergenius/Manifest
22 +++ b/games-arcade/commandergenius/Manifest
23 @@ -1,2 +1 @@
24 -DIST Commander-Genius-v2.3.3.tar.bz2 63885924 BLAKE2B a072f922bac6f76e615bbb602c1b5ac4fca634a90bdead461d666da0d70ad5ddd6865504c84a09905bb313728b840df973ae006d120ae01d8c8f8a7bd4a10abe SHA512 f64f24b01cd0921570f633913c8a3b1b50537596b2c46377862a913e36c74934521c1c55fca676b78674c669d475d9c2c2c09ac4a22ebdad1826508e6b9598b6
25 DIST Commander-Genius-v2.4.0.tar.bz2 62351265 BLAKE2B 0a3338bee2e494f415ce5072978f050766fff16e5df5e7b27824fb4d4c699d2e5a690924f339189325383bee273cbfa5424f43aa9dc87ae4abf63c7cbf1ea6cd SHA512 76eda96fade00d164d3ea5b95acadfb28a3b24864a5ce3f2c9317837a1027cd8d0282a474b8d25bacc26008a26a6adc5062ee655f9abd350d44db58aa70d3b3b
26
27 diff --git a/games-arcade/commandergenius/commandergenius-2.3.3.ebuild b/games-arcade/commandergenius/commandergenius-2.3.3.ebuild
28 deleted file mode 100644
29 index 9a139cff2fa..00000000000
30 --- a/games-arcade/commandergenius/commandergenius-2.3.3.ebuild
31 +++ /dev/null
32 @@ -1,92 +0,0 @@
33 -# Copyright 1999-2020 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -PYTHON_COMPAT=( python3_{6,7} )
39 -
40 -inherit cmake desktop python-single-r1 xdg-utils
41 -
42 -MY_PN="Commander-Genius"
43 -MY_P="${MY_PN}-v${PV}"
44 -DESCRIPTION="Open Source Commander Keen clone (needs original game files)"
45 -HOMEPAGE="http://clonekeenplus.sourceforge.net"
46 -SRC_URI="https://gitlab.com/Dringgstein/${MY_PN}/-/archive/v${PV}/${MY_P}.tar.bz2"
47 -
48 -LICENSE="GPL-2"
49 -SLOT="0"
50 -KEYWORDS="~amd64 ~x86"
51 -IUSE="+downloader opengl +python"
52 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
53 -RESTRICT="mirror" # contains keen files, but we do not install them
54 -
55 -RDEPEND="media-libs/libsdl2[opengl?,video]
56 - media-libs/sdl2-image
57 - media-libs/sdl2-mixer[vorbis]
58 - sys-libs/zlib[minizip]
59 - downloader? ( net-misc/curl )
60 - opengl? ( virtual/opengl )
61 - python? ( ${PYTHON_DEPS} )"
62 -
63 -DEPEND="${RDEPEND}
64 - dev-libs/boost"
65 -
66 -BDEPEND="virtual/pkgconfig"
67 -
68 -PATCHES=(
69 - "${FILESDIR}"/${PN}-2.3.1-minizip.patch
70 - "${FILESDIR}"/${PN}-2.3.1-desktop.patch
71 - "${FILESDIR}"/${PN}-2.3.1-build.patch
72 - "${FILESDIR}"/${PN}-2.3.1-paths.patch
73 -)
74 -
75 -S="${WORKDIR}/${MY_P}"
76 -
77 -SHAREDIR="/usr/share"
78 -GAMESDIR="${SHAREDIR}/${PN}/games"
79 -DOCS=()
80 -
81 -src_configure() {
82 - local mycmakeargs=(
83 - -DAPPDIR="${EPREFIX}/usr/bin"
84 - -DGAMES_SHAREDIR="${EPREFIX}${SHAREDIR}"
85 - -DDOCDIR="${EPREFIX}/usr/share/doc/${PF}"
86 - -DDOWNLOADER=$(usex downloader)
87 - -DOPENGL=$(usex opengl)
88 - -DUSE_PYTHON3=$(usex python)
89 - -DUSE_SDL2=ON
90 - -DBUILD_SHARED_LIBS=OFF
91 - )
92 -
93 - cmake_src_configure
94 -}
95 -
96 -src_install() {
97 - cmake_src_install
98 -
99 - # The normal executable name is weird.
100 - dosym CGeniusExe /usr/bin/${PN}
101 -
102 - # Game data can be manually installed here.
103 - keepdir "${GAMESDIR}"
104 -}
105 -
106 -pkg_postinst() {
107 - xdg_icon_cache_update
108 -
109 - elog "Run ${PN} to start the game. It will search for game data"
110 - elog "in ~/.CommanderGenius/games and ${EPREFIX}${GAMESDIR}."
111 - elog "You can also specify paths in cgenius.cfg or pass paths as an"
112 - elog "argument."
113 - elog
114 - use downloader && elog "Data for some games can be downloaded from the menu."
115 - elog
116 - elog "Check your settings in ~/.CommanderGenius/cgenius.cfg after you have"
117 - elog "started the game for the first time."
118 - elog
119 - use opengl && elog "You may also want to set \"OpenGL = true\"."
120 -}
121 -
122 -pkg_postrm() {
123 - xdg_icon_cache_update
124 -}
125
126 diff --git a/games-arcade/commandergenius/files/commandergenius-2.3.1-desktop.patch b/games-arcade/commandergenius/files/commandergenius-2.3.1-desktop.patch
127 deleted file mode 100644
128 index 4d2c246e5b7..00000000000
129 --- a/games-arcade/commandergenius/files/commandergenius-2.3.1-desktop.patch
130 +++ /dev/null
131 @@ -1,52 +0,0 @@
132 -From 84243052d0b9409b4d5b28e751e598287b00bab9 Mon Sep 17 00:00:00 2001
133 -From: James Le Cuirot <chewi@g.o>
134 -Date: Sun, 24 Feb 2019 21:26:38 +0000
135 -Subject: [PATCH 1/2] Remove deprecated "Application" entry from desktop
136 - categories
137 -
138 -The desktop-file-validate tool says it is deprecated.
139 ----
140 - share/cgenius.desktop | 2 +-
141 - 1 file changed, 1 insertion(+), 1 deletion(-)
142 -
143 -diff --git a/share/cgenius.desktop b/share/cgenius.desktop
144 -index 8d0771522..b7b39ffef 100644
145 ---- a/share/cgenius.desktop
146 -+++ b/share/cgenius.desktop
147 -@@ -6,4 +6,4 @@ Icon=/usr/share/icons/hicolor/512x512/apps/CGLogo.png
148 - Terminal=false
149 - Type=Application
150 - StartupNotify=true
151 --Categories=Application;Game;ArcadeGame;
152 -+Categories=Game;ArcadeGame;
153 ---
154 -2.20.1
155 -
156 -From e9d6157210015b4aa5efcb9ba0c57842ae4ef266 Mon Sep 17 00:00:00 2001
157 -From: James Le Cuirot <chewi@g.o>
158 -Date: Sun, 24 Feb 2019 21:31:28 +0000
159 -Subject: [PATCH 2/2] Remove unnecessary absolute icon path from desktop entry
160 -
161 -We should not assume that the game has been installed to /usr and
162 -there is no need to specify an absolute path for the icon anyway as
163 -the standard says that bare icon names should be looked up.
164 ----
165 - share/cgenius.desktop | 2 +-
166 - 1 file changed, 1 insertion(+), 1 deletion(-)
167 -
168 -diff --git a/share/cgenius.desktop b/share/cgenius.desktop
169 -index b7b39ffef..9b09ec9fc 100644
170 ---- a/share/cgenius.desktop
171 -+++ b/share/cgenius.desktop
172 -@@ -2,7 +2,7 @@
173 - Name=Commander Genius
174 - Comment=Play natively Commander Keen Games
175 - Exec=CGeniusExe
176 --Icon=/usr/share/icons/hicolor/512x512/apps/CGLogo.png
177 -+Icon=CGLogo
178 - Terminal=false
179 - Type=Application
180 - StartupNotify=true
181 ---
182 -2.20.1
183 -
184
185 diff --git a/games-arcade/commandergenius/files/commandergenius-2.3.1-minizip.patch b/games-arcade/commandergenius/files/commandergenius-2.3.1-minizip.patch
186 deleted file mode 100644
187 index ca2553b5f7d..00000000000
188 --- a/games-arcade/commandergenius/files/commandergenius-2.3.1-minizip.patch
189 +++ /dev/null
190 @@ -1,93 +0,0 @@
191 -From 04f776e73248d19d9beaf4ea8d407b7c85ecc9c9 Mon Sep 17 00:00:00 2001
192 -From: James Le Cuirot <chewi@g.o>
193 -Date: Sun, 24 Feb 2019 20:25:34 +0000
194 -Subject: [PATCH] Allow use of external minizip library instead of linking just
195 - zlib
196 -
197 -Some distributions package the minizip part of zlib, as well as zlib
198 -itself, so allow that to be used with help from pkg-config.
199 ----
200 - src/engine/unzip/CMakeLists.txt | 42 +++++++++++++++++++++------------
201 - src/engine/unzip/miniunz.c | 4 ++--
202 - 2 files changed, 29 insertions(+), 17 deletions(-)
203 -
204 -diff --git a/src/engine/unzip/CMakeLists.txt b/src/engine/unzip/CMakeLists.txt
205 -index 5f2b8a959..24833abb7 100644
206 ---- a/src/engine/unzip/CMakeLists.txt
207 -+++ b/src/engine/unzip/CMakeLists.txt
208 -@@ -1,23 +1,35 @@
209 --find_package( ZLIB REQUIRED )
210 --if ( ZLIB_FOUND )
211 -- include_directories( ${ZLIB_INCLUDE_DIRS} )
212 --else ( ZLIB_FOUND )
213 -- Message(FATAL_ERROR "Zlib development packages not found!")
214 --endif( ZLIB_FOUND )
215 -+find_package(PkgConfig)
216 -
217 -+if ( PKGCONFIG_FOUND )
218 -+ pkg_check_modules(ZLIB minizip)
219 -+else ( PKGCONFIG_FOUND )
220 -+ unset(ZLIB_FOUND)
221 -+endif ( PKGCONFIG_FOUND )
222 -
223 -+if ( ZLIB_FOUND )
224 -+ set(CXXSRC miniunz.c)
225 -+ unset(HSRC)
226 -+else ( ZLIB_FOUND )
227 -+ find_package(ZLIB REQUIRED)
228 -+ include_directories( ${CMAKE_CURRENT_SOURCE_DIR} )
229 -
230 -+ set(CXXSRC
231 -+ miniunz.c
232 -+ ioapi.c
233 -+ iowin32.c
234 -+ unzip.c)
235 -
236 --set(CXXSRC
237 -- miniunz.c
238 -- ioapi.c
239 -- iowin32.c
240 -- unzip.c)
241 -+ set(HSRC
242 -+ ioapi.h
243 -+ iowin32.h
244 -+ unzip.h)
245 -+endif ( ZLIB_FOUND )
246 -
247 --set(HSRC
248 -- ioapi.h
249 -- iowin32.h
250 -- unzip.h)
251 -+if ( ZLIB_FOUND )
252 -+ include_directories( ${ZLIB_INCLUDE_DIRS} )
253 -+else ( ZLIB_FOUND )
254 -+ Message(FATAL_ERROR "Zlib development packages not found!")
255 -+endif( ZLIB_FOUND )
256 -
257 - add_library(unzip ${CXXSRC} ${HSRC})
258 -
259 -diff --git a/src/engine/unzip/miniunz.c b/src/engine/unzip/miniunz.c
260 -index 694aa8e60..0f289c96c 100644
261 ---- a/src/engine/unzip/miniunz.c
262 -+++ b/src/engine/unzip/miniunz.c
263 -@@ -56,7 +56,7 @@
264 - #endif
265 -
266 -
267 --#include "unzip.h"
268 -+#include <unzip.h>
269 -
270 - #define CASESENSITIVITY (0)
271 - #define WRITEBUFFERSIZE (8192)
272 -@@ -64,7 +64,7 @@
273 -
274 - #ifdef _WIN32
275 - #define USEWIN32IOAPI
276 --#include "iowin32.h"
277 -+#include <iowin32.h>
278 - #endif
279 - /*
280 - mini unzip, demo of unzip package
281 ---
282 -2.20.1
283 -