diff options
Diffstat (limited to 'games-strategy')
33 files changed, 952 insertions, 143 deletions
diff --git a/games-strategy/0ad-data/0ad-data-0.0.24_alpha_pre20210116040036.ebuild b/games-strategy/0ad-data/0ad-data-0.0.24_alpha_pre20210116040036.ebuild new file mode 100644 index 000000000000..da5bd064e6ec --- /dev/null +++ b/games-strategy/0ad-data/0ad-data-0.0.24_alpha_pre20210116040036.ebuild @@ -0,0 +1,88 @@ +# Copyright 2014-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +MY_PN="0ad" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/0ad/0ad" + ZEROAD_GIT_REVISION="" +elif [[ ${PV} == *_pre* ]]; then + ZEROAD_GIT_REVISION="c7d07d3979f969b969211a5e5748fa775f6768a7" +else + MY_P="${MY_PN}-${PV/_/-}" +fi + +DESCRIPTION="Data files for 0ad" +HOMEPAGE="https://play0ad.com/" +if [[ ${PV} == 9999 ]]; then + SRC_URI="" +elif [[ ${PV} == *_pre* ]]; then + SRC_URI="https://github.com/0ad/0ad/archive/${ZEROAD_GIT_REVISION}.tar.gz -> ${MY_PN}-${PV}.tar.gz" +else + SRC_URI="http://releases.wildfiregames.com/${MY_P}-unix-data.tar.xz" +fi + +LICENSE="BitstreamVera CC-BY-SA-3.0 GPL-2 LPPL-1.3c" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +if [[ ${PV} == 9999 || ${PV} == *_pre* ]]; then + BDEPEND="~games-strategy/0ad-${PV}[nvtt]" +else + BDEPEND="" +fi +DEPEND="" +RDEPEND="" + +if [[ ${PV} == 9999 ]]; then + S="${WORKDIR}/${MY_PN}-${PV}" +elif [[ ${PV} == *_pre* ]]; then + S="${WORKDIR}/${MY_PN}-${ZEROAD_GIT_REVISION}" +else + S="${WORKDIR}/${MY_P}" +fi + +src_prepare() { + default + rm binaries/data/tools/fontbuilder/fonts/*.txt || die +} + +src_compile() { + if [[ ${PV} == 9999 || ${PV} == *_pre* ]]; then + # source/lib/sysdep/os/linux/ldbg.cpp:debug_SetThreadName() tries to open /proc/self/task/${TID}/comm for writing. + addpredict /proc/self/task + + # Based on source/tools/dist/build-archives.sh used by source/tools/dist/build.sh. + local archivebuild_input archivebuild_output mod_name + for archivebuild_input in binaries/data/mods/[A-Za-z0-9]*; do + mod_name="${archivebuild_input##*/}" + archivebuild_output="archives/${mod_name}" + + mkdir -p "${archivebuild_output}" + + einfo 0ad -archivebuild="${archivebuild_input}" -archivebuild-output="${archivebuild_output}/${mod_name}.zip" + 0ad -archivebuild="${archivebuild_input}" -archivebuild-output="${archivebuild_output}/${mod_name}.zip" || die + + if [[ -f "${archivebuild_input}/mod.json" ]]; then + cp "${archivebuild_input}/mod.json" "${archivebuild_output}" + fi + + rm -r "${archivebuild_input}" || die + mv "${archivebuild_output}" "${archivebuild_input}" || die + done + + # Based on source/tools/dist/build-unix-win32.sh used by source/tools/dist/build.sh. + rm binaries/data/config/dev.cfg || die + rm -r binaries/data/mods/_test.* || die + fi +} + +src_install() { + insinto /usr/share/0ad + doins -r binaries/data/{config,mods,tools} +} diff --git a/games-strategy/0ad-data/Manifest b/games-strategy/0ad-data/Manifest index b346a707690d..b46c67536ae3 100644 --- a/games-strategy/0ad-data/Manifest +++ b/games-strategy/0ad-data/Manifest @@ -1,2 +1,3 @@ DIST 0ad-0.0.23-alpha-unix-data.tar.xz 691973492 BLAKE2B 7dcd36d21ea2c12f314f5a185a0fce57cec33754fbd26ad34c376fb9c7725fe5487e79a3da54249981fe58bf03c39350a871198a4cfb98c3a40eb878c6cc39b6 SHA512 9eae8bbdf83f609a0775261d691435c2924b505499fdf36ac0922b5f0c1d605dae49f257a872153c718d8bad018f6635320ec376418761c0d650bf165765e062 DIST 0ad-0.0.23b-alpha-unix-data.tar.xz 691280800 BLAKE2B 9ee0a1c14adb4fa2a842ad734f67a40af60d063c2f1876a34c49e584017b3fc6894a6be7c6533f15031b118d8a88b40b223decdbc3b8ea95f912271ec56f3a90 SHA512 d0515e44f575737a06f27c75c0a58a5229ead474ae6d48531142015548e5986145f895f95e0fa9209cf9085c7c431f4179ff2e70c1a532f61d1cb62c0a91bcfc +DIST 0ad-0.0.24_alpha_pre20210116040036.tar.gz 2562395684 BLAKE2B 03d6655f7aa1f2f91a87536a7f2afa465585856c4209ddc05e666e1e5596416883596331118ac4257ff314b04d8a5c08821eaa6ae76e5d3095146ab04f8c79ed SHA512 e1239a56b184a87708c87fc03ca41190a16d813e495c5d81ee073df98761f1524a23902e5d03a21a1b1f657b496fce6eeee4a5ef22eee30f70fbe3b0dbd44510 diff --git a/games-strategy/0ad/0ad-0.0.24_alpha_pre20210116040036.ebuild b/games-strategy/0ad/0ad-0.0.24_alpha_pre20210116040036.ebuild new file mode 100644 index 000000000000..aff130d91e0c --- /dev/null +++ b/games-strategy/0ad/0ad-0.0.24_alpha_pre20210116040036.ebuild @@ -0,0 +1,152 @@ +# Copyright 2014-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +WX_GTK_VER="3.0-gtk3" +inherit desktop toolchain-funcs wxwidgets xdg + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/0ad/0ad" + ZEROAD_GIT_REVISION="" +elif [[ ${PV} == *_pre* ]]; then + ZEROAD_GIT_REVISION="c7d07d3979f969b969211a5e5748fa775f6768a7" +else + MY_P="0ad-${PV/_/-}" +fi + +DESCRIPTION="A free, real-time strategy game" +HOMEPAGE="https://play0ad.com/" +if [[ ${PV} == 9999 ]]; then + SRC_URI="" +elif [[ ${PV} == *_pre* ]]; then + SRC_URI="https://github.com/0ad/0ad/archive/${ZEROAD_GIT_REVISION}.tar.gz -> ${P}.tar.gz" +else + SRC_URI="http://releases.wildfiregames.com/${MY_P}-unix-build.tar.xz" +fi + +LICENSE="CC-BY-SA-3.0 GPL-2 LGPL-2.1 MIT ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="editor +lobby nvtt pch test" +RESTRICT="test" + +BDEPEND="virtual/pkgconfig + test? ( dev-lang/perl )" +DEPEND=" + >=dev-lang/spidermonkey-78.6:78 + dev-libs/boost:= + dev-libs/icu:= + dev-libs/libfmt:0= + dev-libs/libsodium + dev-libs/libxml2 + media-libs/libpng:0 + media-libs/libsdl2[X,opengl,video] + media-libs/libvorbis + media-libs/openal + net-libs/enet:1.3 + net-libs/miniupnpc:= + net-misc/curl + sys-libs/zlib + virtual/opengl + x11-libs/libX11 + editor? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] ) + lobby? ( >=net-libs/gloox-1.0.20 ) + nvtt? ( >=media-gfx/nvidia-texture-tools-2.1.0 )" + +RDEPEND="${DEPEND}" +PDEPEND="~games-strategy/0ad-data-${PV}" + +if [[ ${PV} == 9999 ]]; then + S="${WORKDIR}/${P}" +elif [[ ${PV} == *_pre* ]]; then + S="${WORKDIR}/${PN}-${ZEROAD_GIT_REVISION}" +else + S="${WORKDIR}/${MY_P}" +fi + +PATCHES=( + "${FILESDIR}/${PN}-0.0.24_alpha_pre20210116040036-build.patch" +) + +pkg_setup() { + use editor && setup-wxwidgets +} + +src_prepare() { + default + + # Delete check for minor version of dev-lang/spidermonkey. + sed -e "/^#if MOZJS_MINOR_VERSION != [[:digit:]]\+$/,/^#endif$/d" -i source/scriptinterface/ScriptTypes.h || die +} + +src_configure() { + local myconf=( + --with-system-mozjs + --with-system-nvtt + --minimal-flags + $(usex nvtt "" "--without-nvtt") + $(usex pch "" "--without-pch") + $(usex test "" "--without-tests") + $(usex editor "--atlas" "") + $(usex lobby "" "--without-lobby") + --bindir="/usr/bin" + --libdir="/usr/$(get_libdir)"/${PN} + --datadir="/usr/share/${PN}" + ) + + tc-export CC CXX + + # stock premake5 does not work, use the shipped one + emake -C "${S}"/build/premake/premake5/build/gmake2.unix + + # regenerate scripts.c so our patch applies + cd "${S}"/build/premake/premake5 || die + "${S}"/build/premake/premake5/bin/release/premake5 embed || die + + # rebuild premake again... this is the most stupid build system + emake -C "${S}"/build/premake/premake5/build/gmake2.unix clean + emake -C "${S}"/build/premake/premake5/build/gmake2.unix + + # run premake to create build scripts + cd "${S}"/build/premake || die + "${S}"/build/premake/premake5/bin/release/premake5 \ + --file="premake5.lua" \ + --outpath="../workspaces/gcc/" \ + --os=linux \ + "${myconf[@]}" \ + gmake2 || die "Premake failed" +} + +src_compile() { + tc-export AR + + # build 3rd party fcollada + emake -C libraries/source/fcollada/src + + # build 0ad + emake -C build/workspaces/gcc verbose=1 +} + +src_test() { + cd binaries/system || die + ./test -libdir "${S}/binaries/system" || die "test phase failed" +} + +src_install() { + newbin binaries/system/pyrogenesis 0ad + use editor && newbin binaries/system/ActorEditor 0ad-ActorEditor + + insinto /usr/share/${PN} + doins -r binaries/data/l10n + + exeinto /usr/$(get_libdir)/${PN} + doexe binaries/system/libCollada.so + use editor && doexe binaries/system/libAtlasUI.so + + dodoc binaries/system/readme.txt + doicon -s 128 build/resources/${PN}.png + make_desktop_entry ${PN} +} diff --git a/games-strategy/0ad/Manifest b/games-strategy/0ad/Manifest index 2edf2ff884b8..de55f5659878 100644 --- a/games-strategy/0ad/Manifest +++ b/games-strategy/0ad/Manifest @@ -1,2 +1,3 @@ DIST 0ad-0.0.23-alpha-unix-build.tar.xz 31907988 BLAKE2B 567b9e1b5cd653206194e042f4f0859cd4f9afe75d52d3f480a328b76fdcdd746254502fbf284f790b4932c912ff31453bbc8c986c879ad76baa3d2a5db802c9 SHA512 4a1c86b19e0d8ec7d9b8bf75428df0255f95e7f991f419734f9b6ddc288a537405a34c5d7081f1a97475155c49013af85dee5c0265c35c7dbc003b46637a03d7 DIST 0ad-0.0.23b-alpha-unix-build.tar.xz 31922812 BLAKE2B db7d6bf1a2bb084870b914cf974bfdb19812ff6f9391e5bc5213ae215fc670b77bd4508a5432aa3e47bf327bd37d4bb14961ab3332b165b53327c3f01a935ac1 SHA512 82934313c46c4fd89e3841d5bbf901904abbd2108e9749529d7282bd24ac53b9e6878681c06e6019f4d8ec0e425c28300b0aafc9610a66a331777ffb58ed6135 +DIST 0ad-0.0.24_alpha_pre20210116040036.tar.gz 2562395684 BLAKE2B 03d6655f7aa1f2f91a87536a7f2afa465585856c4209ddc05e666e1e5596416883596331118ac4257ff314b04d8a5c08821eaa6ae76e5d3095146ab04f8c79ed SHA512 e1239a56b184a87708c87fc03ca41190a16d813e495c5d81ee073df98761f1524a23902e5d03a21a1b1f657b496fce6eeee4a5ef22eee30f70fbe3b0dbd44510 diff --git a/games-strategy/0ad/files/0ad-0.0.24_alpha_pre20210116040036-build.patch b/games-strategy/0ad/files/0ad-0.0.24_alpha_pre20210116040036-build.patch new file mode 100644 index 000000000000..1e643adb41a9 --- /dev/null +++ b/games-strategy/0ad/files/0ad-0.0.24_alpha_pre20210116040036-build.patch @@ -0,0 +1,105 @@ +--- /build/premake/premake5/build/gmake2.bsd/Premake5.make ++++ /build/premake/premake5/build/gmake2.bsd/Premake5.make +@@ -36,19 +36,19 @@ + TARGET = $(TARGETDIR)/premake5 + OBJDIR = obj/Release/Premake5 + DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -DNDEBUG -DLUA_USE_POSIX -DLUA_USE_DLOPEN +-ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O3 -Wall -Wextra +-ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -O3 -Wall -Wextra -fno-stack-protector ++ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -Wall -Wextra ++ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -Wall -Wextra -fno-stack-protector + LIBS += bin/Release/liblua-lib.a bin/Release/libzip-lib.a bin/Release/libzlib-lib.a bin/Release/libcurl-lib.a bin/Release/libmbedtls-lib.a -lm + LDDEPS += bin/Release/liblua-lib.a bin/Release/libzip-lib.a bin/Release/libzlib-lib.a bin/Release/libcurl-lib.a bin/Release/libmbedtls-lib.a +-ALL_LDFLAGS += $(LDFLAGS) -s -rdynamic ++ALL_LDFLAGS += $(LDFLAGS) -rdynamic + + else ifeq ($(config),debug) + TARGETDIR = ../../bin/debug + TARGET = $(TARGETDIR)/premake5 + OBJDIR = obj/Debug/Premake5 + DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -D_DEBUG -DLUA_USE_POSIX -DLUA_USE_DLOPEN +-ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -g -Wall -Wextra +-ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -g -Wall -Wextra ++ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -Wall -Wextra ++ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -Wall -Wextra + LIBS += bin/Debug/liblua-lib.a bin/Debug/libzip-lib.a bin/Debug/libzlib-lib.a bin/Debug/libcurl-lib.a bin/Debug/libmbedtls-lib.a -lm + LDDEPS += bin/Debug/liblua-lib.a bin/Debug/libzip-lib.a bin/Debug/libzlib-lib.a bin/Debug/libcurl-lib.a bin/Debug/libmbedtls-lib.a + ALL_LDFLAGS += $(LDFLAGS) -rdynamic +--- /build/premake/premake5/build/gmake2.macosx/Premake5.make ++++ /build/premake/premake5/build/gmake2.macosx/Premake5.make +@@ -45,8 +45,8 @@ + TARGET = $(TARGETDIR)/premake5 + OBJDIR = obj/Release/Premake5 + DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -DNDEBUG -DLUA_USE_MACOSX +-ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O3 -Wall -Wextra +-ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -O3 -Wall -Wextra -fno-stack-protector ++ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -Wall -Wextra ++ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -Wall -Wextra -fno-stack-protector + LIBS += bin/Release/liblua-lib.a bin/Release/libzip-lib.a bin/Release/libzlib-lib.a bin/Release/libcurl-lib.a -framework CoreServices -framework Foundation -framework Security -lreadline + LDDEPS += bin/Release/liblua-lib.a bin/Release/libzip-lib.a bin/Release/libzlib-lib.a bin/Release/libcurl-lib.a + +@@ -55,8 +55,8 @@ + TARGET = $(TARGETDIR)/premake5 + OBJDIR = obj/Debug/Premake5 + DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -D_DEBUG -DLUA_USE_MACOSX +-ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -g -Wall -Wextra +-ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -g -Wall -Wextra ++ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -Wall -Wextra ++ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -Wall -Wextra + LIBS += bin/Debug/liblua-lib.a bin/Debug/libzip-lib.a bin/Debug/libzlib-lib.a bin/Debug/libcurl-lib.a -framework CoreServices -framework Foundation -framework Security -lreadline + LDDEPS += bin/Debug/liblua-lib.a bin/Debug/libzip-lib.a bin/Debug/libzlib-lib.a bin/Debug/libcurl-lib.a + +--- /build/premake/premake5/build/gmake2.unix/Premake5.make ++++ /build/premake/premake5/build/gmake2.unix/Premake5.make +@@ -36,19 +36,19 @@ + TARGET = $(TARGETDIR)/premake5 + OBJDIR = obj/Release/Premake5 + DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -DNDEBUG -DLUA_USE_POSIX -DLUA_USE_DLOPEN +-ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O3 -Wall -Wextra +-ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -O3 -Wall -Wextra -fno-stack-protector ++ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -Wall -Wextra ++ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -Wall -Wextra -fno-stack-protector + LIBS += bin/Release/liblua-lib.a bin/Release/libzip-lib.a bin/Release/libzlib-lib.a bin/Release/libcurl-lib.a bin/Release/libmbedtls-lib.a -lm -ldl -lrt + LDDEPS += bin/Release/liblua-lib.a bin/Release/libzip-lib.a bin/Release/libzlib-lib.a bin/Release/libcurl-lib.a bin/Release/libmbedtls-lib.a +-ALL_LDFLAGS += $(LDFLAGS) -s -rdynamic ++ALL_LDFLAGS += $(LDFLAGS) -rdynamic + + else ifeq ($(config),debug) + TARGETDIR = ../../bin/debug + TARGET = $(TARGETDIR)/premake5 + OBJDIR = obj/Debug/Premake5 + DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -D_DEBUG -DLUA_USE_POSIX -DLUA_USE_DLOPEN +-ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -g -Wall -Wextra +-ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -g -Wall -Wextra ++ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -Wall -Wextra ++ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -Wall -Wextra + LIBS += bin/Debug/liblua-lib.a bin/Debug/libzip-lib.a bin/Debug/libzlib-lib.a bin/Debug/libcurl-lib.a bin/Debug/libmbedtls-lib.a -lm -ldl -lrt + LDDEPS += bin/Debug/liblua-lib.a bin/Debug/libzip-lib.a bin/Debug/libzlib-lib.a bin/Debug/libcurl-lib.a bin/Debug/libmbedtls-lib.a + ALL_LDFLAGS += $(LDFLAGS) -rdynamic +--- /build/premake/premake5/src/tools/gcc.lua ++++ /build/premake/premake5/src/tools/gcc.lua +@@ -346,8 +346,7 @@ + -- + + function gcc.ldsymbols(cfg) +- -- OS X has a bug, see http://lists.apple.com/archives/Darwin-dev/2006/Sep/msg00084.html +- return iif(table.contains(os.getSystemTags(cfg.system), "darwin"), "-Wl,-x", "-s") ++ return "" + end + + gcc.ldflags = { +--- /libraries/source/fcollada/src/Makefile ++++ /libraries/source/fcollada/src/Makefile +@@ -9,9 +9,9 @@ + + CXX ?= g++ + CXXFLAGS += -fvisibility=hidden -W -Wall -Wno-unused-parameter -Wno-unused-function $(OS_DEFINE) $(PIC_FLAGS) $(CPPFLAGS) +-CXXFLAGS_DEBUG := -O0 -g -D_DEBUG -DRETAIL +-CXXFLAGS_RELEASE := -O2 -DNDEBUG -DRETAIL +-CXXFLAGS_TEST := -O0 -g -D_DEBUG ++CXXFLAGS_DEBUG := -D_DEBUG -DRETAIL ++CXXFLAGS_RELEASE := -DNDEBUG -DRETAIL ++CXXFLAGS_TEST := -D_DEBUG + LDFLAGS_TEST= -ldl + LIBS += `pkg-config libxml-2.0 --libs` + INCLUDES += -IFCollada `pkg-config libxml-2.0 --cflags` diff --git a/games-strategy/colobot-data/colobot-data-0.1.12.ebuild b/games-strategy/colobot-data/colobot-data-0.1.12.ebuild index 79e1a2927dc4..5afe05ecdef1 100644 --- a/games-strategy/colobot-data/colobot-data-0.1.12.ebuild +++ b/games-strategy/colobot-data/colobot-data-0.1.12.ebuild @@ -1,9 +1,10 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit cmake +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit cmake python-any-r1 MY_P=colobot-gold-${PV}-alpha MUSIC_P=colobot-music_ogg_${PV}-alpha @@ -14,13 +15,14 @@ SRC_URI=" https://github.com/colobot/colobot-data/archive/${MY_P}.tar.gz -> ${MY_P}.data.tar.gz music? ( https://colobot.info/files/music/${MUSIC_P}.tar.gz )" +S=${WORKDIR}/${PN}-${MY_P} LICENSE="GPL-3+" SLOT="0" KEYWORDS="~amd64" IUSE="+music" -S="${WORKDIR}/${PN}-${MY_P}" +BDEPEND=${PYTHON_DEPS} src_unpack() { unpack "${MY_P}.data.tar.gz" diff --git a/games-strategy/colobot/files/colobot-0.1.12-includes.patch b/games-strategy/colobot/files/colobot-0.1.12-includes.patch index 1fb3a2730c44..3bd118a1ef1d 100644 --- a/games-strategy/colobot/files/colobot-0.1.12-includes.patch +++ b/games-strategy/colobot/files/colobot-0.1.12-includes.patch @@ -21,3 +21,25 @@ index bc64dc232..dd4e02ff4 100644 #include <string> #include <boost/optional.hpp> +From fc2bd68876ac6302dbc8e91e8ffa33592db14b21 Mon Sep 17 00:00:00 2001 +From: suve <veg@svgames.pl> +Date: Sun, 9 Feb 2020 00:36:05 +0100 +Subject: [PATCH] Fix missing std includes + +--- + src/CBot/CBotInstr/CBotExprLitString.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/CBot/CBotInstr/CBotExprLitString.cpp b/src/CBot/CBotInstr/CBotExprLitString.cpp +index fc2541624..69e42d607 100644 +--- a/src/CBot/CBotInstr/CBotExprLitString.cpp ++++ b/src/CBot/CBotInstr/CBotExprLitString.cpp +@@ -24,6 +24,8 @@ + + #include "CBot/CBotVar/CBotVar.h" + ++#include <stdexcept> ++ + namespace CBot + { + diff --git a/games-strategy/dopewars/Manifest b/games-strategy/dopewars/Manifest index 144e8684bcc9..12435e199010 100644 --- a/games-strategy/dopewars/Manifest +++ b/games-strategy/dopewars/Manifest @@ -1 +1 @@ -DIST dopewars-1.5.12.tar.gz 1419725 BLAKE2B 930a0406bbf36f874d3bb00c7883c7d47136022e0209ec3993302cd75979d9f80033c973e23d60c4db70a335bfd3b8ff99075af470cb382ded59fc9289ee0edc SHA512 cfabaf9326c847aed6210a852ace64c697df5845a66b3179b8dc8dea7b99a11e1f91358d4ee54929a56c70d5f3a76f9f7bb4079fdef765601f165b4cd06cba5a +DIST dopewars-1.6.1.tar.gz 1024168 BLAKE2B 28d650e0d1eccdfa9aa799bb4b35e82facc800ed9cbde9778c7182bd615ad0b1ec7d3fd323473f381f3ed1902b8e305a7994a5e351728aa1028be2e0665bfa57 SHA512 fab27b483b5a24abd95ffe6a52fe92c7179d8ee3e7d27393f0e7c265202781ab6a58e3b3214ff84bbc0e8195644b5c2ec94616b5f63b3fa9dc2ad2f9216e37d1 diff --git a/games-strategy/dopewars/dopewars-1.5.12-r3.ebuild b/games-strategy/dopewars/dopewars-1.6.1.ebuild index 06e4e7d0c819..440192e5e417 100644 --- a/games-strategy/dopewars/dopewars-1.5.12-r3.ebuild +++ b/games-strategy/dopewars/dopewars-1.6.1.ebuild @@ -1,13 +1,13 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit desktop toolchain-funcs +inherit autotools desktop toolchain-funcs DESCRIPTION="Re-Write of the game Drug Wars" HOMEPAGE="https://sourceforge.net/projects/dopewars/" -SRC_URI="mirror://sourceforge/dopewars/${P}.tar.gz" +SRC_URI="https://github.com/benmwebb/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" @@ -29,13 +29,12 @@ DEPEND="${RDEPEND} nls? ( sys-devel/gettext ) " +DOCS=( AUTHORS NEWS README.md TODO doc/example-cfg doc/example-igneous ) + src_prepare() { default - eapply "${FILESDIR}"/${P}-CVE-2009-3591.patch - sed -i \ - -e "/priv_hiscore/ s:DPDATADIR:\"/var/lib\":" \ - -e "/\/doc\// s:DPDATADIR:\"/usr/share\":" \ - -e 's:index.html:html/index.html:' \ + eautoreconf + sed -i -e 's:index.html:html/index.html:' \ src/dopewars.c || die sed -i -e "s/\-lncurses/$($(tc-getPKG_CONFIG) --libs ncurses)/g" \ configure || die @@ -61,7 +60,8 @@ src_configure() { src_install() { emake DESTDIR="${D}" install rm -r "${ED}"/usr/share/gnome || die - rm -rf "${ED}"/usr/share/doc + rm -r "${ED}"/usr/share/doc || die make_desktop_entry "${PN}" "Dopewars" /usr/share/pixmaps/dopewars-weed.png - HTML_DOCS="doc/*html" einstalldocs + HTML_DOCS="doc/*html doc/help/" + einstalldocs } diff --git a/games-strategy/dopewars/files/dopewars-1.5.12-CVE-2009-3591.patch b/games-strategy/dopewars/files/dopewars-1.5.12-CVE-2009-3591.patch deleted file mode 100644 index 3b8b066a81cd..000000000000 --- a/games-strategy/dopewars/files/dopewars-1.5.12-CVE-2009-3591.patch +++ /dev/null @@ -1,20 +0,0 @@ -Patch for CVE-2009-3591 -- bug 288295. - -Fetched from upstream SVN: -http://dopewars.svn.sourceforge.net/viewvc/dopewars/dopewars/trunk/src/serverside.c?r1=1033&r2=1032&pathrev=1033 - ---- trunk/src/serverside.c 2009/03/10 07:18:49 1032 -+++ trunk/src/serverside.c 2009/10/05 04:11:32 1033 -@@ -504,6 +504,12 @@ - break; - case C_REQUESTJET: - i = atoi(Data); -+ /* Make sure value is within range */ -+ if (i < 0 || i >= NumLocation) { -+ dopelog(3, LF_SERVER, _("%s: DENIED jet to invalid location %s"), -+ GetPlayerName(Play), Data); -+ break; -+ } - if (Play->EventNum == E_FIGHT || Play->EventNum == E_FIGHTASK) { - if (CanRunHere(Play)) { - break; diff --git a/games-strategy/hedgewars/hedgewars-1.0.0-r100.ebuild b/games-strategy/hedgewars/hedgewars-1.0.0-r100.ebuild index 8f127f790724..846de0ff3c2b 100644 --- a/games-strategy/hedgewars/hedgewars-1.0.0-r100.ebuild +++ b/games-strategy/hedgewars/hedgewars-1.0.0-r100.ebuild @@ -4,7 +4,7 @@ EAPI=7 CMAKE_MAKEFILE_GENERATOR=emake -LUA_COMPAT=( lua5-1 ) +LUA_COMPAT=( lua5-{1..4} luajit ) inherit cmake lua-single xdg-utils diff --git a/games-strategy/julius/julius-1.4.1.ebuild b/games-strategy/julius/julius-1.4.1.ebuild index 811dfaebf3f6..bffe7ad84787 100644 --- a/games-strategy/julius/julius-1.4.1.ebuild +++ b/games-strategy/julius/julius-1.4.1.ebuild @@ -11,7 +11,7 @@ SRC_URI="https://github.com/bvschaik/julius/archive/v${PV}.tar.gz -> ${P}.tar.gz LICENSE="AGPL-3" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="~amd64 ~arm64" DEPEND=" media-libs/libpng:0= diff --git a/games-strategy/julius/metadata.xml b/games-strategy/julius/metadata.xml index f03366e86b28..ada366d7df9a 100644 --- a/games-strategy/julius/metadata.xml +++ b/games-strategy/julius/metadata.xml @@ -6,7 +6,7 @@ <name>Gentoo Games Project</name> </maintainer> <maintainer type="person"> - <email>chr@chymera.eu</email> + <email>gentoo@chymera.eu</email> <name>Horea Christian</name> </maintainer> <longdescription lang="en"> diff --git a/games-strategy/megaglest-data/Manifest b/games-strategy/megaglest-data/Manifest index d0d907962af5..c8ded569f740 100644 --- a/games-strategy/megaglest-data/Manifest +++ b/games-strategy/megaglest-data/Manifest @@ -1 +1,2 @@ DIST megaglest-data-3.11.1.tar.xz 283383936 BLAKE2B d3c3d6c99f8b5f1360ecf72f69b47ce1ee1777019bdd8c2c0cfad8128a0ca07906a906be031526bcd255c5db3565bf4225a1170fdbcfc76819f65055d4d69c79 SHA512 a0ca22c2ba44992ce244c19f1bf3b19983a76520566286728ff4de4c14ef568aec3b166a2dde615b221d4cded8f2714b873a56fd58c1beebdc7120508ba0e357 +DIST megaglest-data-3.13.0.tar.xz 291190184 BLAKE2B 369dfb2f9a0271c686b77b4368043717b57e5863f8918afe3cc429c630ed79173c025ad0c5bad1e94949f4caf841b0e3c6706491a8534b829568c7d89ba97383 SHA512 ac6a6dd85ec2e45d3107549199251b504f128b8fc254b683c7d9c0841b86cd4c32cd45c9d3cbddc3f989bd965d61ef5a0dca9212431876c00a13f8398ff45f4c diff --git a/games-strategy/megaglest-data/megaglest-data-3.11.1-r1.ebuild b/games-strategy/megaglest-data/megaglest-data-3.11.1-r1.ebuild new file mode 100644 index 000000000000..a1018a254f18 --- /dev/null +++ b/games-strategy/megaglest-data/megaglest-data-3.11.1-r1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +MY_PN="megaglest" +DESCRIPTION="Data files for the cross-platform 3D realtime strategy game MegaGlest" +HOMEPAGE="https://www.megaglest.org/" +SRC_URI="https://github.com/MegaGlest/megaglest-data/releases/download/${PV}/megaglest-data-${PV}.tar.xz" + +LICENSE="CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +DOCS=( docs/AUTHORS.data.txt docs/CHANGELOG.txt docs/README.txt ) + +S=${WORKDIR}/${MY_PN}-${PV} + +src_install() { + use doc && HTML_DOCS+=( docs/glest_factions/ ) + cmake_src_install +} diff --git a/games-strategy/megaglest-data/megaglest-data-3.11.1.ebuild b/games-strategy/megaglest-data/megaglest-data-3.13.0.ebuild index 24a3f10e96fd..b96462b4fb9e 100644 --- a/games-strategy/megaglest-data/megaglest-data-3.11.1.ebuild +++ b/games-strategy/megaglest-data/megaglest-data-3.13.0.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 -inherit cmake-utils games +EAPI=7 +inherit cmake MY_PN="megaglest" DESCRIPTION="Data files for the cross-platform 3D realtime strategy game MegaGlest" @@ -16,27 +16,17 @@ IUSE="doc" DOCS=( docs/AUTHORS.data.txt docs/CHANGELOG.txt docs/README.txt ) -S=${WORKDIR}/${MY_PN}-${PV} - -src_prepare() { - cmake-utils_src_prepare -} +S="${WORKDIR}/${MY_PN}-${PV}" src_configure() { + # See bug https://bugs.gentoo.org/709450. local mycmakeargs=( - -DMEGAGLEST_BIN_INSTALL_PATH="${GAMES_BINDIR}" - -DMEGAGLEST_DATA_INSTALL_PATH="${GAMES_DATADIR}/${MY_PN}" - -DMEGAGLEST_ICON_INSTALL_PATH="/usr/share/pixmaps" + -DMEGAGLEST_APPDATA_INSTALL_PATH=/usr/metainfo ) - cmake-utils_src_configure -} - -src_compile() { - cmake-utils_src_compile + cmake_src_configure } src_install() { use doc && HTML_DOCS="docs/glest_factions/" - cmake-utils_src_install - prepgamesdirs + cmake_src_install } diff --git a/games-strategy/megaglest/Manifest b/games-strategy/megaglest/Manifest index f32e43070ead..eba04831a2e6 100644 --- a/games-strategy/megaglest/Manifest +++ b/games-strategy/megaglest/Manifest @@ -1 +1,2 @@ DIST megaglest-source-3.11.1.tar.xz 2863180 BLAKE2B 01923ad4b29cc7042f0a26ba44a6a023020cbe2071b26b40c3332d763430dd559eb9eb7041182e154a0f1832866c759e08f21a677fcb5f2dba134127b0624b30 SHA512 9e1d8eccff1889199ff0e4b0f1cc3d0193306cd9271a2c98f12a49d61a09789d0813d5f3dadfe7701d2446976992834c63287f0227d660dc9cc9d2ecef65e225 +DIST megaglest-source-3.13.0.tar.xz 1979440 BLAKE2B 9df70502e0dddc754897c989222d0bddbebbb781a16f49ffa2dd30ee1dbd3e88249ccd600fbde8dab712a1286e29651bebfc9add0d255b675e9eb0ca5ba60153 SHA512 5ae74efce55d7ec9f38d7701da9c865458e15223b5a3c5ac829e09dc81e63fbea2a235cae99450ea7333044c5166af82a762a29c5793c75711d1200688518b5c diff --git a/games-strategy/megaglest/files/megaglest-3.11.1-cmake-lua.patch b/games-strategy/megaglest/files/megaglest-3.11.1-cmake-lua.patch new file mode 100644 index 000000000000..c8d30e3d096f --- /dev/null +++ b/games-strategy/megaglest/files/megaglest-3.11.1-cmake-lua.patch @@ -0,0 +1,25 @@ +Use the standard FindLua.cmake instead of the modified bundled FindLUA.cmake, +and force the use of an exact Lua version. + +--- a/source/glest_game/CMakeLists.txt ++++ b/source/glest_game/CMakeLists.txt +@@ -64,7 +64,7 @@ + ENDIF() + ENDIF() + +- FIND_PACKAGE(LUA REQUIRED) ++ FIND_PACKAGE(Lua ${FORCE_LUA_VERSION} EXACT REQUIRED) + INCLUDE_DIRECTORIES(${LUA_INCLUDE_DIR}) + IF(UNIX) + SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${LUA_LIBRARIES}) +--- a/source/shared_lib/CMakeLists.txt ++++ b/source/shared_lib/CMakeLists.txt +@@ -132,7 +132,7 @@ + SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${OPENAL_LIBRARY}) + ENDIF() + +- FIND_PACKAGE(LUA REQUIRED) ++ FIND_PACKAGE(Lua ${FORCE_LUA_VERSION} EXACT REQUIRED) + INCLUDE_DIRECTORIES(${LUA_INCLUDE_DIR}) + IF(UNIX) + SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${LUA_LIBRARIES} ${CMAKE_DL_LIBS}) diff --git a/games-strategy/megaglest/megaglest-3.11.1-r1.ebuild b/games-strategy/megaglest/megaglest-3.11.1-r100.ebuild index ca99c5450f14..948681f0217d 100644 --- a/games-strategy/megaglest/megaglest-3.11.1-r1.ebuild +++ b/games-strategy/megaglest/megaglest-3.11.1-r100.ebuild @@ -1,12 +1,20 @@ -# Copyright 2010-2020 Gentoo Authors +# Copyright 2010-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # google-breakpad # TODO: fribidi, libvorbis static -EAPI=5 +EAPI=7 + +# src_install() currently requires this +CMAKE_MAKEFILE_GENERATOR="emake" + +LUA_COMPAT=( lua5-{1..4} luajit ) + +# Only needed by certain features VIRTUALX_REQUIRED="manual" -inherit eutils flag-o-matic cmake-utils virtualx wxwidgets gnome2-utils games + +inherit cmake desktop flag-o-matic lua-single virtualx wxwidgets xdg-utils DESCRIPTION="Cross-platform 3D realtime strategy game" HOMEPAGE="https://megaglest.org/ https://github.com/MegaGlest/megaglest-source" @@ -15,11 +23,14 @@ SRC_URI="https://github.com/MegaGlest/megaglest-source/releases/download/${PV}/m LICENSE="GPL-3 BitstreamVera" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="debug +editor fribidi cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 static +streflop +tools +unicode wxuniversal +model-viewer videos" +IUSE="debug +editor fribidi cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 +streflop +tools +unicode wxuniversal +model-viewer videos" + +REQUIRED_USE="${LUA_REQUIRED_USE}" -RDEPEND=" +# Older versions of megaglest-data install into /usr/games +RDEPEND="${LUA_DEPS} ~games-strategy/${PN}-data-${PV} - >=dev-lang/lua-5.1:0 + >=games-strategy/${PN}-data-3.11.1-r1 dev-libs/libxml2 media-libs/fontconfig media-libs/freetype @@ -35,44 +46,36 @@ RDEPEND=" editor? ( x11-libs/wxGTK:3.0[X,opengl] ) fribidi? ( dev-libs/fribidi ) model-viewer? ( x11-libs/wxGTK:3.0[X] ) - !static? ( - dev-libs/xerces-c[icu] - media-libs/ftgl - media-libs/glew - media-libs/libpng:0 - net-libs/libircclient - >=net-libs/miniupnpc-1.8 - net-misc/curl - virtual/jpeg:0 - ) + dev-libs/xerces-c[icu] + media-libs/ftgl + media-libs/glew:= + media-libs/libpng:0 + net-libs/libircclient + >=net-libs/miniupnpc-1.8:= + net-misc/curl + virtual/jpeg:0 videos? ( media-video/vlc )" -DEPEND="${RDEPEND} - sys-apps/help2man +DEPEND="${RDEPEND}" +BDEPEND="sys-apps/help2man virtual/pkgconfig editor? ( ${VIRTUALX_DEPEND} ) - model-viewer? ( ${VIRTUALX_DEPEND} ) - static? ( - dev-libs/icu[static-libs] - dev-libs/xerces-c[icu,static-libs] - media-libs/ftgl[static-libs] - media-libs/glew[static-libs] - media-libs/libpng:0[static-libs] - net-libs/libircclient[static-libs] - net-libs/miniupnpc[static-libs] - net-misc/curl[static-libs] - virtual/jpeg:0[static-libs] - )" + model-viewer? ( ${VIRTUALX_DEPEND} )" + +PATCHES=( + "${FILESDIR}"/${P}-static-build.patch + "${FILESDIR}"/${P}-cmake.patch + "${FILESDIR}"/${P}-cmake-lua.patch + "${FILESDIR}"/${P}-miniupnpc.patch + "${FILESDIR}"/${P}-miniupnpc-api-version-16.patch +) src_prepare() { + cmake_src_prepare + if use editor || use model-viewer ; then WX_GTK_VER="3.0" - need-wxwidgets unicode + setup-wxwidgets fi - - epatch "${FILESDIR}"/${P}-static-build.patch \ - "${FILESDIR}"/${P}-cmake.patch \ - "${FILESDIR}"/${P}-miniupnpc.patch \ - "${FILESDIR}"/${P}-miniupnpc-api-version-16.patch } src_configure() { @@ -87,46 +90,39 @@ src_configure() { fi local mycmakeargs=( - $(cmake-utils_use_enable fribidi FRIBIDI) - $(cmake-utils_use_build editor MEGAGLEST_MAP_EDITOR) - $(cmake-utils_use_build tools MEGAGLEST_MODEL_IMPORT_EXPORT_TOOLS) - $(cmake-utils_use_build model-viewer MEGAGLEST_MODEL_VIEWER) - $(cmake-utils_use_with videos VLC) + -DBUILD_MEGAGLEST_MAP_EDITOR=$(usex editor) + -DBUILD_MEGAGLEST_MODEL_IMPORT_EXPORT_TOOLS=$(usex tools) + -DBUILD_MEGAGLEST_MODEL_VIEWER=$(usex model-viewer) + -DENABLE_FRIBIDI=$(usex fribidi) + -DFORCE_LUA_VERSION="$(lua_get_version)" -DMAX_SSE_LEVEL_DESIRED="${SSE}" - -DMEGAGLEST_BIN_INSTALL_PATH="${GAMES_BINDIR}" - -DMEGAGLEST_DATA_INSTALL_PATH="${GAMES_DATADIR}/${PN}" - # icons are used at runtime, wrong default location share/pixmaps - -DMEGAGLEST_ICON_INSTALL_PATH="${GAMES_DATADIR}/${PN}" -DUSE_FTGL=ON - $(cmake-utils_use_want static STATIC_LIBS) - $(cmake-utils_use_want streflop STREFLOP) - -DWANT_SVN_STAMP=off - $(cmake-utils_use static wxWidgets_USE_STATIC) - $(cmake-utils_use unicode wxWidgets_USE_UNICODE) - $(cmake-utils_use wxuniversal wxWidgets_USE_UNIVERSAL) + -DWANT_STATIC_LIBS=OFF + -DWANT_STREFLOP=$(usex streflop) + -DWITH_VLC=$(usex videos) + -DwxWidgets_USE_STATIC=OFF + -DwxWidgets_USE_UNICODE=$(usex unicode) + -DwxWidgets_USE_UNIVERSAL=$(usex wxuniversal) $(usex debug "-DBUILD_MEGAGLEST_UPNP_DEBUG=ON -DwxWidgets_USE_DEBUG=ON" "") ) - # support CMAKE_BUILD_TYPE=Gentoo - append-cppflags '-DCUSTOM_DATA_INSTALL_PATH=\\\"'${GAMES_DATADIR}/${PN}/'\\\"' - - cmake-utils_src_configure + cmake_src_configure } src_compile() { if use editor || use model-viewer; then # work around parallel make issues - bug #561380 MAKEOPTS="-j1 ${MAKEOPTS}" \ - VIRTUALX_COMMAND="cmake-utils_src_compile" virtualmake + virtx cmake_src_compile else - cmake-utils_src_compile + cmake_src_compile fi } src_install() { # rebuilds some targets randomly without fast option - emake -C "${CMAKE_BUILD_DIR}" DESTDIR="${D}" "$@" install/fast + emake -C "${BUILD_DIR}" DESTDIR="${D}" "$@" install/fast dodoc docs/{AUTHORS.source_code,CHANGELOG,README}.txt doicon -s 48 ${PN}.png @@ -135,13 +131,6 @@ src_install() { make_desktop_entry ${PN}_editor "MegaGlest Map Editor" use model-viewer && make_desktop_entry ${PN}_g3dviewer "MegaGlest Model Viewer" - - prepgamesdirs -} - -pkg_preinst() { - games_pkg_preinst - gnome2_icon_savelist } pkg_postinst() { @@ -156,10 +145,9 @@ pkg_postinst() { elog 'Some graphics cards may require setting Max Lights to 1.' einfo - games_pkg_postinst - gnome2_icon_cache_update + xdg_icon_cache_update } pkg_postrm() { - gnome2_icon_cache_update + xdg_icon_cache_update } diff --git a/games-strategy/megaglest/megaglest-3.13.0.ebuild b/games-strategy/megaglest/megaglest-3.13.0.ebuild new file mode 100644 index 000000000000..3352b1628c06 --- /dev/null +++ b/games-strategy/megaglest/megaglest-3.13.0.ebuild @@ -0,0 +1,144 @@ +# Copyright 2010-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Todo: google-breakpad? + +EAPI=7 + +# src_install() currently requires this +CMAKE_MAKEFILE_GENERATOR="emake" + +LUA_COMPAT=( lua5-{1..4} luajit ) + +# Only needed by certain features +VIRTUALX_REQUIRED="manual" + +inherit cmake desktop flag-o-matic lua-single virtualx wxwidgets xdg-utils + +DESCRIPTION="Cross-platform 3D realtime strategy game" +HOMEPAGE="https://megaglest.org/ https://github.com/MegaGlest/megaglest-source" +SRC_URI="https://github.com/MegaGlest/megaglest-source/releases/download/${PV}/megaglest-source-${PV}.tar.xz" + +LICENSE="GPL-3 BitstreamVera" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug +editor fribidi cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 +streflop +tools +unicode wxuniversal +model-viewer videos" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND=" + ${LUA_DEPS} + ~games-strategy/${PN}-data-${PV} + dev-libs/libxml2 + dev-libs/xerces-c[icu] + media-libs/fontconfig + media-libs/freetype + media-libs/ftgl + media-libs/glew:= + net-libs/libircclient + media-libs/libpng:0 + media-libs/libsdl2[X,sound,joystick,opengl,video] + media-libs/libvorbis + media-libs/openal + net-libs/gnutls:= + net-libs/miniupnpc:= + net-misc/curl + sys-libs/zlib + virtual/opengl + virtual/glu + virtual/jpeg:0= + x11-libs/libX11 + x11-libs/libXext + editor? ( x11-libs/wxGTK:3.0-gtk3[X,opengl] ) + fribidi? ( dev-libs/fribidi ) + model-viewer? ( x11-libs/wxGTK:3.0-gtk3[X] ) + videos? ( media-video/vlc ) +" +DEPEND="${RDEPEND}" + +BDEPEND="sys-apps/help2man + virtual/pkgconfig + editor? ( ${VIRTUALX_DEPEND} ) + model-viewer? ( ${VIRTUALX_DEPEND} )" + +PATCHES=( + "${FILESDIR}/${PN}-3.11.1-cmake-lua.patch" +) + +src_prepare() { + cmake_src_prepare + + if use editor || use model-viewer ; then + WX_GTK_VER="3.0" + setup-wxwidgets + fi +} + +src_configure() { + # See https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common + append-cflags -fcommon + + if use cpu_flags_x86_sse3; then + SSE=3 + elif use cpu_flags_x86_sse2; then + SSE=2 + elif use cpu_flags_x86_sse; then + SSE=1 + else + SSE=0 + fi + + local mycmakeargs=( + -DWANT_USE_FriBiDi="$(usex fribidi)" + -DBUILD_MEGAGLEST_MAP_EDITOR="$(usex editor)" + -DBUILD_MEGAGLEST_MODEL_IMPORT_EXPORT_TOOLS="$(usex tools)" + -DBUILD_MEGAGLEST_MODEL_VIEWER="$(usex model-viewer)" + -DWANT_USE_VLC="$(usex videos)" + -DFORCE_LUA_VERSION="$(lua_get_version)" + -DFORCE_MAX_SSE_LEVEL="${SSE}" + -DWANT_USE_FTGL=ON + -DWANT_STATIC_LIBS=OFF + -DWANT_USE_STREFLOP="$(usex streflop)" + -DwxWidgets_USE_STATIC=OFF + -DwxWidgets_USE_UNICODE="$(usex unicode)" + -DwxWidgets_USE_UNIVERSAL="$(usex wxuniversal)" + + $(usex debug "-DBUILD_MEGAGLEST_UPNP_DEBUG=ON -DwxWidgets_USE_DEBUG=ON" "") + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile +} + +src_install() { + # rebuilds some targets randomly without fast option + emake -C "${BUILD_DIR}" DESTDIR="${D}" "$@" install/fast + + dodoc docs/{AUTHORS.source_code,CHANGELOG,README}.txt + + use editor && + make_desktop_entry ${PN}_editor "MegaGlest Map Editor" + use model-viewer && + make_desktop_entry ${PN}_g3dviewer "MegaGlest Model Viewer" +} + +pkg_postinst() { + einfo + elog 'Note about Configuration:' + elog 'DO NOT directly edit glest.ini and glestkeys.ini but rather glestuser.ini' + elog 'and glestuserkeys.ini in ~/.megaglest/ and create your user over-ride' + elog 'values in these files.' + elog + elog 'If you have an older graphics card which only supports OpenGL 1.2, and the' + elog 'game crashes when you try to play, try starting with "megaglest --disable-vbo"' + elog 'Some graphics cards may require setting Max Lights to 1.' + einfo + + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/games-strategy/naev/naev-0.7.0-r100.ebuild b/games-strategy/naev/naev-0.7.0-r100.ebuild index f43b5a4502f8..2c91b7bb6e3d 100644 --- a/games-strategy/naev/naev-0.7.0-r100.ebuild +++ b/games-strategy/naev/naev-0.7.0-r100.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -LUA_COMPAT=( lua5-1 luajit ) +LUA_COMPAT=( lua5-{1..4} luajit ) inherit lua-single xdg-utils @@ -32,7 +32,10 @@ RDEPEND="${LUA_DEPS} openal? ( media-libs/openal ) " DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" +BDEPEND=" + app-arch/unzip + virtual/pkgconfig +" # This is so that only the source tarball is unpacked - the data file # is supposed to be installed *zipped*. This is why we do not need unzip diff --git a/games-strategy/naev/naev-0.7.0.ebuild b/games-strategy/naev/naev-0.7.0.ebuild index 1b20e968fdde..d778be1396f6 100644 --- a/games-strategy/naev/naev-0.7.0.ebuild +++ b/games-strategy/naev/naev-0.7.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -29,7 +29,10 @@ RDEPEND=" openal? ( media-libs/openal ) " DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" +BDEPEND=" + app-arch/unzip + virtual/pkgconfig +" # This is so that only the source tarball is unpacked - the data file # is supposed to be installed *zipped*. This is why we do not need unzip diff --git a/games-strategy/openra/openra-20190314-r100.ebuild b/games-strategy/openra/openra-20190314-r100.ebuild index c9121cd7fddf..8225554fbc37 100644 --- a/games-strategy/openra/openra-20190314-r100.ebuild +++ b/games-strategy/openra/openra-20190314-r100.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -LUA_COMPAT=( lua5-1 ) +LUA_COMPAT=( lua5-{1..4} luajit ) inherit lua-single mono-env xdg-utils @@ -45,11 +45,15 @@ REQUIRED_USE="${LUA_REQUIRED_USE}" RESTRICT="mirror test" -BDEPEND=">=dev-lang/mono-4.2" - -DEPEND="${BDEPEND} - dev-dotnet/libgdiplus" - +MONO_DEP=">=dev-lang/mono-4.2" +BDEPEND=" + app-arch/unzip + ${MONO_DEP} +" +DEPEND=" + dev-dotnet/libgdiplus + ${MONO_DEP} +" RDEPEND="${DEPEND} app-misc/ca-certificates ${LUA_DEPS} diff --git a/games-strategy/openra/openra-20190314.ebuild b/games-strategy/openra/openra-20190314.ebuild index 3dfb6054218d..89952527033d 100644 --- a/games-strategy/openra/openra-20190314.ebuild +++ b/games-strategy/openra/openra-20190314.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -40,11 +40,16 @@ KEYWORDS="~amd64 ~x86" IUSE="+debug geoip" RESTRICT="mirror test" -BDEPEND=">=dev-lang/mono-4.2" - -DEPEND="${BDEPEND} - dev-dotnet/libgdiplus" - +MONO_DEP=">=dev-lang/mono-4.2" +BDEPEND=" + app-arch/unzip + ${MONO_DEP} +" +DEPEND=" + >=dev-lang/mono-4.2 + dev-dotnet/libgdiplus + ${MONO_DEP} +" RDEPEND="${DEPEND} app-misc/ca-certificates =dev-lang/lua-5.1*:0 diff --git a/games-strategy/s25rttr/s25rttr-0.9.0_pre20200723-r100.ebuild b/games-strategy/s25rttr/s25rttr-0.9.0_pre20200723-r100.ebuild index 001f1128ae10..8dbb6489b509 100644 --- a/games-strategy/s25rttr/s25rttr-0.9.0_pre20200723-r100.ebuild +++ b/games-strategy/s25rttr/s25rttr-0.9.0_pre20200723-r100.ebuild @@ -3,7 +3,7 @@ EAPI=7 -LUA_COMPAT=( lua5-{1..3} ) +LUA_COMPAT=( lua5-{1..4} luajit ) inherit desktop flag-o-matic lua-single toolchain-funcs xdg cmake diff --git a/games-strategy/war1gus/Manifest b/games-strategy/war1gus/Manifest index 3e030e66acef..27c10be561cd 100644 --- a/games-strategy/war1gus/Manifest +++ b/games-strategy/war1gus/Manifest @@ -1 +1,2 @@ DIST war1gus-2.4.3.tar.gz 436938 BLAKE2B 662c3e2d16d4ca3225a50ec28ff6ae11f9c309a02c1b71e26a28155012395091dec7833a4f32a0ee6c19119a9c0aa2aa96cb465b06937da8efdd54b040189778 SHA512 909dc3375a00a4ff05eb287e6a1e3414b084f51cda37fe73ab4d728eb2d13e3e0e8612700a90e000d67a9ddffb115fe41554a4ad9db9f68e0b62cdbc0d025ae0 +DIST war1gus-3.0.0.tar.gz 446245 BLAKE2B f58d8fe8248cc7cc661a5c2dabef9b13410eb3530bb045c03c54abeea8028e26ada3bd98d50680165b3ce35b17a08acba2b953b8c896de990cdbb3acf59cd4ae SHA512 fad712945e939fededf202181523b34945ba58ded5b5ea8089709860b63ad9c9766eb926293e5195c14f0dc3b8531ac0ae4654ab6b6718068648f9efc0fb817c diff --git a/games-strategy/war1gus/war1gus-3.0.0.ebuild b/games-strategy/war1gus/war1gus-3.0.0.ebuild new file mode 100644 index 000000000000..7871af95da19 --- /dev/null +++ b/games-strategy/war1gus/war1gus-3.0.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake xdg-utils + +DESCRIPTION="Warcraft: Orcs & Humans for the Stratagus game engine" +HOMEPAGE="https://wargus.github.io/war1gus.html + https://github.com/Wargus/war1gus" +SRC_URI="https://github.com/Wargus/war1gus/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + =games-engines/stratagus-${PV}*[theora] + media-libs/libpng:0= + sys-libs/zlib:= + x11-libs/gtk+:2 + x11-libs/libX11" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig" + +src_configure() { + local mycmakeargs=( + -DGAMEDIR="${EPREFIX}/usr/bin" + -DBINDIR="${EPREFIX}/usr/bin" + -DSTRATAGUS="${EPREFIX}/usr/bin/stratagus" + -DSHAREDIR="${EPREFIX}/usr/share/stratagus/war1gus" + -DICONDIR=/usr/share/icons/hicolor/64x64/apps + ) + cmake_src_configure +} + +pkg_postinst() { + elog "War1gus requires the data from the original game to run. The game" + elog "will ask you for the location of the game data and extract/convert" + elog "it automatically on the first run." + + if ! has_version media-video/ffmpeg || + ! has_version media-sound/timidity++ + then + elog + elog "If you did not convert the game data yet, you may want to install" + elog "the following optional dependencies:" + elog + elog "media-video/ffmpeg -- to convert game videos" + elog "media-sound/timidity++ -- to convert game music" + fi + + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/games-strategy/wargus/Manifest b/games-strategy/wargus/Manifest index 75a106a3ee0a..2a1683db4750 100644 --- a/games-strategy/wargus/Manifest +++ b/games-strategy/wargus/Manifest @@ -1,2 +1,3 @@ DIST wargus-2.4.1.tar.gz 45981981 BLAKE2B 8d80e5d781a1be1edf602f13d77b84e85fe2592fb0a784f1b25b5c9656eaf10a11c3241dfa71388c9a01a9e8fad15b1805a67ddb3157c2a0e86d967f3852869a SHA512 d468d9ad08907fbbfd02af0bca069d6a95d5303cd4f3d838c12bbfe6af0d48f695f9f49d446dbddeae2a91deb1eaa17875954eefdfbe5e25cd840c4454dc6ea0 DIST wargus-2.4.3.tar.gz 46635465 BLAKE2B be559e6efdba7542e9ed65f4ece5419b781b61d7d6d43b40418ca8dffc446fa7478f608d7f24696281c7acbda4dc5bf8d808feeb3376ae3e8a04b3372d18ace1 SHA512 0c9eca898146c44e211e0da7061cb605eb04ab113fd9ad0c51f9b92df8724a5b28aea9b7cf9bfadd44f0183f8b5c519d7da0050b260624f4f7da4b9f8aee458c +DIST wargus-3.0.0.tar.gz 4890178 BLAKE2B 7ab4a4b5e8171b2297e17f0338a5fd674cff7beb3457e33c7938c12f9a262d81b9faf2db6ae00fdbbef440624880c37bfe61c2b9957e943cf13d364544f58a65 SHA512 70bf6a5a3d489c9d88bf28e65eea85936ac42850b9c8f27c5cb4a7ba8ff28c609274235c735abb4de92e5c63113d4850adc1da313ff39cbdee797de6b9e1cc43 diff --git a/games-strategy/wargus/metadata.xml b/games-strategy/wargus/metadata.xml index 7750331dd2e3..68d9b24bc60d 100644 --- a/games-strategy/wargus/metadata.xml +++ b/games-strategy/wargus/metadata.xml @@ -9,6 +9,10 @@ <email>games@gentoo.org</email> <name>Gentoo Games Project</name> </maintainer> + <use> + <flag name="bne">Support extracting data from the Battle.net + Edition</flag> + </use> <upstream> <remote-id type="github">Wargus/wargus</remote-id> </upstream> diff --git a/games-strategy/wargus/wargus-3.0.0-r1.ebuild b/games-strategy/wargus/wargus-3.0.0-r1.ebuild new file mode 100644 index 000000000000..a15e86163b5b --- /dev/null +++ b/games-strategy/wargus/wargus-3.0.0-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake xdg-utils + +DESCRIPTION="Warcraft II for the Stratagus game engine" +HOMEPAGE="https://wargus.github.io/ + https://github.com/Wargus/wargus" +SRC_URI="https://github.com/Wargus/wargus/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+bne" + +RDEPEND=" + =games-engines/stratagus-${PV}*[theora] + media-libs/libpng:0= + sys-libs/zlib:= + x11-libs/gtk+:2 + x11-libs/libX11 + bne? ( app-arch/stormlib:= ) + !games-strategy/wargus-data" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig" + +pkg_pretend() { + if has_version games-strategy/wargus-data; then + ewarn "The system-wide install of game data via games-strategy/wargus-data" + ewarn "no longer works. The old data will be uninstalled after merging" + ewarn "this version of Wargus. If you would like to preserve it, please" + ewarn "abort the process and back /usr/share/stratagus/wargus up." + fi +} + +src_configure() { + local mycmakeargs=( + -DGAMEDIR="${EPREFIX}/usr/bin" + -DBINDIR="${EPREFIX}/usr/bin" + -DSTRATAGUS="${EPREFIX}/usr/bin/stratagus" + -DSHAREDIR="${EPREFIX}/usr/share/stratagus/wargus" + -DICONDIR=/usr/share/icons/hicolor/64x64/apps + -DWITH_STORMLIB=$(usex bne) + ) + cmake_src_configure +} + +pkg_postinst() { + elog "Wargus requires the data from the original game to run. The game" + elog "will ask you for the location of the game data and extract/convert" + elog "it automatically on the first run." + + if ! has_version media-video/ffmpeg || + ! has_version media-sound/cdparanoia + then + elog + elog "If you did not convert the game data yet, you may want to install" + elog "the following optional dependencies:" + elog + elog "media-video/ffmpeg -- to convert game videos" + elog "media-sound/cdparanoia -- to rip game music from the CD" + fi + + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/games-strategy/warzone2100/Manifest b/games-strategy/warzone2100/Manifest index a237586ef418..3b16c3772966 100644 --- a/games-strategy/warzone2100/Manifest +++ b/games-strategy/warzone2100/Manifest @@ -1,4 +1,5 @@ DIST warzone2100-3.2.3-qt_compile_fix.patch 680 BLAKE2B 1073ea1619640455326c63dc55bf031579c8e9cb0b1b159e4fb1f9e8aa63bfcc6985e91cb2667149e7cc4b354bf96726fc6b8f8a8f519375e0a88c4be21dcb69 SHA512 766698c25c02b4254424efdafb8aa7b37360c3c05d3cd2d6c7f9127cbdd6a25840f98e8e3aadd5d6af494b4632584e564214c1f20c0bd74eb637da305552e067 DIST warzone2100-3.2.3.tar.xz 81314060 BLAKE2B 231be8c24d1c0967adb0a76ac9e441c2ea9f835720df9951f74227988473d100b24bccbfe4b5882a36c63a798368ed1a1f871751b6b363d90a82fea48c44ba65 SHA512 4b1bc0a0bb50a8b4726a2762a922ee233b92f9835e38bbab80c159a9cb301df7434a73ba5acfb17404031467c02a9b3480d6a0d44906d70896311b3468141746 DIST warzone2100-3.3.0_src.tar.xz 86605304 BLAKE2B 70bad66966e31009de7f16a039525b2bc3e84a9991e7d95227f8789ceca7313a219044f41c0ceec0ce357e8368a30833d7dc1cc35e9575d9b56efa20b9e35c03 SHA512 876e36578472d9de4c00651af9b26a79bbbc85161d03c58e381aac90be710999b9091524425332e950ed42b79d872ace6848798829e7d3d7bb6ae7dae0003559 +DIST warzone2100-3.4.1.tar.xz 89169752 BLAKE2B a0f379e357c315e083f8ac1542297262abb48aae1f8a3e0666898e047749a8a108924b0dea000df1731fc94ccdce9e2768bbebd3333063a730931f7fbf9192a2 SHA512 26c026400e418ed3da94d96e7bb443c765ede3e0b347785ff8a9e687a5ad87afe03012c830fd509b927634484687efac951b2ef3417e7fe027ce0e684561ca84 DIST warzone2100-videos-2.2.wz 571937134 BLAKE2B 60b70a71bd920e2d72ded5d519b17db2f3db4b0289edadeb58059a21aba7038b95219dc44cb807754461d1a9bdca60f0d7698be68622b8bd64a55efa949622d3 SHA512 ca1a1af51296afdaca137114821508c5783f077090e665eae0f6df895855f57c43f84434706309e819417f5f35d1c649bd14e96dc9fbbb1252d30a4f9a223cf6 diff --git a/games-strategy/warzone2100/metadata.xml b/games-strategy/warzone2100/metadata.xml index 2441a0605afb..6a8f1bf17f71 100644 --- a/games-strategy/warzone2100/metadata.xml +++ b/games-strategy/warzone2100/metadata.xml @@ -15,5 +15,9 @@ <remote-id type="sourceforge">warzone2100</remote-id> <remote-id type="github">Warzone2100/warzone2100</remote-id> </upstream> + <use> + <flag name="discord">Enable Discord presence/join integration</flag> + <flag name="vulkan">Enable vulkan backend</flag> + </use> <origin>gentoo-staging</origin> </pkgmetadata> diff --git a/games-strategy/warzone2100/warzone2100-3.4.1.ebuild b/games-strategy/warzone2100/warzone2100-3.4.1.ebuild new file mode 100644 index 000000000000..47660916d09b --- /dev/null +++ b/games-strategy/warzone2100/warzone2100-3.4.1.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake desktop xdg + +MY_PV=$(ver_cut 1-2) +VIDEOS_PV=2.2 +VIDEOS_P=${PN}-videos-${VIDEOS_PV}.wz +DESCRIPTION="3D real-time strategy game" +HOMEPAGE="https://wz2100.net/" +SRC_URI="mirror://sourceforge/warzone2100/releases/${PV}/${PN}_src.tar.xz -> ${P}.tar.xz + videos? ( mirror://sourceforge/warzone2100/warzone2100/Videos/${VIDEOS_PV}/high-quality-en/sequences.wz -> ${VIDEOS_P} )" + +LICENSE="GPL-2+ CC-BY-SA-3.0 public-domain" +SLOT="0" +#[[ "${PV}" == *_beta* ]] || \ +KEYWORDS="~amd64 ~x86" +# upstream requested debug support +IUSE="debug discord nls videos vulkan" + +# TODO: unbundle miniupnpc and quesoglc +# quesoglc-0.7.2 is buggy: http://developer.wz2100.net/ticket/2828 +CDEPEND=" + >=dev-games/physfs-2[zip] + >=dev-libs/libsodium-1.0.14 + dev-libs/openssl:0= + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtopengl:5 + dev-qt/qtscript:5 + dev-qt/qtwidgets:5 + dev-qt/qtx11extras:5 + media-libs/freetype:2 + media-libs/glew:= + media-libs/harfbuzz + media-libs/libogg + media-libs/libpng:0 + media-libs/libsdl2[opengl,video,X] + media-libs/libtheora + media-libs/libvorbis + media-libs/openal + sys-libs/zlib + virtual/glu + virtual/opengl + x11-libs/libX11 + x11-libs/libXrandr + nls? ( virtual/libintl ) + vulkan? ( media-libs/libsdl2:=[vulkan] ) +" +DEPEND=" + ${CDEPEND} + app-text/asciidoc + dev-libs/fribidi + media-libs/fontconfig +" +RDEPEND=" + ${CDEPEND} + media-fonts/dejavu +" +BDEPEND=" + app-arch/zip + virtual/pkgconfig + nls? ( sys-devel/gettext ) +" + +S="${WORKDIR}/${PN}" + +src_unpack() { + unpack ${P}.tar.xz +} + +src_prepare() { + default + + sed -i -e 's/#top_builddir/top_builddir/' po/Makevars || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DWZ_DISTRIBUTOR="Gentoo" + -DWZ_ENABLE_WARNINGS_AS_ERRORS="OFF" + -DWZ_ENABLE_BACKEND_VULKAN="$(usex vulkan)" + -DWZ_PORTABLE="OFF" + -DBUILD_SHARED_LIBS="OFF" + -DENABLE_NLS="$(usex nls)" + -DENABLE_DISCORD="$(usex discord)" + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + asciidoc -b html5 doc/quickstartguide.asciidoc || die +} + +src_install() { + local HTML_DOCS=( doc/quickstartguide.html doc/docbook-xsl.css doc/ScriptingManual.htm ) + local DOCS=( README.md doc/images doc/Scripting.md doc/js-globals.md ) + default + + insinto /usr/bin + dobin "${BUILD_DIR}"/src/${PN} + + insinto /usr/share/${PN} + doins "${BUILD_DIR}"/data/base.wz + doins "${BUILD_DIR}"/data/mp.wz + if use videos ; then + newins "${DISTDIR}"/${VIDEOS_P} sequences.wz + fi + insinto /usr/share/${PN}/music + doins data/music/music.wpl + doins data/music/menu.ogg + doins data/music/track1.ogg + doins data/music/track2.ogg + doins data/music/track3.ogg + + doman "${BUILD_DIR}"/doc/warzone2100.6 + + doicon -s 128 icons/warzone2100.png + domenu icons/warzone2100.desktop +} |
