Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: gnome-extra/gnome-boxes/
Date: Mon, 11 Mar 2019 10:10:59
Message-Id: 1552299041.7f136f9068bc9a606d8f63cb9b630d98030d311e.leio@gentoo
1 commit: 7f136f9068bc9a606d8f63cb9b630d98030d311e
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 11 10:10:41 2019 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 11 10:10:41 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=7f136f90
7
8 gnome-extra/gnome-boxes: remove releases (in ::gentoo), blind sync live
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
12
13 gnome-extra/gnome-boxes/gnome-boxes-3.28.5.ebuild | 101 ---------------------
14 gnome-extra/gnome-boxes/gnome-boxes-3.30.3.ebuild | 106 ----------------------
15 gnome-extra/gnome-boxes/gnome-boxes-9999.ebuild | 53 ++++++-----
16 3 files changed, 31 insertions(+), 229 deletions(-)
17
18 diff --git a/gnome-extra/gnome-boxes/gnome-boxes-3.28.5.ebuild b/gnome-extra/gnome-boxes/gnome-boxes-3.28.5.ebuild
19 deleted file mode 100644
20 index ce8c49a7..00000000
21 --- a/gnome-extra/gnome-boxes/gnome-boxes-3.28.5.ebuild
22 +++ /dev/null
23 @@ -1,101 +0,0 @@
24 -# Copyright 1999-2018 Gentoo Authors
25 -# Distributed under the terms of the GNU General Public License v2
26 -
27 -EAPI=6
28 -VALA_USE_DEPEND="vapigen"
29 -VALA_MIN_API_VERSION="0.36"
30 -
31 -inherit gnome.org gnome2-utils linux-info meson readme.gentoo-r1 vala xdg
32 -
33 -DESCRIPTION="Simple GNOME 3 application to access remote or virtual systems"
34 -HOMEPAGE="https://wiki.gnome.org/Apps/Boxes"
35 -
36 -LICENSE="LGPL-2"
37 -SLOT="0"
38 -IUSE=""
39 -
40 -KEYWORDS="~amd64"
41 -
42 -# NOTE: sys-fs/* stuff is called via exec()
43 -# FIXME: ovirt is not available in tree
44 -# FIXME: qemu probably needs to depend on spice[smartcard]
45 -# directly with USE=spice
46 -# gtk-vnc raised due to missing vala bindings in earlier ebuilds
47 -COMMON_DEPEND="
48 - >=app-arch/libarchive-3:=
49 - >=dev-libs/glib-2.52:2
50 - >=x11-libs/gtk+-3.22.20:3
51 - >=net-libs/gtk-vnc-0.8.0-r1[gtk3(+),vala]
52 - >=sys-libs/libosinfo-1.1.0[vala]
53 - app-crypt/libsecret[vala]
54 - >=net-libs/libsoup-2.44:2.4
55 - virtual/libusb:1
56 - >=app-emulation/libvirt-glib-0.2.3[vala]
57 - >=dev-libs/libxml2-2.7.8:2
58 - >=net-misc/spice-gtk-0.32[gtk3(+),smartcard,usbredir,vala]
59 - >=app-misc/tracker-2:0=
60 - net-libs/webkit-gtk:4
61 - >=virtual/libgudev-165:=
62 -"
63 -DEPEND="${COMMON_DEPEND}
64 - $(vala_depend)
65 - dev-util/itstool
66 - >=sys-devel/gettext-0.19.8
67 - virtual/pkgconfig
68 -"
69 -RDEPEND="${COMMON_DEPEND}
70 - >=app-misc/tracker-miners-2[iso]
71 - app-emulation/spice[smartcard]
72 - >=app-emulation/libvirt-0.9.3[libvirtd,qemu]
73 - >=app-emulation/qemu-1.3.1[spice,smartcard,usbredir]
74 - sys-fs/mtools
75 -"
76 -
77 -DISABLE_AUTOFORMATTING="yes"
78 -DOC_CONTENTS="Before running gnome-boxes, you will need to load the KVM modules.
79 -If you have an Intel Processor, run:
80 -# modprobe kvm-intel
81 -
82 -If you have an AMD Processor, run:
83 -# modprobe kvm-amd"
84 -
85 -pkg_pretend() {
86 - linux-info_get_any_version
87 -
88 - if linux_config_exists; then
89 - if ! { linux_chkconfig_present KVM_AMD || \
90 - linux_chkconfig_present KVM_INTEL; }; then
91 - ewarn "You need KVM support in your kernel to use GNOME Boxes!"
92 - fi
93 - fi
94 -}
95 -
96 -src_prepare() {
97 - vala_src_prepare
98 - xdg_src_prepare
99 -}
100 -
101 -src_configure() {
102 - local emesonargs=(
103 - -Dovirt=false
104 - )
105 - meson_src_configure
106 -}
107 -
108 -src_install() {
109 - meson_src_install
110 - readme.gentoo_create_doc
111 -}
112 -
113 -pkg_postinst() {
114 - xdg_pkg_postinst
115 - gnome2_schemas_update
116 - gnome2_icon_cache_update
117 - readme.gentoo_print_elog
118 -}
119 -
120 -pkg_postrm() {
121 - xdg_pkg_postrm
122 - gnome2_schemas_update
123 - gnome2_icon_cache_update
124 -}
125
126 diff --git a/gnome-extra/gnome-boxes/gnome-boxes-3.30.3.ebuild b/gnome-extra/gnome-boxes/gnome-boxes-3.30.3.ebuild
127 deleted file mode 100644
128 index 91ae4e3a..00000000
129 --- a/gnome-extra/gnome-boxes/gnome-boxes-3.30.3.ebuild
130 +++ /dev/null
131 @@ -1,106 +0,0 @@
132 -# Copyright 1999-2018 Gentoo Authors
133 -# Distributed under the terms of the GNU General Public License v2
134 -
135 -EAPI=6
136 -VALA_USE_DEPEND="vapigen"
137 -VALA_MIN_API_VERSION="0.36"
138 -
139 -inherit gnome.org gnome2-utils linux-info meson readme.gentoo-r1 vala xdg
140 -
141 -DESCRIPTION="Simple GNOME 3 application to access remote or virtual systems"
142 -HOMEPAGE="https://wiki.gnome.org/Apps/Boxes"
143 -
144 -LICENSE="LGPL-2"
145 -SLOT="0"
146 -IUSE="rdp"
147 -
148 -KEYWORDS="~amd64"
149 -
150 -# NOTE: sys-fs/* stuff is called via exec()
151 -# FIXME: ovirt is not available in tree
152 -# FIXME: qemu probably needs to depend on spice[smartcard]
153 -# directly with USE=spice
154 -# gtk-vnc raised due to missing vala bindings in earlier ebuilds
155 -COMMON_DEPEND="
156 - >=app-arch/libarchive-3:=
157 - >=dev-libs/glib-2.52:2
158 - >=x11-libs/gtk+-3.22.20:3
159 - >=net-libs/gtk-vnc-0.8.0-r1[gtk3(+),vala]
160 - >=sys-libs/libosinfo-1.1.0[vala]
161 - app-crypt/libsecret[vala]
162 - >=net-libs/libsoup-2.44:2.4
163 - virtual/libusb:1
164 - >=app-emulation/libvirt-glib-0.2.3[vala]
165 - >=dev-libs/libxml2-2.7.8:2
166 - >=net-misc/spice-gtk-0.32[gtk3(+),smartcard,usbredir,vala]
167 - >=app-misc/tracker-2:0=
168 - net-libs/webkit-gtk:4
169 - >=virtual/libgudev-165:=
170 - >=dev-libs/gobject-introspection-1:=
171 - rdp? ( net-misc/freerdp )
172 -"
173 -DEPEND="${COMMON_DEPEND}
174 - $(vala_depend)
175 - dev-util/itstool
176 - >=sys-devel/gettext-0.19.8
177 - virtual/pkgconfig
178 -
179 - >=dev-util/meson-0.47.0
180 -"
181 -RDEPEND="${COMMON_DEPEND}
182 - >=app-misc/tracker-miners-2[iso]
183 - app-emulation/spice[smartcard]
184 - >=app-emulation/libvirt-0.9.3[libvirtd,qemu]
185 - >=app-emulation/qemu-1.3.1[spice,smartcard,usbredir]
186 - sys-fs/mtools
187 -"
188 -
189 -DISABLE_AUTOFORMATTING="yes"
190 -DOC_CONTENTS="Before running gnome-boxes, you will need to load the KVM modules.
191 -If you have an Intel Processor, run:
192 -# modprobe kvm-intel
193 -
194 -If you have an AMD Processor, run:
195 -# modprobe kvm-amd"
196 -
197 -pkg_pretend() {
198 - linux-info_get_any_version
199 -
200 - if linux_config_exists; then
201 - if ! { linux_chkconfig_present KVM_AMD || \
202 - linux_chkconfig_present KVM_INTEL; }; then
203 - ewarn "You need KVM support in your kernel to use GNOME Boxes!"
204 - fi
205 - fi
206 -}
207 -
208 -src_prepare() {
209 - vala_src_prepare
210 - xdg_src_prepare
211 -}
212 -
213 -src_configure() {
214 - local emesonargs=(
215 - $(meson_use rdp)
216 - -Dovirt=false
217 - )
218 - meson_src_configure
219 -}
220 -
221 -src_install() {
222 - meson_src_install
223 - readme.gentoo_create_doc
224 -}
225 -
226 -pkg_postinst() {
227 - xdg_pkg_postinst
228 - gnome2_schemas_update
229 - gnome2_icon_cache_update
230 - readme.gentoo_print_elog
231 -}
232 -
233 -pkg_postrm() {
234 - xdg_pkg_postrm
235 - gnome2_schemas_update
236 - gnome2_icon_cache_update
237 -}
238
239 diff --git a/gnome-extra/gnome-boxes/gnome-boxes-9999.ebuild b/gnome-extra/gnome-boxes/gnome-boxes-9999.ebuild
240 index 26677782..83c5a0c0 100644
241 --- a/gnome-extra/gnome-boxes/gnome-boxes-9999.ebuild
242 +++ b/gnome-extra/gnome-boxes/gnome-boxes-9999.ebuild
243 @@ -1,4 +1,4 @@
244 -# Copyright 1999-2018 Gentoo Authors
245 +# Copyright 1999-2019 Gentoo Authors
246 # Distributed under the terms of the GNU General Public License v2
247
248 EAPI=6
249 @@ -15,56 +15,63 @@ fi
250 DESCRIPTION="Simple GNOME 3 application to access remote or virtual systems"
251 HOMEPAGE="https://wiki.gnome.org/Apps/Boxes"
252
253 -LICENSE="LGPL-2"
254 +LICENSE="LGPL-2+ CC-BY-2.0"
255 SLOT="0"
256 IUSE="rdp"
257 -if [[ ${PV} = 9999 ]]; then
258 - KEYWORDS=""
259 -else
260 +if [[ ${PV} != 9999 ]]; then
261 KEYWORDS="~amd64" # qemu-kvm[spice] is 64bit-only
262 fi
263
264 -# NOTE: sys-fs/* stuff is called via exec()
265 -# FIXME: ovirt is not available in tree
266 -# FIXME: qemu probably needs to depend on spice[smartcard]
267 -# directly with USE=spice
268 +# 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)
269 +# FIXME: qemu probably needs to depend on spice[smartcard] directly with USE=spice
270 +# FIXME: Check over libvirt USE=libvirtd,qemu and the smartcard/usbredir requirements
271 +# 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
272 # gtk-vnc raised due to missing vala bindings in earlier ebuilds
273 COMMON_DEPEND="
274 >=app-arch/libarchive-3:=
275 >=dev-libs/glib-2.52:2
276 - >=x11-libs/gtk+-3.22.20:3
277 + >=dev-libs/gobject-introspection-1.54:=
278 + >=x11-libs/gtk+-3.22.20:3[introspection]
279 >=net-libs/gtk-vnc-0.8.0-r1[gtk3(+),vala]
280 >=sys-libs/libosinfo-1.1.0[vala]
281 app-crypt/libsecret[vala]
282 - >=net-libs/libsoup-2.44:2.4
283 + >=net-libs/libsoup-2.44:2.4[vala]
284 virtual/libusb:1
285 >=app-emulation/libvirt-glib-0.2.3[vala]
286 >=dev-libs/libxml2-2.7.8:2
287 >=net-misc/spice-gtk-0.32[gtk3(+),smartcard,usbredir,vala]
288 - >=app-misc/tracker-2:0=
289 + app-misc/tracker:0/2.0
290 net-libs/webkit-gtk:4
291 >=virtual/libgudev-165:=
292 - >=dev-libs/gobject-introspection-1:=
293 - rdp? ( net-misc/freerdp )
294 + rdp? ( net-misc/freerdp:= )
295 "
296 DEPEND="${COMMON_DEPEND}
297 $(vala_depend)
298 + dev-libs/appstream-glib
299 dev-util/itstool
300 >=sys-devel/gettext-0.19.8
301 virtual/pkgconfig
302 -
303 - >=dev-util/meson-0.47.0
304 "
305 +# These are called via exec():
306 +# sys-fs/mtools mcopy for unattended file copying for files that libarchive doesn't support
307 +# virtual/cdrtools mkisofs is needed for unattended installer secondary disk image creation
308 +# app-emulation/libguestfs virt-sysprep is used for VM cloing, if not there, it logs debug and doesn't function
309 +# sys-apps/policycoreutils restorecon is used for checking selinux context
310 +# app-emulation/libvirt virsh used for various checks (and we need the library anyways)
311 +# 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)
312 +# app-emulation/qemu qemu-img used to convert image to QCOW2 format during copy
313 RDEPEND="${COMMON_DEPEND}
314 >=app-misc/tracker-miners-2[iso]
315 app-emulation/spice[smartcard]
316 >=app-emulation/libvirt-0.9.3[libvirtd,qemu]
317 >=app-emulation/qemu-1.3.1[spice,smartcard,usbredir]
318 sys-fs/mtools
319 + virtual/cdrtools
320 + sys-auth/polkit
321 "
322
323 DISABLE_AUTOFORMATTING="yes"
324 -DOC_CONTENTS="Before running gnome-boxes, you will need to load the KVM modules.
325 +DOC_CONTENTS="Before running gnome-boxes for local VMs, you will need to load the KVM modules.
326 If you have an Intel Processor, run:
327 # modprobe kvm-intel
328
329 @@ -77,20 +84,24 @@ pkg_pretend() {
330 if linux_config_exists; then
331 if ! { linux_chkconfig_present KVM_AMD || \
332 linux_chkconfig_present KVM_INTEL; }; then
333 - ewarn "You need KVM support in your kernel to use GNOME Boxes!"
334 + ewarn "You need KVM support in your kernel to use GNOME Boxes local VM support!"
335 fi
336 fi
337 }
338
339 src_prepare() {
340 - vala_src_prepare
341 xdg_src_prepare
342 + vala_src_prepare
343 }
344
345 src_configure() {
346 local emesonargs=(
347 - $(meson_use rdp)
348 + -Ddistributor_name=Gentoo
349 -Dovirt=false
350 + $(meson_use rdp)
351 + -Dinstalled_tests=false
352 + -Dflatpak=false
353 + -Dprofile=default
354 )
355 meson_src_configure
356 }
357 @@ -103,12 +114,10 @@ src_install() {
358 pkg_postinst() {
359 xdg_pkg_postinst
360 gnome2_schemas_update
361 - gnome2_icon_cache_update
362 readme.gentoo_print_elog
363 }
364
365 pkg_postrm() {
366 xdg_pkg_postrm
367 gnome2_schemas_update
368 - gnome2_icon_cache_update
369 }