Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-boxes/files/, gnome-extra/gnome-boxes/
Date: Wed, 19 Feb 2020 15:19:48
Message-Id: 1582125321.aefbe47b96c4d0bd172f0fb19c57fa2430702b86.leio@gentoo
1 commit: aefbe47b96c4d0bd172f0fb19c57fa2430702b86
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 19 15:15:10 2020 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 19 15:15:21 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aefbe47b
7
8 gnome-extra/gnome-boxes: bump to 3.32.2
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
12
13 gnome-extra/gnome-boxes/Manifest | 1 +
14 .../gnome-boxes/files/3.32.2-vala-compat.patch | 28 +++++
15 gnome-extra/gnome-boxes/gnome-boxes-3.32.2.ebuild | 134 +++++++++++++++++++++
16 3 files changed, 163 insertions(+)
17
18 diff --git a/gnome-extra/gnome-boxes/Manifest b/gnome-extra/gnome-boxes/Manifest
19 index a4c40411123..b0c9304738d 100644
20 --- a/gnome-extra/gnome-boxes/Manifest
21 +++ b/gnome-extra/gnome-boxes/Manifest
22 @@ -1 +1,2 @@
23 DIST gnome-boxes-3.30.3.tar.xz 1198224 BLAKE2B 1c65d3f051d32dc85284da4d392e3ec418edf028b61f1166173ac6ced3e6cba687b297ea135a4e54058c561eb5fe69d767e9ee698fb6b16f6bd4cd09b00d5c3a SHA512 fc8a06bb8c71356d50002468f7722aee14abe8432ccce319ada3032746b53eb2f679a93f991c04ae34832a315fc95d561ffc169c4560a23573c046705b5446b4
24 +DIST gnome-boxes-3.32.2.tar.xz 1178340 BLAKE2B 9c345e69cc53b3b06b609c3ddfb0f3e1cb54aaffb9ebad4deafd0414913e6d5bc4faecce6e9714a448da7c6094b27d97f039bb8db512973ffd665a5190ff6561 SHA512 f3208f5185ad65750b2f745e8170aaff6a097aa9d706e5abc74259c0940da8fafb046b55dfcc144e8c64782942dfebb711622b552f6daa2dc45ad863d480855f
25
26 diff --git a/gnome-extra/gnome-boxes/files/3.32.2-vala-compat.patch b/gnome-extra/gnome-boxes/files/3.32.2-vala-compat.patch
27 new file mode 100644
28 index 00000000000..548064be909
29 --- /dev/null
30 +++ b/gnome-extra/gnome-boxes/files/3.32.2-vala-compat.patch
31 @@ -0,0 +1,28 @@
32 +From 8aaf59870b9972f228e073a674b254b1e4cda2de Mon Sep 17 00:00:00 2001
33 +From: Michael Catanzaro <mcatanzaro@×××××.org>
34 +Date: Mon, 28 Oct 2019 10:36:20 -0500
35 +Subject: [PATCH] app-window: Fix build with vala master
36 +
37 +Cherry-picked from a1522749a9651915132fc1171d31a1c22df423ab
38 +
39 +See #431
40 +---
41 + src/app-window.vala | 2 +-
42 + 1 file changed, 1 insertion(+), 1 deletion(-)
43 +
44 +diff --git a/src/app-window.vala b/src/app-window.vala
45 +index 8a1ebb6a..82a9f834 100644
46 +--- a/src/app-window.vala
47 ++++ b/src/app-window.vala
48 +@@ -438,7 +438,7 @@ public bool on_key_pressed (Widget widget, Gdk.EventKey event) {
49 +
50 + return true;
51 + } else if (event.keyval == Gdk.Key.A &&
52 +- (event.state & default_modifiers) == Gdk.ModifierType.CONTROL_MASK | Gdk.ModifierType.SHIFT_MASK) {
53 ++ (event.state & default_modifiers) == (Gdk.ModifierType.CONTROL_MASK | Gdk.ModifierType.SHIFT_MASK)) {
54 + foreach_view ((view) => { view.unselect_all (); });
55 +
56 + return true;
57 +--
58 +2.20.1
59 +
60
61 diff --git a/gnome-extra/gnome-boxes/gnome-boxes-3.32.2.ebuild b/gnome-extra/gnome-boxes/gnome-boxes-3.32.2.ebuild
62 new file mode 100644
63 index 00000000000..b29f17ed72d
64 --- /dev/null
65 +++ b/gnome-extra/gnome-boxes/gnome-boxes-3.32.2.ebuild
66 @@ -0,0 +1,134 @@
67 +# Copyright 1999-2020 Gentoo Authors
68 +# Distributed under the terms of the GNU General Public License v2
69 +
70 +EAPI=7
71 +VALA_USE_DEPEND="vapigen"
72 +VALA_MIN_API_VERSION="0.40"
73 +
74 +inherit gnome.org gnome2-utils linux-info meson readme.gentoo-r1 vala xdg
75 +
76 +DESCRIPTION="Simple GNOME 3 application to access remote or virtual systems"
77 +HOMEPAGE="https://wiki.gnome.org/Apps/Boxes"
78 +
79 +LICENSE="LGPL-2+ CC-BY-2.0"
80 +SLOT="0"
81 +
82 +IUSE="rdp"
83 +KEYWORDS="~amd64"
84 +
85 +# FIXME: ovirt is not available in tree; though it seems the gnome-boxes ovirt broker is too buggy atm anyways (would need rest[vala] as well)
86 +# FIXME: qemu probably needs to depend on spice[smartcard] directly with USE=spice
87 +# FIXME: Check over libvirt USE=libvirtd,qemu and the smartcard/usbredir requirements
88 +# 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
89 +# gtk-vnc raised due to missing vala bindings in earlier ebuilds
90 +DEPEND="
91 + >=app-arch/libarchive-3.0.0:=
92 + >=dev-libs/glib-2.52:2
93 + >=x11-libs/gtk+-3.22.20:3
94 + >=net-libs/gtk-vnc-0.8.0-r1[gtk3(+)]
95 + >=sys-libs/libosinfo-1.4.0
96 + app-crypt/libsecret
97 + >=net-libs/libsoup-2.44:2.4
98 + virtual/libusb:1
99 + >=app-emulation/libvirt-glib-2.0.0
100 + >=dev-libs/libxml2-2.7.8:2
101 + >=net-misc/spice-gtk-0.32[gtk3(+),smartcard,usbredir]
102 + app-misc/tracker:0/2.0
103 + >=x11-libs/vte-0.40.2:2.91
104 + net-libs/webkit-gtk:4
105 +
106 + >=dev-libs/gobject-introspection-1.56:=
107 + >=dev-libs/libgudev-165:=
108 + rdp? ( net-misc/freerdp:= )
109 +" # gobject-introspection needed for libovf subproject (and gtk-frdp subproject with USE=rdp)
110 +# These are called via exec():
111 +# sys-fs/mtools mcopy for unattended file copying for files that libarchive doesn't support
112 +# virtual/cdrtools mkisofs is needed for unattended installer secondary disk image creation
113 +# app-emulation/libguestfs virt-sysprep is used for VM cloing, if not there, it logs debug and doesn't function
114 +# sys-apps/policycoreutils restorecon is used for checking selinux context
115 +# app-emulation/libvirt virsh used for various checks (and we need the library anyways)
116 +# 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)
117 +# app-emulation/qemu qemu-img used to convert image to QCOW2 format during copy
118 +RDEPEND="${DEPEND}
119 + >=app-misc/tracker-miners-2[iso]
120 + app-emulation/spice[smartcard]
121 + >=app-emulation/libvirt-0.9.3[libvirtd,qemu]
122 + >=app-emulation/qemu-1.3.1[spice,smartcard,usbredir]
123 + sys-fs/mtools
124 + virtual/cdrtools
125 + sys-auth/polkit
126 +"
127 +# gtk-frdp generates gir and needs gtk+ introspection for it
128 +# This is only needed for creating the .vapi file, but gnome-boxes needs it
129 +BDEPEND="
130 + $(vala_depend)
131 + net-libs/gtk-vnc[vala]
132 + sys-libs/libosinfo[vala]
133 + app-crypt/libsecret[vala]
134 + net-libs/libsoup:2.4[vala]
135 + app-emulation/libvirt-glib[vala]
136 + net-misc/spice-gtk[vala]
137 + x11-libs/vte:2.91[vala]
138 + dev-libs/appstream-glib
139 + rdp? ( x11-libs/gtk+:3[introspection] )
140 + dev-util/itstool
141 + >=sys-devel/gettext-0.19.8
142 + virtual/pkgconfig
143 +"
144 +
145 +DISABLE_AUTOFORMATTING="yes"
146 +DOC_CONTENTS="Before running gnome-boxes for local VMs, you will need to load the KVM modules.
147 +If you have an Intel Processor, run:
148 +# modprobe kvm-intel
149 +
150 +If you have an AMD Processor, run:
151 +# modprobe kvm-amd"
152 +
153 +PATCHES=(
154 + "${FILESDIR}"/${PV}-vala-compat.patch
155 +)
156 +
157 +pkg_pretend() {
158 + linux-info_get_any_version
159 +
160 + if linux_config_exists; then
161 + if ! { linux_chkconfig_present KVM_AMD || \
162 + linux_chkconfig_present KVM_INTEL; }; then
163 + ewarn "You need KVM support in your kernel to use GNOME Boxes local VM support!"
164 + fi
165 + fi
166 +}
167 +
168 +src_prepare() {
169 + xdg_src_prepare
170 + vala_src_prepare
171 +}
172 +
173 +src_configure() {
174 + local emesonargs=(
175 + -Ddistributor_name=Gentoo
176 + -Ddistributor_version=${PVR}
177 + -Dovirt=false
178 + $(meson_use rdp)
179 + -Dinstalled_tests=false
180 + -Dflatpak=false
181 + -Dprofile=default
182 + )
183 + meson_src_configure
184 +}
185 +
186 +src_install() {
187 + meson_src_install
188 + readme.gentoo_create_doc
189 +}
190 +
191 +pkg_postinst() {
192 + xdg_pkg_postinst
193 + gnome2_schemas_update
194 + readme.gentoo_print_elog
195 +}
196 +
197 +pkg_postrm() {
198 + xdg_pkg_postrm
199 + gnome2_schemas_update
200 +}