diff options
Diffstat (limited to 'games-engines/solarus/solarus-1.6.5.ebuild')
-rw-r--r-- | games-engines/solarus/solarus-1.6.5.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/games-engines/solarus/solarus-1.6.5.ebuild b/games-engines/solarus/solarus-1.6.5.ebuild new file mode 100644 index 000000000000..dd0d28447c5d --- /dev/null +++ b/games-engines/solarus/solarus-1.6.5.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-1 luajit ) + +inherit cmake lua-single optfeature virtualx + +DESCRIPTION="An open-source Zelda-like 2D game engine" +HOMEPAGE="https://www.solarus-games.org/" + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://gitlab.com/solarus-games/solarus.git" + EGIT_BRANCH="dev" + inherit git-r3 +else + SRC_URI="https://gitlab.com/solarus-games/solarus/-/archive/v${PV}/solarus-v${PV}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" +IUSE="doc" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND=" + ${LUA_DEPS} + dev-games/physfs + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + media-libs/libmodplug + >=media-libs/libsdl2-2.0.1[X,joystick,video] + media-libs/libvorbis + media-libs/openal + media-libs/sdl2-image[png] + >=media-libs/sdl2-ttf-2.0.12 +" + +DEPEND=" + ${RDEPEND} +" + +BDEPEND=" + doc? ( app-doc/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 +} + +src_compile() { + cmake_src_compile + if use doc ; then + cd doc && doxygen || die + fi +} + +src_test() { + # lua/bugs-{1200,1210} are GUI tests that require X + # With EAPI 8, one of the last tests hangs with >= j3 + virtx cmake_src_test -j1 +} + +src_install() { + cmake_src_install + use doc && dodoc -r doc/${PV%.*}/html/* +} + +pkg_postinst() { + optfeature "the Solarus Quest Editor" games-misc/solarus-quest-editor +} |