1 |
commit: a84d571280f3658821ae3bacc40095de1670ea0e |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 28 15:46:37 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 28 18:37:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a84d5712 |
7 |
|
8 |
games-rpg/sumwars: EAPI7->8, fix MisplacedEclassVar, tighten deps |
9 |
|
10 |
* add required [truetype] to cegui |
11 |
* depend on freeimage to ensure [jpeg,png] (used through ogre) |
12 |
* use sourceforge as HOMEPAGE, old is redirecting to an unrelated page |
13 |
* cleanup cmake path options, defaults accomplish the same and |
14 |
changes were formerly intended to support games.eclass |
15 |
* remove lua patch, can be handled through cmake variables |
16 |
* make IUSE=tools non-default, it's primarily for content authors |
17 |
and being disabled allows to skip boost rebuilds |
18 |
|
19 |
This game has a tendency to randomly crash while upstream and the |
20 |
short lived fork are dead, unsure how worth it is to keep/maintain. |
21 |
|
22 |
Closes: https://bugs.gentoo.org/815232 |
23 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
24 |
|
25 |
games-rpg/sumwars/sumwars-0.5.8-r101.ebuild | 70 +++++++++++++++++++++++++++++ |
26 |
1 file changed, 70 insertions(+) |
27 |
|
28 |
diff --git a/games-rpg/sumwars/sumwars-0.5.8-r101.ebuild b/games-rpg/sumwars/sumwars-0.5.8-r101.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..c77b3729484 |
31 |
--- /dev/null |
32 |
+++ b/games-rpg/sumwars/sumwars-0.5.8-r101.ebuild |
33 |
@@ -0,0 +1,70 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+CMAKE_REMOVE_MODULES_LIST=( FindLua{,51} ) |
40 |
+LUA_COMPAT=( lua5-1 ) |
41 |
+inherit cmake desktop flag-o-matic lua-single |
42 |
+ |
43 |
+MY_L10N=( de en it pl pt ru uk ) |
44 |
+ |
45 |
+DESCRIPTION="Multi-player, 3D action role-playing game" |
46 |
+HOMEPAGE="https://sourceforge.net/projects/sumwars/" |
47 |
+SRC_URI="mirror://sourceforge/sumwars/${P/_/-}-src.tar.bz2" |
48 |
+ |
49 |
+LICENSE="GPL-3 CC-BY-SA-3.0" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+IUSE="debug tools ${MY_L10N[*]/#/l10n_}" |
53 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
54 |
+ |
55 |
+DEPEND=" |
56 |
+ ${LUA_DEPS} |
57 |
+ dev-games/cegui[ogre,truetype] |
58 |
+ dev-games/ogre:=[freeimage,opengl] |
59 |
+ dev-games/ois |
60 |
+ dev-games/physfs |
61 |
+ dev-libs/tinyxml |
62 |
+ media-libs/freealut |
63 |
+ media-libs/libvorbis |
64 |
+ media-libs/openal |
65 |
+ net-libs/enet:1.3= |
66 |
+ x11-libs/libX11 |
67 |
+ x11-libs/libXrandr |
68 |
+ tools? ( dev-libs/boost:= )" |
69 |
+RDEPEND=" |
70 |
+ ${DEPEND} |
71 |
+ media-libs/freeimage[jpeg,png]" |
72 |
+ |
73 |
+src_configure() { |
74 |
+ append-flags -fno-strict-aliasing |
75 |
+ |
76 |
+ local l langs= |
77 |
+ for l in "${MY_L10N[@]}"; do |
78 |
+ use l10n_${l} && langs+="${l} " |
79 |
+ done |
80 |
+ |
81 |
+ use debug && CMAKE_BUILD_TYPE=Debug |
82 |
+ |
83 |
+ local mycmakeargs=( |
84 |
+ -DLua_FIND_VERSION_MAJOR=$(ver_cut 1 $(lua_get_version)) |
85 |
+ -DLua_FIND_VERSION_MINOR=$(ver_cut 2 $(lua_get_version)) |
86 |
+ -DLua_FIND_VERSION_COUNT=2 |
87 |
+ -DLua_FIND_VERSION_EXACT=ON |
88 |
+ -DSUMWARS_BUILD_TOOLS=$(usex tools) |
89 |
+ -DSUMWARS_DOC_DIR="${EPREFIX}"/usr/share/doc/${PF} |
90 |
+ -DSUMWARS_LANGUAGES="${langs:-en}" |
91 |
+ -DSUMWARS_NO_ENET=ON |
92 |
+ -DSUMWARS_NO_TINYXML=ON |
93 |
+ ) |
94 |
+ |
95 |
+ cmake_src_configure |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ cmake_src_install |
100 |
+ |
101 |
+ newicon share/icon/SumWarsIcon_128x128.png ${PN}.png |
102 |
+ make_desktop_entry ${PN} "Summoning Wars" |
103 |
+} |