1 |
commit: f953dbb8778403b911b96335b7dc1e911103268d |
2 |
Author: Matt Jolly <Matt.Jolly <AT> footclan <DOT> ninja> |
3 |
AuthorDate: Fri Aug 19 03:56:48 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=f953dbb8 |
7 |
|
8 |
app-emulation/virt-manager: add 4.1.0 |
9 |
|
10 |
Signed-off-by: Matt Jolly <Matt.Jolly <AT> footclan.ninja> |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
app-emulation/virt-manager/Manifest | 1 + |
14 |
.../virt-manager/virt-manager-4.1.0.ebuild | 93 ++++++++++++++++++++++ |
15 |
2 files changed, 94 insertions(+) |
16 |
|
17 |
diff --git a/app-emulation/virt-manager/Manifest b/app-emulation/virt-manager/Manifest |
18 |
index a51a4be9250f..e4019949c979 100644 |
19 |
--- a/app-emulation/virt-manager/Manifest |
20 |
+++ b/app-emulation/virt-manager/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST virt-manager-3.2.0.tar.gz 2858909 BLAKE2B 83bd8589fb7d9c855300e06689fdeeeee575e354f9349b5bc63ff1da1a8b578a842f6f60d95a8b8fa53ed007c090d37f706f50fb8dcbcee83c08e27853a150cc SHA512 90cd98fe6b269007cd30f628490c65df440abe39b4925c65dc80667e7d80d059752695353ccf6ac3e2436206da311bc402eda50df31874d82ef8fe115966e1ec |
23 |
DIST virt-manager-4.0.0.tar.gz 3096236 BLAKE2B cf6ae282c6a351aab832a06387bf9daf9093c8cce3688cf0597f33d037db875638429a5320ffe28d8d860c83484ba5d6a02a8dc758c98914fa2af483552dede8 SHA512 115dc3feb499bb2f1f6df537bffe150d23b9b568fe8047d43577a138ff9b9180b10259dde3476136cdc85750576da1104e81a8c2f5761b4f2a89852467761f81 |
24 |
+DIST virt-manager-4.1.0.tar.gz 3151412 BLAKE2B 1b4203be81bd7b82251225d691a4d9068f268e610f049bcadb96de5b539e964ca0b001f22f06ddd8266b58b079f60046f6d11942a1e4eadbc43f0607c46bbddd SHA512 725cb5bcbaebaafae417f95deffb4243ccdad769668cba6e1235f4607e2b29dbd099d2a9a3885981158f53ea854dd71cc29ed9d7557b2791161c13d34f2ef883 |
25 |
|
26 |
diff --git a/app-emulation/virt-manager/virt-manager-4.1.0.ebuild b/app-emulation/virt-manager/virt-manager-4.1.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..1957dacecac0 |
29 |
--- /dev/null |
30 |
+++ b/app-emulation/virt-manager/virt-manager-4.1.0.ebuild |
31 |
@@ -0,0 +1,93 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..11} ) |
38 |
+DISTUTILS_SINGLE_IMPL=1 |
39 |
+ |
40 |
+DISTUTILS_USE_SETUPTOOLS=no |
41 |
+inherit gnome2 distutils-r1 optfeature |
42 |
+ |
43 |
+DESCRIPTION="A graphical tool for administering virtual machines" |
44 |
+HOMEPAGE="https://virt-manager.org https://github.com/virt-manager/virt-manager" |
45 |
+ |
46 |
+if [[ ${PV} = *9999* ]]; then |
47 |
+ inherit git-r3 |
48 |
+ SRC_URI="" |
49 |
+ EGIT_REPO_URI="https://github.com/virt-manager/virt-manager.git" |
50 |
+ EGIT_BRANCH="main" |
51 |
+else |
52 |
+ SRC_URI="http://virt-manager.org/download/sources/${PN}/${P}.tar.gz" |
53 |
+ KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
54 |
+fi |
55 |
+ |
56 |
+LICENSE="GPL-2" |
57 |
+SLOT="0" |
58 |
+IUSE="gtk policykit sasl" |
59 |
+ |
60 |
+RDEPEND="${PYTHON_DEPS} |
61 |
+ gtk? ( |
62 |
+ >=net-libs/gtk-vnc-0.3.8[gtk3(+),introspection] |
63 |
+ gnome-base/dconf |
64 |
+ net-misc/spice-gtk[usbredir,gtk3,introspection,sasl?] |
65 |
+ policykit? ( sys-auth/polkit[introspection] ) |
66 |
+ sys-apps/dbus[X] |
67 |
+ x11-libs/gtk+:3[introspection] |
68 |
+ x11-libs/gtksourceview:4[introspection] |
69 |
+ x11-libs/vte:2.91[introspection] |
70 |
+ ) |
71 |
+ app-cdr/cdrtools |
72 |
+ >=app-emulation/libvirt-glib-1.0.0[introspection] |
73 |
+ $(python_gen_cond_dep ' |
74 |
+ >=dev-python/libvirt-python-6.10.0[${PYTHON_USEDEP}] |
75 |
+ dev-libs/libxml2[python,${PYTHON_USEDEP}] |
76 |
+ dev-python/argcomplete[${PYTHON_USEDEP}] |
77 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
78 |
+ dev-python/requests[${PYTHON_USEDEP}] |
79 |
+ ') |
80 |
+ >=sys-libs/libosinfo-0.2.10[introspection] |
81 |
+ " |
82 |
+DEPEND="${RDEPEND}" |
83 |
+BDEPEND="dev-python/docutils" |
84 |
+ |
85 |
+DOCS=( README.md NEWS.md ) |
86 |
+ |
87 |
+# Doesn't seem to play nicely in a sandboxed environment. |
88 |
+RESTRICT="test" |
89 |
+ |
90 |
+distutils_enable_tests pytest |
91 |
+ |
92 |
+python_configure() { |
93 |
+ esetup.py configure --default-graphics=spice |
94 |
+} |
95 |
+ |
96 |
+python_install() { |
97 |
+ esetup.py install |
98 |
+} |
99 |
+ |
100 |
+src_install() { |
101 |
+ local DISTUTILS_ARGS=( --no-update-icon-cache --no-compile-schemas ) |
102 |
+ distutils-r1_src_install |
103 |
+} |
104 |
+ |
105 |
+pkg_preinst() { |
106 |
+ if use gtk; then |
107 |
+ gnome2_pkg_preinst |
108 |
+ |
109 |
+ cd "${ED}" || die |
110 |
+ export GNOME2_ECLASS_ICONS=$(find 'usr/share/virt-manager/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null || die) |
111 |
+ else |
112 |
+ rm -r "${ED}/usr/share/virt-manager/ui/" || die |
113 |
+ rm -r "${ED}/usr/share/virt-manager/icons/" || die |
114 |
+ rm -r "${ED}/usr/share/icons/" || die |
115 |
+ rm -r "${ED}/usr/share/applications/virt-manager.desktop" || die |
116 |
+ rm -r "${ED}/usr/bin/virt-manager" || die |
117 |
+ fi |
118 |
+} |
119 |
+ |
120 |
+pkg_postinst() { |
121 |
+ use gtk && gnome2_pkg_postinst |
122 |
+ optfeature "SSH_ASKPASS program implementation" lxqt-base/lxqt-openssh-askpass net-misc/ssh-askpass-fullscreen net-misc/x11-ssh-askpass |
123 |
+ optfeature "QEMU host support" app-emulation/qemu[usbredir,spice] |
124 |
+} |