gentoo-ebuilds/x11-drivers/xf86-video-qxl/xf86-video-qxl-0.1.6.ebuild
Matt Turner b10c1403be
x11-drivers/xf86-video-qxl: Add Python 3.13 compatibility
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2025-03-18 21:06:44 -04:00

44 lines
812 B
Bash

# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..13} )
inherit python-single-r1 xorg-3
DESCRIPTION="QEMU QXL paravirt video driver"
KEYWORDS="amd64 ~loong x86"
IUSE="xspice"
REQUIRED_USE="xspice? ( ${PYTHON_REQUIRED_USE} )"
RDEPEND="
xspice? (
app-emulation/spice
${PYTHON_DEPS}
)
x11-base/xorg-server[-minimal]
>=x11-libs/libdrm-2.4.46"
DEPEND="
${RDEPEND}
>=app-emulation/spice-protocol-0.12.0
x11-base/xorg-proto"
BDEPEND="virtual/pkgconfig"
pkg_setup() {
use xspice && python-single-r1_pkg_setup
xorg-3_pkg_setup
}
src_prepare() {
xorg-3_src_prepare
use xspice && python_fix_shebang scripts
}
src_configure() {
local XORG_CONFIGURE_OPTIONS=(
$(use_enable xspice)
)
xorg-3_src_configure
}