blob: 6230d79f935b44ff7323b501b6341899070c909f (
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
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LUA_COMPAT=( lua5-{1,3,4} luajit )
inherit cmake lua-single xdg-utils
DESCRIPTION="Quest editor for Solarus 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.bz2"
S="${WORKDIR}/solarus-v${PV}"
KEYWORDS="~amd64"
fi
CMAKE_USE_DIR="${S}"/editor
LICENSE="GPL-3+"
SLOT="0"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RDEPEND="
${LUA_DEPS}
dev-games/physfs
dev-qt/qtbase:6[gui,opengl,widgets]
media-libs/libmodplug
>=media-libs/libsdl2-2.0.1[X,joystick,video]
media-libs/libvorbis
media-libs/openal
media-libs/sdl2-image[png]
>=dev-qt/qlementine-1.4.0
~games-engines/solarus-${PV}
"
DEPEND="${RDEPEND}"
BDEPEND="dev-qt/qttools:6[linguist]"
src_configure() {
local mycmakeargs=(
-DSOLARUS_USE_SYSTEM_QLEMENTINE=ON
-DSOLARUS_USE_LOCAL_QLEMENTINE=OFF
)
cmake_src_configure
}
pkg_postinst() {
xdg_icon_cache_update
}
pkg_postrm() {
xdg_icon_cache_update
}
|