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: Mon, 30 May 2022 19:50:28
Message-Id: 1653940199.91e161349efff0286fe96d0a813e50f294deabca.mattst88@gentoo
1 commit: 91e161349efff0286fe96d0a813e50f294deabca
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 30 19:49:40 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Mon May 30 19:49:59 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91e16134
7
8 gnome-extra/gnome-boxes: Version bump to 42.1
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-42.1.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 c036acbbb723..660e8767318d 100644
18 --- a/gnome-extra/gnome-boxes/Manifest
19 +++ b/gnome-extra/gnome-boxes/Manifest
20 @@ -1,2 +1,3 @@
21 DIST gnome-boxes-41.3.tar.xz 1614656 BLAKE2B 1d2a53ba833cdf130f1b2a350871344b0fd4c3f223e069d707e8279748a2fbd21e0d618d0cb229bb3bcfaa84e41d32da763df1d84efd7b749d890f28aceae904 SHA512 6aa8daf03898b7ec28397897b054e220bf2eabb7acbf4ea4dab7035bbe24e44c8a75e488c788f2b8cc56d6e72785651574cffa84cc1a06e5c9c7e0772839bfe7
22 DIST gnome-boxes-42.0.1.tar.xz 1231252 BLAKE2B e80503c1a2dbc4a4990ff8fb477f7e72fe1a880412a91d42fffd93c68226c91d254daf28301d816e3555f8a88c9b3f27b35df406bde7483a4a8e98dd3e83e756 SHA512 74968525943ff1a695f2d0cbcd3b9066f2b8c87d6b3b7dea5dab2911600fb09c961ee547a759eed2a23636c7b242a86b56e5ee579dc01e9e9c9caac67a845b03
23 +DIST gnome-boxes-42.1.tar.xz 1235760 BLAKE2B 4de67e369d2135acc2407789c06441840da32c2d13eb329ab874021a56685f64c66fcf47a00a9ddc287a5eeccc2fae799a26147a9ade6ab8b1877a3865407ac7 SHA512 8233c06abe7c6a3e816d599fd2f2729e19b356f130d0ec0cc9d3c47cab0d10ffcc9e8e3f263999ac50c17a7ea63bb417213465cca641fff60ea4bf1c79caaaa7
24
25 diff --git a/gnome-extra/gnome-boxes/gnome-boxes-42.1.ebuild b/gnome-extra/gnome-boxes/gnome-boxes-42.1.ebuild
26 new file mode 100644
27 index 000000000000..52f6b07c7db3
28 --- /dev/null
29 +++ b/gnome-extra/gnome-boxes/gnome-boxes-42.1.ebuild
30 @@ -0,0 +1,129 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
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 + >=gui-libs/libhandy-1.5.0:1=
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 +
68 + >=dev-libs/gobject-introspection-1.56:=
69 + >=dev-libs/libgudev-165:=
70 + rdp? ( >=net-misc/freerdp-2.0.0:= )
71 +" # gobject-introspection needed for libovf subproject (and gtk-frdp subproject with USE=rdp)
72 +# These are called via exec():
73 +# sys-fs/mtools mcopy for unattended file copying for files that libarchive doesn't support
74 +# app-cdr/cdrtools mkisofs is needed for unattended installer secondary disk image creation
75 +# app-emulation/libguestfs virt-sysprep is used for VM cloing, if not there, it logs debug and doesn't function
76 +# sys-apps/policycoreutils restorecon is used for checking selinux context
77 +# app-emulation/libvirt virsh used for various checks (and we need the library anyways)
78 +# 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)
79 +# app-emulation/qemu qemu-img used to convert image to QCOW2 format during copy
80 +RDEPEND="${DEPEND}
81 + app-cdr/cdrtools
82 + app-misc/tracker-miners:3[iso]
83 + app-emulation/spice[smartcard]
84 + >=app-emulation/libvirt-0.9.3[libvirtd,qemu]
85 + >=app-emulation/qemu-1.3.1[spice,smartcard,usbredir]
86 + sys-fs/mtools
87 + sys-auth/polkit
88 +"
89 +# gtk-frdp generates gir and needs gtk+ introspection for it
90 +# This is only needed for creating the .vapi file, but gnome-boxes needs it
91 +BDEPEND="
92 + $(vala_depend)
93 + net-libs/gtk-vnc[vala]
94 + sys-libs/libosinfo[vala]
95 + app-crypt/libsecret[vala]
96 + net-libs/libsoup:2.4[vala]
97 + app-emulation/libvirt-glib[vala]
98 + net-misc/spice-gtk[vala]
99 + x11-libs/vte:2.91[vala]
100 + dev-libs/appstream-glib
101 + rdp? ( x11-libs/gtk+:3[introspection] )
102 + dev-util/itstool
103 + >=sys-devel/gettext-0.19.8
104 + virtual/pkgconfig
105 +"
106 +
107 +DISABLE_AUTOFORMATTING="yes"
108 +DOC_CONTENTS="Before running gnome-boxes for local VMs, you will need to load the KVM modules.
109 +If you have an Intel Processor, run:
110 +# modprobe kvm-intel
111 +
112 +If you have an AMD Processor, run:
113 +# modprobe kvm-amd"
114 +
115 +pkg_pretend() {
116 + linux-info_get_any_version
117 +
118 + if linux_config_exists; then
119 + if ! { linux_chkconfig_present KVM_AMD || \
120 + linux_chkconfig_present KVM_INTEL; }; then
121 + ewarn "You need KVM support in your kernel to use GNOME Boxes local VM support!"
122 + fi
123 + fi
124 +}
125 +
126 +src_prepare() {
127 + default
128 + vala_setup
129 + xdg_environment_reset
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 + -Duefi=true
141 + )
142 + meson_src_configure
143 +}
144 +
145 +src_install() {
146 + meson_src_install
147 + readme.gentoo_create_doc
148 +}
149 +
150 +pkg_postinst() {
151 + xdg_pkg_postinst
152 + gnome2_schemas_update
153 + readme.gentoo_print_elog
154 +}
155 +
156 +pkg_postrm() {
157 + xdg_pkg_postrm
158 + gnome2_schemas_update
159 +}