mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user