games-engines/solarus: Consolidate live switches, add missing DEPEND

Bug: https://bugs.gentoo.org/953383
Closes: https://bugs.gentoo.org/879529
Closes: https://bugs.gentoo.org/923398
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2026-03-18 19:59:13 +01:00
parent 7e86deed1f
commit f2a6280c2b
2 changed files with 10 additions and 20 deletions

View File

@@ -7,7 +7,7 @@ LUA_COMPAT=( lua5-1 luajit )
inherit cmake lua-single optfeature virtualx
DESCRIPTION="An open-source Zelda-like 2D game engine"
DESCRIPTION="Open-source Zelda-like 2D game engine"
HOMEPAGE="https://www.solarus-games.org/"
if [[ ${PV} == 9999 ]]; then
@@ -16,6 +16,7 @@ if [[ ${PV} == 9999 ]]; then
inherit git-r3
else
SRC_URI="https://gitlab.com/solarus-games/solarus/-/archive/v${PV}/solarus-v${PV}.tar.bz2"
S="${WORKDIR}/solarus-v${PV}"
KEYWORDS="~amd64 ~x86"
fi
@@ -36,19 +37,13 @@ RDEPEND="
media-libs/sdl2-image[png]
>=media-libs/sdl2-ttf-2.0.12
"
DEPEND="
${RDEPEND}
DEPEND="${RDEPEND}
media-libs/glm
"
BDEPEND="
doc? ( app-text/doxygen )
"
if ! [[ ${PV} == 9999 ]]; then
S="${WORKDIR}/solarus-v${PV}"
fi
src_configure() {
local mycmakeargs=( -DSOLARUS_USE_LUAJIT="$(usex lua_single_target_luajit)" )
cmake_src_configure
@@ -73,5 +68,5 @@ src_install() {
}
pkg_postinst() {
optfeature "the Solarus Quest Editor" games-misc/solarus-quest-editor
optfeature "the Solarus Quest Editor" games-misc/solarus-quest-editor
}

View File

@@ -7,7 +7,7 @@ LUA_COMPAT=( lua5-1 luajit )
inherit cmake lua-single optfeature virtualx
DESCRIPTION="An open-source Zelda-like 2D game engine"
DESCRIPTION="Open-source Zelda-like 2D game engine"
HOMEPAGE="https://www.solarus-games.org/"
if [[ ${PV} == 9999 ]]; then
@@ -16,6 +16,7 @@ if [[ ${PV} == 9999 ]]; then
inherit git-r3
else
SRC_URI="https://gitlab.com/solarus-games/solarus/-/archive/v${PV}/solarus-v${PV}.tar.bz2"
S="${WORKDIR}/solarus-v${PV}"
KEYWORDS="~amd64 ~x86"
fi
@@ -36,19 +37,13 @@ RDEPEND="
media-libs/sdl2-image[png]
>=media-libs/sdl2-ttf-2.0.12
"
DEPEND="
${RDEPEND}
DEPEND="${RDEPEND}
media-libs/glm
"
BDEPEND="
doc? ( app-text/doxygen )
"
if ! [[ ${PV} == 9999 ]]; then
S="${WORKDIR}/solarus-v${PV}"
fi
src_configure() {
local mycmakeargs=( -DSOLARUS_USE_LUAJIT="$(usex lua_single_target_luajit)" )
cmake_src_configure
@@ -73,5 +68,5 @@ src_install() {
}
pkg_postinst() {
optfeature "the Solarus Quest Editor" games-misc/solarus-quest-editor
optfeature "the Solarus Quest Editor" games-misc/solarus-quest-editor
}