1 |
|
# Copyright 1999-2024 Gentoo Authors
|
|
1 |
# Copyright 1999-2025 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
PYTHON_COMPAT=( python3_{10..13} )
|
|
6 |
PYTHON_COMPAT=( python3_{11..14} )
|
7 |
7 |
inherit meson python-any-r1 readme.gentoo-r1 xdg-utils
|
8 |
8 |
|
9 |
9 |
DESCRIPTION="SPICE server"
|
... | ... | |
15 |
15 |
DEPEND="~app-emulation/spice-protocol-9999"
|
16 |
16 |
else
|
17 |
17 |
SRC_URI="https://www.spice-space.org/download/releases/spice-server/${P}.tar.bz2"
|
18 |
|
KEYWORDS="amd64 arm64 ~loong ppc64 ~riscv x86"
|
|
18 |
KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
|
19 |
19 |
fi
|
20 |
20 |
|
21 |
21 |
LICENSE="LGPL-2.1"
|
22 |
22 |
SLOT="0"
|
23 |
|
IUSE="gstreamer lz4 sasl smartcard static-libs test"
|
|
23 |
IUSE="gstreamer lz4 opus sasl smartcard static-libs test"
|
24 |
24 |
RESTRICT="!test? ( test )"
|
25 |
25 |
|
26 |
26 |
# The libspice-server only uses the headers of libcacard
|
... | ... | |
32 |
32 |
media-libs/libjpeg-turbo:0=[static-libs(+)?]
|
33 |
33 |
sys-libs/zlib[static-libs(+)?]
|
34 |
34 |
>=x11-libs/pixman-0.17.7[static-libs(+)?]
|
|
35 |
virtual/libudev
|
35 |
36 |
lz4? ( app-arch/lz4:0=[static-libs(+)?] )
|
|
37 |
opus? ( media-libs/opus[static-libs(+)?] )
|
36 |
38 |
smartcard? ( >=app-emulation/libcacard-2.5.1 )
|
37 |
39 |
sasl? ( dev-libs/cyrus-sasl[static-libs(+)?] )
|
38 |
40 |
gstreamer? (
|
... | ... | |
42 |
44 |
"
|
43 |
45 |
DEPEND+="
|
44 |
46 |
${RDEPEND}
|
45 |
|
>=app-emulation/spice-protocol-0.14.3
|
|
47 |
>=app-emulation/spice-protocol-0.14.5
|
46 |
48 |
smartcard? ( app-emulation/qemu[smartcard] )
|
47 |
49 |
test? ( net-libs/glib-networking )
|
48 |
50 |
"
|
... | ... | |
52 |
54 |
virtual/pkgconfig
|
53 |
55 |
$(python_gen_any_dep '
|
54 |
56 |
>=dev-python/pyparsing-1.5.6-r2[${PYTHON_USEDEP}]
|
55 |
|
dev-python/six[${PYTHON_USEDEP}]
|
56 |
57 |
')
|
57 |
58 |
"
|
58 |
59 |
|
59 |
60 |
python_check_deps() {
|
60 |
61 |
python_has_version -b ">=dev-python/pyparsing-1.5.6-r2[${PYTHON_USEDEP}]"
|
61 |
|
python_has_version -b "dev-python/six[${PYTHON_USEDEP}]"
|
62 |
62 |
}
|
63 |
63 |
|
64 |
64 |
pkg_setup() {
|
... | ... | |
80 |
80 |
-Dmanual=false
|
81 |
81 |
$(meson_use lz4)
|
82 |
82 |
$(meson_use sasl)
|
|
83 |
$(meson_feature opus)
|
83 |
84 |
$(meson_feature smartcard)
|
84 |
85 |
$(meson_use test tests)
|
85 |
86 |
)
|