Skip to content

Commit

Permalink
app-emulation/virt-viewer: fix native-symlinks build
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/811408
Signed-off-by: Joonas Niilola <[email protected]>
  • Loading branch information
juippis committed Sep 3, 2021
1 parent b2cac13 commit 433ef0b
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions app-emulation/virt-viewer/virt-viewer-10.0_p20210730.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand All @@ -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)
Expand Down

0 comments on commit 433ef0b

Please sign in to comment.