diff options
author | 2020-12-15 17:52:15 +0100 | |
---|---|---|
committer | 2020-12-15 19:45:09 +0100 | |
commit | 9a945a1a2cac0e551f654ef402dccdb5238cc5a9 (patch) | |
tree | e2a40f5fbef4f8e83cede433f68a0a635e826a53 | |
parent | mail-client/thunderbird-bin: bump to v78.6.0 (diff) | |
download | gentoo-9a945a1a2cac0e551f654ef402dccdb5238cc5a9.tar.gz gentoo-9a945a1a2cac0e551f654ef402dccdb5238cc5a9.tar.bz2 gentoo-9a945a1a2cac0e551f654ef402dccdb5238cc5a9.zip |
games-engines/stratagus: migrate to lua-single.eclass
Locked to lua5-1, both in upstream build scripts and by depending on
dev-lua/toluapp.
Closes: https://bugs.gentoo.org/752951
Signed-off-by: Marek Szuba <marecki@gentoo.org>
-rw-r--r-- | games-engines/stratagus/stratagus-2.4.3-r100.ebuild | 71 | ||||
-rw-r--r-- | profiles/package.mask | 1 |
2 files changed, 72 insertions, 0 deletions
diff --git a/games-engines/stratagus/stratagus-2.4.3-r100.ebuild b/games-engines/stratagus/stratagus-2.4.3-r100.ebuild new file mode 100644 index 000000000000..5b096ccea6d1 --- /dev/null +++ b/games-engines/stratagus/stratagus-2.4.3-r100.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-1 ) + +inherit cmake lua-single + +DESCRIPTION="A realtime strategy game engine" +HOMEPAGE="https://wargus.github.io/stratagus.html + https://github.com/Wargus/stratagus" +SRC_URI="https://github.com/Wargus/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bzip2 debug doc fluidsynth mikmod mng theora vorbis" +REQUIRED_USE="${LUA_REQUIRED_USE} + theora? ( vorbis )" + +RDEPEND="${LUA_DEPS} + dev-db/sqlite:3 + dev-lua/toluapp[${LUA_SINGLE_USEDEP}] + media-libs/libpng:0 + virtual/opengl + x11-libs/libX11 + media-libs/libsdl[sound,opengl,video] + sys-libs/zlib + bzip2? ( app-arch/bzip2 ) + fluidsynth? ( media-sound/fluidsynth ) + mikmod? ( media-libs/libmikmod ) + mng? ( media-libs/libmng ) + vorbis? ( + media-libs/libogg + media-libs/libvorbis + theora? ( media-libs/libtheora ) + )" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +PATCHES=( + "${FILESDIR}/${PN}"-2.3.0-doc.patch +) + +src_prepare() { + sed -i -e 's:-Werror::' CMakeLists.txt || die + cmake_src_prepare +} + +src_configure() { + # there are in-source switches + use debug && CMAKE_BUILD_TYPE=Debug + + local mycmakeargs=( + -DGAMEDIR="/usr/bin" + -DDOCDIR="/usr/share/doc/${PF}" + -DWITH_BZIP2=$(usex bzip2) + -DWITH_FLUIDSYNTH=$(usex fluidsynth) + -DWITH_MIKMOD=$(usex mikmod) + -DWITH_MNG=$(usex mng) + -DWITH_OGGVORBIS=$(usex vorbis) + -DWITH_THEORA=$(usex theora) + -DENABLE_DOC=$(usex doc) + -DENABLE_DEV=ON + ) + + cmake_src_configure +} diff --git a/profiles/package.mask b/profiles/package.mask index 99f2521a5e98..60a835a2c5da 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -570,6 +570,7 @@ kde-apps/kdebase-meta:5 >=games-engines/love-0.8.0-r100:0.8 >=games-engines/love-11.3-r100:0 >=games-engines/solarus-1.3.1-r100 +>=games-engines/stratagus-2.4.3-r100 >=games-puzzle/fish-fillets-1.0.1-r100 >=games-roguelike/crossfire-client-1.71.0-r100 >=games-roguelike/stone-soup-0.25.1-r100 |