summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2021-02-05 22:12:54 +0300
committerAzamat H. Hackimov <azamat.hackimov@gmail.com>2021-02-05 22:26:09 +0300
commitea4cbcdf6c197569a3cda46666b2ed484a2c4b7d (patch)
tree292b84eaa073244a4aeb3215e68564ccb1e8b44d
parentgames-engines/bbge: remove package (diff)
downloadgamerlay-ea4cbcdf6c197569a3cda46666b2ed484a2c4b7d.tar.gz
gamerlay-ea4cbcdf6c197569a3cda46666b2ed484a2c4b7d.tar.bz2
gamerlay-ea4cbcdf6c197569a3cda46666b2ed484a2c4b7d.zip
games-engines/wyrmgus: update package
Migrate to EAPI=7, update ebuild Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
-rw-r--r--games-engines/wyrmgus/Manifest2
-rw-r--r--games-engines/wyrmgus/wyrmgus-2.7.1.ebuild81
-rw-r--r--games-engines/wyrmgus/wyrmgus-4.1.3.ebuild56
3 files changed, 57 insertions, 82 deletions
diff --git a/games-engines/wyrmgus/Manifest b/games-engines/wyrmgus/Manifest
index 2225a6a..3a6ef31 100644
--- a/games-engines/wyrmgus/Manifest
+++ b/games-engines/wyrmgus/Manifest
@@ -1 +1 @@
-DIST wyrmgus-2.7.1.tar.gz 1434681 SHA256 941af5ef29ad548fa4baed87321c71167f05c40965adf8ab3b2bef7ec1c70878 SHA512 e374fd04bb525169c0209c4979905fa06999d677ff6b3704e5db5766ab2e6a6cee11c231931797729f8a3a47acbdd5cc75a369b83fe247cb76ca2670a043d3e3 WHIRLPOOL 565d00cd61411d2b64c5ace44c4f280691f7c452bb6b5b5e0a0fde1852c42b4ceeea85695ef0e7cf19842d0c16459c0370299d634067f2acf73fe1a5d070cb70
+DIST wyrmgus-4.1.3.tar.gz 1550896 SHA256 0b53051a39f1f35b4bd4ef362e8ce59b38e0d748e3af32be3386409c8797f21a SHA512 44c19dabd3bc5d687d6f815a39a108bac6eff33a9e54f054e6bc339340f4ad38a385e02ad0f6a6b01419efa4e36d2baadea1f56520727e25983b625de2c1d250 WHIRLPOOL f8e55b415d0775ef2811d36ce3de3a86b85ef706e414d5fb254989468e8725aa06ade5a9fe0157926bbde907ba2f2fb77f22a2c1ee6810f8448dc005f63f35f2
diff --git a/games-engines/wyrmgus/wyrmgus-2.7.1.ebuild b/games-engines/wyrmgus/wyrmgus-2.7.1.ebuild
deleted file mode 100644
index ff60484..0000000
--- a/games-engines/wyrmgus/wyrmgus-2.7.1.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit cmake-utils
-
-DESCRIPTION="Modified Stratagus engine for Wyrmsun"
-HOMEPAGE="https://andrettin.github.io/"
-SRC_URI="https://github.com/Andrettin/Wyrmgus/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="debug doc mikmod mng ogg opengl static theora"
-
-RDEPEND="dev-lang/lua:0
- dev-lua/toluapp
- media-libs/libpng:=
- media-libs/libsdl
- media-sound/fluidsynth
- mikmod? ( media-sound/mikmod )
- mng? (
- static? ( media-libs/libmng[static-libs] )
- !static? ( media-libs/libmng )
- )
- ogg? (
- static? ( media-libs/libvorbis[static-libs] )
- !static? ( media-libs/libvorbis )
- )
- theora? (
- static? ( media-libs/libtheora[static-libs] )
- !static? ( media-libs/libtheora )
- )
- static? (
- dev-db/sqlite:3[static-libs]
- dev-games/physfs[static-libs]
- media-sound/oaml[static-libs]
- sys-libs/zlib[static-libs]
- x11-libs/libICE[static-libs]
- x11-libs/libXext[static-libs]
- )
- !static? (
- dev-games/physfs
- dev-db/sqlite:3
- media-sound/oaml
- sys-libs/zlib
- x11-libs/libICE
- x11-libs/libXext
- )
-"
-
-DEPEND="${RDEPEND}
- doc? ( app-doc/doxygen )"
-
-S="${WORKDIR}/${PN/w/W}-${PV}"
-
-src_prepare() {
- sed -i 's#\(install(TARGETS stratagus DESTINATION \)${GAMEDIR})#\1${BINDIR})#' CMakeLists.txt
- eapply_user
-}
-
-src_configure() {
- local mycmakeargs=(
- -DENABLE_STATIC=$(usex static)
- -DENABLE_DOC=$(usex doc)
- -DWITH_MIKMOD=$(usex mikmod)
- -DWITH_MNG=$(usex mng)
- -DWITH_OGGVORBIS=$(usex ogg)
- -DWITH_THEORA=$(usex theora)
- -DWITH_RENDERER=$(usex opengl OpenGL NativeSDL)
- -DWITH_BZIP2=ON
- -DWITH_FLUIDSYNTH=ON
- -DWITH_PHYSFS=ON
- )
- cmake-utils_src_configure
-}
-
-src_install() {
- newbin "${BUILD_DIR}/stratagus" wyrmgus
-}
diff --git a/games-engines/wyrmgus/wyrmgus-4.1.3.ebuild b/games-engines/wyrmgus/wyrmgus-4.1.3.ebuild
new file mode 100644
index 0000000..ab5d989
--- /dev/null
+++ b/games-engines/wyrmgus/wyrmgus-4.1.3.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-1 )
+
+inherit cmake lua-single
+
+DESCRIPTION="Modified Stratagus engine for Wyrmsun"
+HOMEPAGE="https://andrettin.github.io/"
+SRC_URI="https://github.com/Andrettin/Wyrmgus/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="bzip2 doc opengl X"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+RDEPEND="
+ ${LUA_DEPS}
+ bzip2? ( app-arch/bzip2:= )
+ opengl? ( virtual/opengl )
+ X? ( x11-libs/libX11 )
+ dev-libs/boost:=
+ dev-lua/toluapp
+ dev-qt/qtcore
+ dev-qt/qtgui
+ dev-qt/qtlocation
+ dev-qt/qtmultimedia
+ dev-qt/qtwidgets
+ media-libs/libsdl
+ media-libs/sdl-mixer
+ sys-libs/zlib
+"
+
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+S="${WORKDIR}/Wyrmgus-${PV}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_DOC=$(usex doc)
+ -DWITH_RENDERER=$(usex opengl OpenGL NativeSDL)
+ -DWITH_BZIP2=$(usex bzip2)
+ -DWITH_X11=$(usex X)
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ dobin "${BUILD_DIR}/wyrmgus"
+ dodoc README.MD
+}