Diff solarus-quest-editor-1.6.5 with a solarus-quest-editor-9999

/usr/portage/games-misc/solarus-quest-editor/solarus-quest-editor-9999.ebuild 2026-03-28 11:46:07.766147050 +0300
1
# Copyright 2022 Gentoo Authors
1
# Copyright 1999-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6 6
LUA_COMPAT=( lua5-1 luajit )
7 7

  
8
inherit cmake lua-single
8
inherit cmake lua-single xdg-utils
9 9

  
10
DESCRIPTION="A graphical user interface to create and modify quests for the Solarus engine"
11
HOMEPAGE="https://www.solarus-games.org"
10
DESCRIPTION="Quest editor for Solarus game engine"
11
HOMEPAGE="https://www.solarus-games.org/"
12 12

  
13 13
if [[ ${PV} == 9999 ]]; then
14
	EGIT_REPO_URI="https://gitlab.com/solarus-games/solarus-quest-editor.git"
14
	EGIT_REPO_URI="https://gitlab.com/solarus-games/solarus.git"
15 15
	EGIT_BRANCH="dev"
16 16
	inherit git-r3
17 17
else
18
	SRC_URI="https://gitlab.com/solarus-games/solarus-quest-editor/-/archive/v${PV}/solarus-quest-editor-v${PV}.tar.gz"
18
	SRC_URI="https://gitlab.com/solarus-games/solarus/-/archive/v${PV}/solarus-v${PV}.tar.bz2"
19
	S="${WORKDIR}/solarus-v${PV}"
19 20
	KEYWORDS="~amd64"
20
	S="${WORKDIR}/solarus-quest-editor-v${PV}"
21 21
fi
22 22

  
23
CMAKE_USE_DIR="${S}"/editor
24

  
23 25
LICENSE="GPL-3+"
24 26
SLOT="0"
25 27

  
26 28
REQUIRED_USE="${LUA_REQUIRED_USE}"
27 29

  
28
# Upstream (and their CMake) claim that all of these are required deps
29 30
RDEPEND="
30 31
	${LUA_DEPS}
31 32
	dev-games/physfs
32
	dev-qt/qtcore:5
33
	dev-qt/qtgui:5
34
	dev-qt/qtwidgets:5
33
	dev-qt/qtbase:6[gui,opengl,widgets]
35 34
	media-libs/libmodplug
36 35
	>=media-libs/libsdl2-2.0.1[X,joystick,video]
37 36
	media-libs/libvorbis
38 37
	media-libs/openal
39 38
	media-libs/sdl2-image[png]
40
	>=media-libs/sdl2-ttf-2.0.12
41
"
42

  
43
DEPEND="
44
	${RDEPEND}
39
	>=dev-qt/qlementine-1.4.0
45 40
	~games-engines/solarus-${PV}
46 41
"
47

  
48
PATCHES=(
49
	"${FILESDIR}/${P}-fix-segfault.patch"
50
)
42
DEPEND="${RDEPEND}"
43
BDEPEND="dev-qt/qttools:6[linguist]"
51 44

  
52 45
src_configure() {
53
	local mycmakeargs=( -DSOLARUS_USE_LUAJIT="$(usex lua_single_target_luajit)" )
46
	local mycmakeargs=(
47
		-DSOLARUS_USE_SYSTEM_QLEMENTINE=ON
48
		-DSOLARUS_USE_LOCAL_QLEMENTINE=OFF
49
	)
54 50
	cmake_src_configure
55 51
}
52

  
53
pkg_postinst() {
54
	xdg_icon_cache_update
55
}
56

  
57
pkg_postrm() {
58
	xdg_icon_cache_update
59
}
Thank you!