summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2021-09-28 11:46:37 -0400
committerIonen Wolkens <ionen@gentoo.org>2021-09-28 14:37:50 -0400
commita84d571280f3658821ae3bacc40095de1670ea0e (patch)
treee8363d915d6bb4442272ad86ed1d486f0f591e9e /games-rpg
parentx11-misc/unclutter-xfixes: drop 1.5-r2 (diff)
downloadgentoo-a84d571280f3658821ae3bacc40095de1670ea0e.tar.gz
gentoo-a84d571280f3658821ae3bacc40095de1670ea0e.tar.bz2
gentoo-a84d571280f3658821ae3bacc40095de1670ea0e.zip
games-rpg/sumwars: EAPI7->8, fix MisplacedEclassVar, tighten deps
* add required [truetype] to cegui * depend on freeimage to ensure [jpeg,png] (used through ogre) * use sourceforge as HOMEPAGE, old is redirecting to an unrelated page * cleanup cmake path options, defaults accomplish the same and changes were formerly intended to support games.eclass * remove lua patch, can be handled through cmake variables * make IUSE=tools non-default, it's primarily for content authors and being disabled allows to skip boost rebuilds This game has a tendency to randomly crash while upstream and the short lived fork are dead, unsure how worth it is to keep/maintain. Closes: https://bugs.gentoo.org/815232 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/sumwars/sumwars-0.5.8-r101.ebuild70
1 files changed, 70 insertions, 0 deletions
diff --git a/games-rpg/sumwars/sumwars-0.5.8-r101.ebuild b/games-rpg/sumwars/sumwars-0.5.8-r101.ebuild
new file mode 100644
index 000000000000..c77b37294846
--- /dev/null
+++ b/games-rpg/sumwars/sumwars-0.5.8-r101.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CMAKE_REMOVE_MODULES_LIST=( FindLua{,51} )
+LUA_COMPAT=( lua5-1 )
+inherit cmake desktop flag-o-matic lua-single
+
+MY_L10N=( de en it pl pt ru uk )
+
+DESCRIPTION="Multi-player, 3D action role-playing game"
+HOMEPAGE="https://sourceforge.net/projects/sumwars/"
+SRC_URI="mirror://sourceforge/sumwars/${P/_/-}-src.tar.bz2"
+
+LICENSE="GPL-3 CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug tools ${MY_L10N[*]/#/l10n_}"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+DEPEND="
+ ${LUA_DEPS}
+ dev-games/cegui[ogre,truetype]
+ dev-games/ogre:=[freeimage,opengl]
+ dev-games/ois
+ dev-games/physfs
+ dev-libs/tinyxml
+ media-libs/freealut
+ media-libs/libvorbis
+ media-libs/openal
+ net-libs/enet:1.3=
+ x11-libs/libX11
+ x11-libs/libXrandr
+ tools? ( dev-libs/boost:= )"
+RDEPEND="
+ ${DEPEND}
+ media-libs/freeimage[jpeg,png]"
+
+src_configure() {
+ append-flags -fno-strict-aliasing
+
+ local l langs=
+ for l in "${MY_L10N[@]}"; do
+ use l10n_${l} && langs+="${l} "
+ done
+
+ use debug && CMAKE_BUILD_TYPE=Debug
+
+ local mycmakeargs=(
+ -DLua_FIND_VERSION_MAJOR=$(ver_cut 1 $(lua_get_version))
+ -DLua_FIND_VERSION_MINOR=$(ver_cut 2 $(lua_get_version))
+ -DLua_FIND_VERSION_COUNT=2
+ -DLua_FIND_VERSION_EXACT=ON
+ -DSUMWARS_BUILD_TOOLS=$(usex tools)
+ -DSUMWARS_DOC_DIR="${EPREFIX}"/usr/share/doc/${PF}
+ -DSUMWARS_LANGUAGES="${langs:-en}"
+ -DSUMWARS_NO_ENET=ON
+ -DSUMWARS_NO_TINYXML=ON
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ newicon share/icon/SumWarsIcon_128x128.png ${PN}.png
+ make_desktop_entry ${PN} "Summoning Wars"
+}