Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-boxes/
Date: Thu, 29 Jul 2021 20:58:40
Message-Id: 1627592301.be6b1ad6e4cf1983d0b765760eff39cf73651ed6.mattst88@gentoo
1 commit: be6b1ad6e4cf1983d0b765760eff39cf73651ed6
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 29 20:10:59 2021 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 29 20:58:21 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be6b1ad6
7
8 gnome-extra/gnome-boxes: Version bump to 40.3
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 gnome-extra/gnome-boxes/Manifest | 1 +
13 gnome-extra/gnome-boxes/gnome-boxes-40.3.ebuild | 129 ++++++++++++++++++++++++
14 2 files changed, 130 insertions(+)
15
16 diff --git a/gnome-extra/gnome-boxes/Manifest b/gnome-extra/gnome-boxes/Manifest
17 index b13441d5d3b..48dc019d213 100644
18 --- a/gnome-extra/gnome-boxes/Manifest
19 +++ b/gnome-extra/gnome-boxes/Manifest
20 @@ -1 +1,2 @@
21 DIST gnome-boxes-40.2.tar.xz 1697352 BLAKE2B 07f9fbad526bea4239a6eac3a3a26a53d30daab938158c4904b5ae674cf64cb2dd0fc6de073c41fc023c66df0328bc02dccf994ef09af597f117914c11bedefb SHA512 22f4a66bb60b47ae7c5ca7fb6f60eddf16a1ad209aa4541f05f732d815a2ac9f2fdac9f6d87cd5cf44d402d0f0d114466efbf129b22fea7b9b054e1b3c3ac145
22 +DIST gnome-boxes-40.3.tar.xz 1697444 BLAKE2B a7c1677224dde80142abdeeff8b99929c7b86ce38a3432bf0368ec93146df0a813cbeae033fc8cbcd2fb8cd5b28170e0385224f36a9517ed54244e94a3453b6c SHA512 1944414feb6fab054f46e32b5f245042c882cf0a1ecde0eafced81adda16af1018203139177d3f9fa1d2eaf1565ee9e3b3fdff63c4a4b06b0802e20a2f064890
23
24 diff --git a/gnome-extra/gnome-boxes/gnome-boxes-40.3.ebuild b/gnome-extra/gnome-boxes/gnome-boxes-40.3.ebuild
25 new file mode 100644
26 index 00000000000..5ce011c05b5
27 --- /dev/null
28 +++ b/gnome-extra/gnome-boxes/gnome-boxes-40.3.ebuild
29 @@ -0,0 +1,129 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +VALA_USE_DEPEND="vapigen"
35 +VALA_MIN_API_VERSION="0.40"
36 +
37 +inherit gnome.org gnome2-utils linux-info meson readme.gentoo-r1 vala xdg
38 +
39 +DESCRIPTION="Simple GNOME application to access remote or virtual systems"
40 +HOMEPAGE="https://wiki.gnome.org/Apps/Boxes"
41 +
42 +LICENSE="LGPL-2+ CC-BY-2.0"
43 +SLOT="0"
44 +
45 +IUSE="rdp"
46 +KEYWORDS="~amd64"
47 +
48 +# FIXME: qemu probably needs to depend on spice[smartcard] directly with USE=spice
49 +# FIXME: Check over libvirt USE=libvirtd,qemu and the smartcard/usbredir requirements
50 +# Technically vala itself still ships a libsoup vapi, but that may change, and it should be better to use the .vapi from the same libsoup version
51 +# gtk-vnc raised due to missing vala bindings in earlier ebuilds
52 +DEPEND="
53 + >=app-arch/libarchive-3.0.0:=
54 + >=dev-libs/glib-2.52:2
55 + >=x11-libs/gtk+-3.24.1:3
56 + >=net-libs/gtk-vnc-0.8.0-r1[gtk3(+)]
57 + x11-libs/gtksourceview:4
58 + >=sys-libs/libosinfo-1.7.0
59 + app-crypt/libsecret
60 + >=net-libs/libsoup-2.44:2.4
61 + virtual/libusb:1
62 + >=app-emulation/libvirt-glib-4.0.0
63 + >=dev-libs/libxml2-2.7.8:2
64 + >=net-misc/spice-gtk-0.32[gtk3(+),smartcard,usbredir]
65 + app-misc/tracker:3
66 + >=net-libs/webkit-gtk-2.26.0:4
67 + >=gui-libs/libhandy-1.0.0:1=
68 +
69 + >=dev-libs/gobject-introspection-1.56:=
70 + >=dev-libs/libgudev-165:=
71 + rdp? ( >=net-misc/freerdp-2.0.0:= )
72 +" # gobject-introspection needed for libovf subproject (and gtk-frdp subproject with USE=rdp)
73 +# These are called via exec():
74 +# sys-fs/mtools mcopy for unattended file copying for files that libarchive doesn't support
75 +# app-cdr/cdrtools mkisofs is needed for unattended installer secondary disk image creation
76 +# app-emulation/libguestfs virt-sysprep is used for VM cloing, if not there, it logs debug and doesn't function
77 +# sys-apps/policycoreutils restorecon is used for checking selinux context
78 +# app-emulation/libvirt virsh used for various checks (and we need the library anyways)
79 +# sys-auth/polkit used for making all libvirt system disks readable via "pkexec chmod a+r" that aren't already readable to the user (libvirt system importer)
80 +# app-emulation/qemu qemu-img used to convert image to QCOW2 format during copy
81 +RDEPEND="${DEPEND}
82 + app-cdr/cdrtools
83 + app-misc/tracker-miners:3[iso]
84 + app-emulation/spice[smartcard]
85 + >=app-emulation/libvirt-0.9.3[libvirtd,qemu]
86 + >=app-emulation/qemu-1.3.1[spice,smartcard,usbredir]
87 + sys-fs/mtools
88 + sys-auth/polkit
89 +"
90 +# gtk-frdp generates gir and needs gtk+ introspection for it
91 +# This is only needed for creating the .vapi file, but gnome-boxes needs it
92 +BDEPEND="
93 + $(vala_depend)
94 + net-libs/gtk-vnc[vala]
95 + sys-libs/libosinfo[vala]
96 + app-crypt/libsecret[vala]
97 + net-libs/libsoup:2.4[vala]
98 + app-emulation/libvirt-glib[vala]
99 + net-misc/spice-gtk[vala]
100 + x11-libs/vte:2.91[vala]
101 + dev-libs/appstream-glib
102 + rdp? ( x11-libs/gtk+:3[introspection] )
103 + dev-util/itstool
104 + >=sys-devel/gettext-0.19.8
105 + virtual/pkgconfig
106 +"
107 +
108 +DISABLE_AUTOFORMATTING="yes"
109 +DOC_CONTENTS="Before running gnome-boxes for local VMs, you will need to load the KVM modules.
110 +If you have an Intel Processor, run:
111 +# modprobe kvm-intel
112 +
113 +If you have an AMD Processor, run:
114 +# modprobe kvm-amd"
115 +
116 +pkg_pretend() {
117 + linux-info_get_any_version
118 +
119 + if linux_config_exists; then
120 + if ! { linux_chkconfig_present KVM_AMD || \
121 + linux_chkconfig_present KVM_INTEL; }; then
122 + ewarn "You need KVM support in your kernel to use GNOME Boxes local VM support!"
123 + fi
124 + fi
125 +}
126 +
127 +src_prepare() {
128 + xdg_src_prepare
129 + vala_src_prepare
130 +}
131 +
132 +src_configure() {
133 + local emesonargs=(
134 + -Ddistributor_name=Gentoo
135 + -Ddistributor_version=${PVR}
136 + $(meson_use rdp)
137 + -Dinstalled_tests=false
138 + -Dflatpak=false
139 + -Dprofile=default
140 + )
141 + meson_src_configure
142 +}
143 +
144 +src_install() {
145 + meson_src_install
146 + readme.gentoo_create_doc
147 +}
148 +
149 +pkg_postinst() {
150 + xdg_pkg_postinst
151 + gnome2_schemas_update
152 + readme.gentoo_print_elog
153 +}
154 +
155 +pkg_postrm() {
156 + xdg_pkg_postrm
157 + gnome2_schemas_update
158 +}