blob: 28ba18e83b785ed415d13789a94f7d9f381e64c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Copyright 1999-2024 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-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
}
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
}
|