summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2021-09-03 09:24:44 +0300
committerJoonas Niilola <juippis@gentoo.org>2021-09-03 09:25:42 +0300
commit433ef0b0cd6ab479df919435abd720f2fa71867f (patch)
tree92fbe51d88ddc824af3085acc5b728ffc01643ad /app-emulation
parentdev-ruby/aws-sigv4: add 1.4.0 (diff)
downloadgentoo-433ef0b0cd6ab479df919435abd720f2fa71867f.tar.gz
gentoo-433ef0b0cd6ab479df919435abd720f2fa71867f.tar.bz2
gentoo-433ef0b0cd6ab479df919435abd720f2fa71867f.zip
app-emulation/virt-viewer: fix native-symlinks build
Closes: https://bugs.gentoo.org/811408 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/virt-viewer/virt-viewer-10.0_p20210730.ebuild15
1 files changed, 13 insertions, 2 deletions
diff --git a/app-emulation/virt-viewer/virt-viewer-10.0_p20210730.ebuild b/app-emulation/virt-viewer/virt-viewer-10.0_p20210730.ebuild
index f0e4ed5973db..628627555ce9 100644
--- a/app-emulation/virt-viewer/virt-viewer-10.0_p20210730.ebuild
+++ b/app-emulation/virt-viewer/virt-viewer-10.0_p20210730.ebuild
@@ -3,7 +3,9 @@
EAPI=7
-inherit meson xdg
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit meson python-any-r1 xdg
DESCRIPTION="Graphical console client for connecting to virtual machines"
HOMEPAGE="https://virt-manager.org/"
@@ -29,12 +31,21 @@ RDEPEND="dev-libs/glib:2
vnc? ( >=net-libs/gtk-vnc-0.5.0[sasl?,gtk3(+)] )"
DEPEND="${RDEPEND}
spice? ( >=app-emulation/spice-protocol-0.12.10 )"
-BDEPEND="dev-lang/perl
+BDEPEND="${PYTHON_DEPS}
+ dev-lang/perl
>=dev-util/intltool-0.35.0
virtual/pkgconfig"
REQUIRED_USE="|| ( spice vnc )"
+src_prepare() {
+ default
+
+ # Fix python shebangs for python-exec[-native-symlinks], #811408
+ local shebangs=($(grep -rl "#!/usr/bin/env python3" || die))
+ python_fix_shebang -q ${shebangs[*]}
+}
+
src_configure() {
local emesonargs=(
$(meson_feature libvirt libvirt)