1 |
commit: 81bd88eda771bb3c8ba971ead572c8e608a68cfc |
2 |
Author: Matt Jolly <Matt.Jolly <AT> footclan <DOT> ninja> |
3 |
AuthorDate: Fri Aug 19 05:04:54 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 19 23:35:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81bd88ed |
7 |
|
8 |
app-emulation/virt-manager: update live |
9 |
|
10 |
Signed-off-by: Matt Jolly <Matt.Jolly <AT> footclan.ninja> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/26922 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
.../virt-manager/virt-manager-9999.ebuild | 50 +++++++++++----------- |
15 |
1 file changed, 26 insertions(+), 24 deletions(-) |
16 |
|
17 |
diff --git a/app-emulation/virt-manager/virt-manager-9999.ebuild b/app-emulation/virt-manager/virt-manager-9999.ebuild |
18 |
index b596c743f947..1957dacecac0 100644 |
19 |
--- a/app-emulation/virt-manager/virt-manager-9999.ebuild |
20 |
+++ b/app-emulation/virt-manager/virt-manager-9999.ebuild |
21 |
@@ -1,9 +1,9 @@ |
22 |
# Copyright 1999-2022 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
-EAPI=7 |
26 |
+EAPI=8 |
27 |
|
28 |
-PYTHON_COMPAT=( python3_{8,9,10} ) |
29 |
+PYTHON_COMPAT=( python3_{8..11} ) |
30 |
DISTUTILS_SINGLE_IMPL=1 |
31 |
|
32 |
DISTUTILS_USE_SETUPTOOLS=no |
33 |
@@ -27,31 +27,35 @@ SLOT="0" |
34 |
IUSE="gtk policykit sasl" |
35 |
|
36 |
RDEPEND="${PYTHON_DEPS} |
37 |
+ gtk? ( |
38 |
+ >=net-libs/gtk-vnc-0.3.8[gtk3(+),introspection] |
39 |
+ gnome-base/dconf |
40 |
+ net-misc/spice-gtk[usbredir,gtk3,introspection,sasl?] |
41 |
+ policykit? ( sys-auth/polkit[introspection] ) |
42 |
+ sys-apps/dbus[X] |
43 |
+ x11-libs/gtk+:3[introspection] |
44 |
+ x11-libs/gtksourceview:4[introspection] |
45 |
+ x11-libs/vte:2.91[introspection] |
46 |
+ ) |
47 |
app-cdr/cdrtools |
48 |
>=app-emulation/libvirt-glib-1.0.0[introspection] |
49 |
$(python_gen_cond_dep ' |
50 |
+ >=dev-python/libvirt-python-6.10.0[${PYTHON_USEDEP}] |
51 |
dev-libs/libxml2[python,${PYTHON_USEDEP}] |
52 |
dev-python/argcomplete[${PYTHON_USEDEP}] |
53 |
- >=dev-python/libvirt-python-6.10.0[${PYTHON_USEDEP}] |
54 |
dev-python/pygobject:3[${PYTHON_USEDEP}] |
55 |
dev-python/requests[${PYTHON_USEDEP}] |
56 |
- dev-python/tqdm[${PYTHON_USEDEP}] |
57 |
') |
58 |
>=sys-libs/libosinfo-0.2.10[introspection] |
59 |
- gtk? ( |
60 |
- gnome-base/dconf |
61 |
- >=net-libs/gtk-vnc-0.3.8[gtk3(+),introspection] |
62 |
- net-misc/spice-gtk[usbredir,gtk3,introspection,sasl?] |
63 |
- x11-libs/gtk+:3[introspection] |
64 |
- x11-libs/gtksourceview:4[introspection] |
65 |
- x11-libs/vte:2.91[introspection] |
66 |
- policykit? ( sys-auth/polkit[introspection] ) |
67 |
- )" |
68 |
+ " |
69 |
DEPEND="${RDEPEND}" |
70 |
BDEPEND="dev-python/docutils" |
71 |
|
72 |
DOCS=( README.md NEWS.md ) |
73 |
|
74 |
+# Doesn't seem to play nicely in a sandboxed environment. |
75 |
+RESTRICT="test" |
76 |
+ |
77 |
distutils_enable_tests pytest |
78 |
|
79 |
python_configure() { |
80 |
@@ -63,7 +67,7 @@ python_install() { |
81 |
} |
82 |
|
83 |
src_install() { |
84 |
- local mydistutilsargs=( --no-update-icon-cache --no-compile-schemas ) |
85 |
+ local DISTUTILS_ARGS=( --no-update-icon-cache --no-compile-schemas ) |
86 |
distutils-r1_src_install |
87 |
} |
88 |
|
89 |
@@ -71,21 +75,19 @@ pkg_preinst() { |
90 |
if use gtk; then |
91 |
gnome2_pkg_preinst |
92 |
|
93 |
- cd "${ED}" |
94 |
- export GNOME2_ECLASS_ICONS=$(find 'usr/share/virt-manager/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null) |
95 |
+ cd "${ED}" || die |
96 |
+ export GNOME2_ECLASS_ICONS=$(find 'usr/share/virt-manager/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null || die) |
97 |
else |
98 |
- rm -rf "${ED}/usr/share/virt-manager/virtManager" |
99 |
- rm -f "${ED}/usr/share/virt-manager/virt-manager" |
100 |
- rm -rf "${ED}/usr/share/virt-manager/ui/" |
101 |
- rm -rf "${ED}/usr/share/virt-manager/icons/" |
102 |
- rm -rf "${ED}/usr/share/man/man1/virt-manager.1*" |
103 |
- rm -rf "${ED}/usr/share/icons/" |
104 |
- rm -rf "${ED}/usr/share/applications/virt-manager.desktop" |
105 |
- rm -rf "${ED}/usr/bin/virt-manager" |
106 |
+ rm -r "${ED}/usr/share/virt-manager/ui/" || die |
107 |
+ rm -r "${ED}/usr/share/virt-manager/icons/" || die |
108 |
+ rm -r "${ED}/usr/share/icons/" || die |
109 |
+ rm -r "${ED}/usr/share/applications/virt-manager.desktop" || die |
110 |
+ rm -r "${ED}/usr/bin/virt-manager" || die |
111 |
fi |
112 |
} |
113 |
|
114 |
pkg_postinst() { |
115 |
use gtk && gnome2_pkg_postinst |
116 |
optfeature "SSH_ASKPASS program implementation" lxqt-base/lxqt-openssh-askpass net-misc/ssh-askpass-fullscreen net-misc/x11-ssh-askpass |
117 |
+ optfeature "QEMU host support" app-emulation/qemu[usbredir,spice] |
118 |
} |