Сравнение solarus-quest-editor-1.6.5 с solarus-quest-editor-9999

/usr/portage/games-misc/solarus-quest-editor/solarus-quest-editor-9999.ebuild 2026-03-18 11:46:04.252388215 +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 19
	KEYWORDS="~amd64"
20
	S="${WORKDIR}/solarus-quest-editor-v${PV}"
21 20
fi
22 21

  
23 22
LICENSE="GPL-3+"
......
25 24

  
26 25
REQUIRED_USE="${LUA_REQUIRED_USE}"
27 26

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

  
43 40
DEPEND="
44 41
	${RDEPEND}
45
	~games-engines/solarus-${PV}
46 42
"
47 43

  
48
PATCHES=(
49
	"${FILESDIR}/${P}-fix-segfault.patch"
50
)
44
if ! [[ ${PV} == 9999 ]]; then
45
	S="${WORKDIR}/solarus-v${PV}"
46
fi
47

  
48
CMAKE_USE_DIR=${S}/editor
51 49

  
52 50
src_configure() {
53
	local mycmakeargs=( -DSOLARUS_USE_LUAJIT="$(usex lua_single_target_luajit)" )
51
	local mycmakeargs=(
52
		-DSOLARUS_USE_SYSTEM_QLEMENTINE=ON
53
		-DSOLARUS_USE_LOCAL_QLEMENTINE=OFF
54
	)
54 55
	cmake_src_configure
55 56
}
57

  
58
src_compile() {
59
	cmake_src_compile
60
}
61

  
62
src_install() {
63
	cmake_src_install
64
}
65

  
66
pkg_postinst() {
67
	xdg_icon_cache_update
68
}
69

  
70
pkg_postrm() {
71
	xdg_icon_cache_update
72
}
Спасибо!