diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-12-25 12:24:25 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-12-25 12:25:22 +0100 |
commit | 38e57dab26351744aa79ba499b5f04fe1a580431 (patch) | |
tree | 54ec540eeb2311993a23a310900ac298dbfaa817 /games-engines | |
parent | dev-tcltk/tls: do not strip shared files (diff) | |
download | gentoo-38e57dab26351744aa79ba499b5f04fe1a580431.tar.gz gentoo-38e57dab26351744aa79ba499b5f04fe1a580431.tar.bz2 gentoo-38e57dab26351744aa79ba499b5f04fe1a580431.zip |
games-engines/stratagus: Bump the lua-single version to 3.0.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'games-engines')
-rw-r--r-- | games-engines/stratagus/stratagus-3.0.0-r100.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/games-engines/stratagus/stratagus-3.0.0-r100.ebuild b/games-engines/stratagus/stratagus-3.0.0-r100.ebuild new file mode 100644 index 000000000000..5af50ed30834 --- /dev/null +++ b/games-engines/stratagus/stratagus-3.0.0-r100.ebuild @@ -0,0 +1,74 @@ +# 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 optfeature + +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/3" +KEYWORDS="~amd64 ~x86" +IUSE="bzip2 debug doc 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 + x11-libs/libX11 + media-libs/libsdl2[sound,opengl,video] + media-libs/sdl2-mixer[vorbis] + media-libs/sdl2-image[png] + sys-libs/zlib + bzip2? ( app-arch/bzip2 ) + 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_MNG=$(usex mng) + -DWITH_OGGVORBIS=$(usex vorbis) + -DWITH_THEORA=$(usex theora) + -DENABLE_DOC=$(usex doc) + -DENABLE_DEV=ON + ) + + cmake_src_configure +} + +pkg_postinst() { + optfeature "MIDI music support" "media-libs/sdl2-mixer[midi]" +} |