Gentoo Archives: gentoo-commits

From: "Azamat H. Hackimov" <winterheart@××××××.ru>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-engines/fifengine/, games-engines/fifengine/files/
Date: Wed, 04 Mar 2020 00:08:39
Message-Id: 1583278452.d01094fc35e9f4d71395186162f4ae99950687e1.winterheart@gentoo
1 commit: d01094fc35e9f4d71395186162f4ae99950687e1
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Tue Mar 3 23:34:12 2020 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Tue Mar 3 23:34:12 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=d01094fc
7
8 games-engines/fifengine: update package
9
10 Fixes Python dependencies, update to 0.4.2
11
12 Package-Manager: Portage-2.3.89, Repoman-2.3.20
13 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
14
15 ...fengine-0.4.1.ebuild => fifengine-0.4.2.ebuild} | 37 ++++------
16 games-engines/fifengine/fifengine-9999.ebuild | 81 ----------------------
17 ...patch => fifengine-0.4.2-unbundle-libpng.patch} | 0
18 .../files/fifengine-9999-unbundle-libpng.patch | 25 -------
19 games-engines/fifengine/metadata.xml | 7 +-
20 5 files changed, 21 insertions(+), 129 deletions(-)
21
22 diff --git a/games-engines/fifengine/fifengine-0.4.1.ebuild b/games-engines/fifengine/fifengine-0.4.2.ebuild
23 similarity index 62%
24 rename from games-engines/fifengine/fifengine-0.4.1.ebuild
25 rename to games-engines/fifengine/fifengine-0.4.2.ebuild
26 index f48afad..d9c9a6d 100644
27 --- a/games-engines/fifengine/fifengine-0.4.1.ebuild
28 +++ b/games-engines/fifengine/fifengine-0.4.2.ebuild
29 @@ -1,11 +1,9 @@
30 -# Copyright 1999-2017 Gentoo Foundation
31 +# Copyright 1999-2020 Gentoo Authors
32 # Distributed under the terms of the GNU General Public License v2
33
34 -EAPI=6
35 +EAPI=7
36
37 -#PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5}} )
38 -# py3 is not yet tested by upstream -> not merged in master
39 -PYTHON_COMPAT=( pypy python2_7 )
40 +PYTHON_COMPAT=( python3_{7,8} )
41
42 inherit eutils python-single-r1 cmake-utils
43
44 @@ -15,12 +13,11 @@ SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
45
46 LICENSE="GPL-2"
47
48 -KEYWORDS=""
49 +KEYWORDS="~amd64 ~x86"
50 SLOT="0"
51 -IUSE="debug +log +opengl +zip +fifechan librocket cegui python"
52 +IUSE="debug +log +opengl +zip +fifechan cegui python"
53
54 RDEPEND="
55 - librocket? ( dev-libs/libRocket )
56 cegui? ( dev-games/cegui )
57 fifechan? ( games-engines/fifechan )
58 dev-libs/tinyxml
59 @@ -39,7 +36,7 @@ RDEPEND="
60 virtual/opengl
61 virtual/glu
62 python? (
63 - dev-python/pyyaml[${PYTHON_USEDEP}]
64 + dev-python/pyyaml
65 ${PYTHON_DEPS}
66 )
67 "
68 @@ -50,26 +47,22 @@ DEPEND="
69
70 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
71
72 -
73 -usx() { usex $* ON OFF; }
74 +PATCHES=(
75 + "${FILESDIR}/${P}-unbundle-libpng.patch"
76 +)
77
78 pkg_setup() {
79 use python && python-single-r1_pkg_setup
80 }
81
82 -src_prepare() {
83 - epatch "${FILESDIR}/${P}-unbundle-libpng.patch"
84 - default
85 -}
86 -
87 src_configure() {
88 local mycmakeargs=(
89 - -Dopengl=$(usx opengl)
90 - -Dfifechan=$(usx fifechan)
91 - -Dlibrocket=$(usx librocket)
92 - -Dcegui=$(usx cegui)
93 - -Dlogging=$(usx log)
94 - -Dbuild-python=$(usx python)
95 + -Dopengl=$(usex opengl)
96 + -Dfifechan=$(usex fifechan)
97 + -Dlibrocket=OFF
98 + -Dcegui=$(usex cegui)
99 + -Dlogging=$(usex log)
100 + -Dbuild-python=$(usex python)
101 -Dbuild-library=ON
102 )
103
104
105 diff --git a/games-engines/fifengine/fifengine-9999.ebuild b/games-engines/fifengine/fifengine-9999.ebuild
106 deleted file mode 100644
107 index 5923bd6..0000000
108 --- a/games-engines/fifengine/fifengine-9999.ebuild
109 +++ /dev/null
110 @@ -1,81 +0,0 @@
111 -# Copyright 1999-2017 Gentoo Foundation
112 -# Distributed under the terms of the GNU General Public License v2
113 -
114 -EAPI=6
115 -
116 -#PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5}} )
117 -# py3 is not yet tested by upstream -> not merged in master
118 -PYTHON_COMPAT=( pypy python2_7 )
119 -
120 -inherit eutils python-single-r1 cmake-utils git-r3
121 -
122 -DESCRIPTION="Flexible Isometric Free Engine, 2D"
123 -HOMEPAGE="http://fifengine.de"
124 -EGIT_REPO_URI="https://github.com/${PN}/${PN}"
125 -
126 -LICENSE="GPL-2"
127 -
128 -KEYWORDS=""
129 -SLOT="0"
130 -IUSE="debug +log +opengl +zip +fifechan librocket cegui python"
131 -
132 -RDEPEND="
133 - librocket? ( dev-libs/libRocket )
134 - cegui? ( dev-games/cegui )
135 - fifechan? ( games-engines/fifechan )
136 - dev-libs/tinyxml
137 - media-libs/libpng
138 - media-libs/mesa
139 - >=dev-libs/boost-1.33.1
140 - media-libs/libsdl2
141 - media-libs/sdl2-ttf
142 - media-libs/sdl2-image[png]
143 - media-libs/libvorbis
144 - media-libs/libogg
145 - media-libs/openal
146 - >=sys-libs/zlib-1.2
147 - x11-libs/libXcursor
148 - x11-libs/libXext
149 - virtual/opengl
150 - virtual/glu
151 - python? (
152 - dev-python/pyyaml[${PYTHON_USEDEP}]
153 - ${PYTHON_DEPS}
154 - )
155 -"
156 -DEPEND="
157 - ${RDEPEND}
158 - python? ( >=dev-lang/swig-1.3.40 )
159 -"
160 -
161 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
162 -
163 -
164 -usx() { usex $* ON OFF; }
165 -
166 -pkg_setup() {
167 - use python && python-single-r1_pkg_setup
168 -}
169 -
170 -src_prepare() {
171 - epatch "${FILESDIR}/${P}-unbundle-libpng.patch"
172 - default
173 -}
174 -
175 -src_configure() {
176 - local mycmakeargs=(
177 - -Dopengl=$(usx opengl)
178 - -Dfifechan=$(usx fifechan)
179 - -Dlibrocket=$(usx librocket)
180 - -Dcegui=$(usx cegui)
181 - -Dlogging=$(usx log)
182 - -Dbuild-python=$(usx python)
183 - -Dbuild-library=ON
184 - )
185 -
186 - cmake-utils_src_configure
187 -}
188 -
189 -src_install() {
190 - cmake-utils_src_install
191 -}
192
193 diff --git a/games-engines/fifengine/files/fifengine-0.4.1-unbundle-libpng.patch b/games-engines/fifengine/files/fifengine-0.4.2-unbundle-libpng.patch
194 similarity index 100%
195 rename from games-engines/fifengine/files/fifengine-0.4.1-unbundle-libpng.patch
196 rename to games-engines/fifengine/files/fifengine-0.4.2-unbundle-libpng.patch
197
198 diff --git a/games-engines/fifengine/files/fifengine-9999-unbundle-libpng.patch b/games-engines/fifengine/files/fifengine-9999-unbundle-libpng.patch
199 deleted file mode 100644
200 index 9509211..0000000
201 --- a/games-engines/fifengine/files/fifengine-9999-unbundle-libpng.patch
202 +++ /dev/null
203 @@ -1,25 +0,0 @@
204 -Index: image.h
205 -===================================================================
206 ---- a/engine/core/video/image.h (revision 3239)
207 -+++ b/engine/core/video/image.h (working copy)
208 -@@ -27,8 +27,6 @@
209 -
210 - // 3rd party library includes
211 - #include <SDL.h>
212 --#define PNG_SKIP_SETJMP_CHECK
213 --#include <png.h>
214 -
215 - // FIFE includes
216 - // These includes are split up in two parts, separated by one empty line
217 -Index: image.cpp
218 -===================================================================
219 ---- a/engine/core/video/image.cpp (revision 3239)
220 -+++ b/engine/core/video/image.cpp (working copy)
221 -@@ -25,6 +25,7 @@
222 -
223 - // 3rd party library includes
224 - #include <SDL.h>
225 -+#include <png.h>
226 -
227 - // FIFE includes
228 - // These includes are split up in two parts, separated by one empty line
229
230 diff --git a/games-engines/fifengine/metadata.xml b/games-engines/fifengine/metadata.xml
231 index eb2356d..c0bc2a6 100644
232 --- a/games-engines/fifengine/metadata.xml
233 +++ b/games-engines/fifengine/metadata.xml
234 @@ -1,8 +1,13 @@
235 <?xml version="1.0" encoding="UTF-8"?>
236 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
237 <pkgmetadata>
238 -<maintainer>
239 +<maintainer type="person">
240 <email>krytzz@×××××××.eu</email>
241 <name>steffen stramm</name>
242 </maintainer>
243 +<use>
244 +<flag name="cegui">Enable cegui support</flag>
245 +<flag name="fifechan">Enable Fifechan GUI subsystem</flag>
246 +<flag name="log">Enable logging</flag>
247 +</use>
248 </pkgmetadata>