Сравнение waylandpp-1.0.0-r1 с waylandpp-9999

/usr/portage/dev-cpp/waylandpp/waylandpp-9999.ebuild 2026-04-18 12:17:38.868954141 +0300
1
# Copyright 1999-2024 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
inherit cmake
6
inherit cmake toolchain-funcs
7 7

  
8 8
DESCRIPTION="Wayland C++ bindings"
9 9
HOMEPAGE="https://github.com/NilsBrause/waylandpp"
10 10

  
11 11
LICENSE="MIT"
12
IUSE="doc"
13 12
SLOT="0/$(ver_cut 1-2)"
13
IUSE="doc"
14 14

  
15 15
if [[ ${PV} == *9999 ]] ; then
16 16
	EGIT_REPO_URI="https://github.com/NilsBrause/waylandpp.git"
17 17
	inherit git-r3
18 18
else
19 19
	SRC_URI="https://github.com/NilsBrause/waylandpp/archive/${PV}.tar.gz -> ${P}.tar.gz"
20
	KEYWORDS="amd64 ~arm arm64 ~riscv x86"
20
	KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
21 21
fi
22 22

  
23
RDEPEND="
24
	>=dev-libs/wayland-1.11.0
25
	media-libs/mesa[wayland]
23
BDEPEND="
26 24
	>=dev-libs/pugixml-1.9-r1
27 25
"
26
RDEPEND="${BDEPEND}
27
	>=dev-libs/wayland-1.11.0
28
"
28 29
DEPEND="${RDEPEND}
30
	media-libs/libglvnd
29 31
	doc? (
30 32
		app-text/doxygen
31 33
		media-gfx/graphviz
32 34
	)
33
	"
34

  
35
PATCHES=(
36
	"${FILESDIR}"/${PN}-1.0.0-gcc-13.patch
37
)
35
"
38 36

  
39 37
src_configure() {
40
	local mycmakeargs=(
38
	unset BUILD_NATIVE
39
	local mycmakeargs
40

  
41
	if tc-is-cross-compiler; then
42
		mycmakeargs=(
43
			-DBUILD_DOCUMENTATION=off
44
			-DBUILD_LIBRARIES=off
45
		)
46
		BUILD_NATIVE="${WORKDIR}/${P}_native"
47
		BUILD_DIR="${BUILD_NATIVE}" tc-env_build cmake_src_configure
48
	fi
49

  
50
	mycmakeargs=(
41 51
		-DBUILD_DOCUMENTATION=$(usex doc)
52
		${BUILD_NATIVE+-DWAYLAND_SCANNERPP="${BUILD_NATIVE}"/wayland-scanner++}
42 53
	)
43

  
44 54
	cmake_src_configure
45 55
}
56

  
57
src_compile() {
58
	if tc-is-cross-compiler; then
59
		BUILD_DIR="${BUILD_NATIVE}" cmake_src_compile
60
	fi
61

  
62
	cmake_src_compile
63
}
Спасибо!