summaryrefslogtreecommitdiff
path: root/games-rpg/sumwars
diff options
context:
space:
mode:
Diffstat (limited to 'games-rpg/sumwars')
-rw-r--r--games-rpg/sumwars/Manifest2
-rw-r--r--games-rpg/sumwars/files/sumwars-0.5.8-cmake_lua_version.patch11
-rw-r--r--games-rpg/sumwars/sumwars-0.5.8-r100.ebuild101
3 files changed, 114 insertions, 0 deletions
diff --git a/games-rpg/sumwars/Manifest b/games-rpg/sumwars/Manifest
index e2ea4f79992a..4cb596ae9f3c 100644
--- a/games-rpg/sumwars/Manifest
+++ b/games-rpg/sumwars/Manifest
@@ -1,3 +1,5 @@
+AUX sumwars-0.5.8-cmake_lua_version.patch 286 BLAKE2B abe2013a9e0928cac9625719014eeb3cae3592938fc16930c73d6ffebf188c1b4120abc51d9c0a77896479384e9153cceb25ff87b30390873690b7d23b71b975 SHA512 5962aa04b8c296b30248de424375107274119971e9db3020d0b66f121b36cb65f840423a097839674311ffa986d73a93e735c6e4fb592a971c6eec890c9e4af1
DIST sumwars-0.5.8-src.tar.bz2 107811288 BLAKE2B d7eef29ae9ba91d7a368730169d49c4b84e5db5cdbd4be7aa183e91baa50fd45be2b91928903e9cb17d947c2a4947094138c65efe076cdc85f14fbfacadddbd1 SHA512 ccf156f4484b0aeb8984631321d6691dc180ad63fdfa59d92aaa05ada3e871fc10656f32f9ba1b65abe7342e1481e14ca01f025ffc0ec5797cd8e91d97240cf1
EBUILD sumwars-0.5.8-r1.ebuild 1917 BLAKE2B 270f82d9eb275df0f211ffdf752e8278190d37a1f9b5954406d2e33c094e6fd684f6a4f9be68b7f9ad17d570f95a12bf0c636a72a45aa0730ad06a354c0bda18 SHA512 35ec46e0888370d1d896c154089e9d65dba0a86ff81decbc6dc2bb6c0478b1bc6b45e2062586d3b272ad7d20a2925189755a0ffe64ba708182a98fa93224eb73
+EBUILD sumwars-0.5.8-r100.ebuild 2053 BLAKE2B 290340af0e0a176c5f20ccd4a7be053a1cc849c1f4567691fe13f5704c7babfc8fbe8292f399e2c57c61b78d4f3f1f8ef8a1e39b006912be9bc7295f7e0b4111 SHA512 a856057bdbbb59b88a7099961ebe7a65e129533c303945bf7e7759c5e025b36732317a472ea51d76e170c9f66f490af47f41110c5c56f3dbd6e01e8d97e2c899
MISC metadata.xml 521 BLAKE2B 773a7729ffb1deb23e15e7ad061596099bfce5e590fd6a4dd04014527df7ab7a91384b86429221960e54331ab094472277e0f23a9ea8e61f1b02a869437a57a7 SHA512 8ff8a6777a1d50900f210f97c22a80c68491d452c550550578cd0481653d4dbc52e3e88ae40dfcd547c62f0f43ad15c5d766330522e04a096c59a93265a470c0
diff --git a/games-rpg/sumwars/files/sumwars-0.5.8-cmake_lua_version.patch b/games-rpg/sumwars/files/sumwars-0.5.8-cmake_lua_version.patch
new file mode 100644
index 000000000000..eed17e93dcd5
--- /dev/null
+++ b/games-rpg/sumwars/files/sumwars-0.5.8-cmake_lua_version.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -179,7 +179,7 @@
+ FIND_PACKAGE(GNUWIN REQUIRED)
+ ENDIF (WIN32)
+ FIND_PACKAGE(OIS REQUIRED)
+-FIND_PACKAGE(Lua REQUIRED)
++FIND_PACKAGE(Lua ${LUA_VERSION} EXACT REQUIRED)
+ FIND_PACKAGE(CEGUI REQUIRED)
+ SET(CEGUI_VERSION_RESOURCES "gui_0.8")
+
diff --git a/games-rpg/sumwars/sumwars-0.5.8-r100.ebuild b/games-rpg/sumwars/sumwars-0.5.8-r100.ebuild
new file mode 100644
index 000000000000..f6f1badd5aec
--- /dev/null
+++ b/games-rpg/sumwars/sumwars-0.5.8-r100.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..2} )
+
+inherit cmake desktop flag-o-matic lua-single xdg-utils
+
+DESCRIPTION="a multi-player, 3D action role-playing game"
+HOMEPAGE="http://sumwars.org"
+SRC_URI="mirror://sourceforge/sumwars/${P//_/-}-src.tar.bz2"
+
+LICENSE="GPL-3 CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+tools debug"
+
+LANGS="de en it pl pt ru uk"
+for L in ${LANGS} ; do
+ IUSE="${IUSE} l10n_${L}"
+done
+unset L
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+RDEPEND="${LUA_DEPS}
+ >=dev-games/cegui-0.8[ogre]
+ >=dev-games/ogre-1.7.4-r1[freeimage,opengl]
+ dev-games/ois
+ dev-games/physfs
+ >=dev-libs/tinyxml-2.6.2-r2
+ media-libs/freealut
+ media-libs/openal
+ media-libs/libogg
+ media-libs/libvorbis
+ >=net-libs/enet-1.3.0
+ x11-libs/libX11
+ x11-libs/libXrandr
+ tools? ( dev-libs/boost )"
+DEPEND=${RDEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.5.8-cmake_lua_version.patch
+)
+CMAKE_REMOVE_MODULES_LIST="FindLua FindLua51"
+
+S=${WORKDIR}/${PN}-${PV%_*}
+
+src_configure() {
+ # QA
+ append-flags -fno-strict-aliasing
+
+ use debug && CMAKE_BUILD_TYPE=Debug
+
+ local l langs
+ for l in ${LANGS}; do
+ if use l10n_${l}; then
+ langs="${langs} ${l}"
+ fi
+ done
+
+ [[ -z "${langs}" ]] && langs="en"
+
+ # configure sumwars with cmake
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX=""
+ -DLUA_VERSION="$(lua_get_version)"
+ -DSUMWARS_BUILD_TOOLS="$(usex tools)"
+ -DSUMWARS_DOC_DIR="/usr/share/doc/${PF}"
+ -DSUMWARS_EXECUTABLE_DIR="/usr/bin"
+ -DSUMWARS_LANGUAGES="${langs}"
+ -DSUMWARS_NO_ENET=ON
+ -DSUMWARS_NO_TINYXML=ON
+ -DSUMWARS_PORTABLE_MODE=OFF
+ -DSUMWARS_POST_BUILD_COPY=OFF
+ -DSUMWARS_RANDOM_REGIONS=ON
+ -DSUMWARS_SHARE_DIR="/usr/share/${PN}"
+ -DSUMWARS_STANDALONE_MODE=OFF
+ )
+
+ cmake_src_configure
+}
+
+src_compile() {
+ cmake_src_compile
+}
+
+src_install() {
+ cmake_src_install
+ newicon -s 128 share/icon/SumWarsIcon_128x128.png ${PN}.png
+ make_desktop_entry ${PN} "Summoning Wars"
+}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+}