Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: gnome-extra/gnome-boxes/
Date: Sun, 09 Dec 2018 17:43:59
Message-Id: 1544377412.4a079fb9fd5c90b756a12fa407127bcddc8a3596.eva@gentoo
1 commit: 4a079fb9fd5c90b756a12fa407127bcddc8a3596
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 9 15:53:01 2018 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 9 17:43:32 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=4a079fb9
7
8 gnome-extra/gnome-boxes: 3.26.4 → 3.28.5
9
10 Switch build system to meson. Move dependencies to match build-system
11 order. Split pure runtime dependencies.
12
13 Package-Manager: Portage-2.3.52, Repoman-2.3.12
14 Manifest-Sign-Key: 0x5A56C8CD0C13248A
15 Signed-off-by: Gilles Dartiguelongue <eva <AT> gentoo.org>
16
17 gnome-extra/gnome-boxes/gnome-boxes-3.28.5.ebuild | 101 ++++++++++++++++++++++
18 1 file changed, 101 insertions(+)
19
20 diff --git a/gnome-extra/gnome-boxes/gnome-boxes-3.28.5.ebuild b/gnome-extra/gnome-boxes/gnome-boxes-3.28.5.ebuild
21 new file mode 100644
22 index 00000000..ce8c49a7
23 --- /dev/null
24 +++ b/gnome-extra/gnome-boxes/gnome-boxes-3.28.5.ebuild
25 @@ -0,0 +1,101 @@
26 +# Copyright 1999-2018 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=6
30 +VALA_USE_DEPEND="vapigen"
31 +VALA_MIN_API_VERSION="0.36"
32 +
33 +inherit gnome.org gnome2-utils linux-info meson readme.gentoo-r1 vala xdg
34 +
35 +DESCRIPTION="Simple GNOME 3 application to access remote or virtual systems"
36 +HOMEPAGE="https://wiki.gnome.org/Apps/Boxes"
37 +
38 +LICENSE="LGPL-2"
39 +SLOT="0"
40 +IUSE=""
41 +
42 +KEYWORDS="~amd64"
43 +
44 +# NOTE: sys-fs/* stuff is called via exec()
45 +# FIXME: ovirt is not available in tree
46 +# FIXME: qemu probably needs to depend on spice[smartcard]
47 +# directly with USE=spice
48 +# gtk-vnc raised due to missing vala bindings in earlier ebuilds
49 +COMMON_DEPEND="
50 + >=app-arch/libarchive-3:=
51 + >=dev-libs/glib-2.52:2
52 + >=x11-libs/gtk+-3.22.20:3
53 + >=net-libs/gtk-vnc-0.8.0-r1[gtk3(+),vala]
54 + >=sys-libs/libosinfo-1.1.0[vala]
55 + app-crypt/libsecret[vala]
56 + >=net-libs/libsoup-2.44:2.4
57 + virtual/libusb:1
58 + >=app-emulation/libvirt-glib-0.2.3[vala]
59 + >=dev-libs/libxml2-2.7.8:2
60 + >=net-misc/spice-gtk-0.32[gtk3(+),smartcard,usbredir,vala]
61 + >=app-misc/tracker-2:0=
62 + net-libs/webkit-gtk:4
63 + >=virtual/libgudev-165:=
64 +"
65 +DEPEND="${COMMON_DEPEND}
66 + $(vala_depend)
67 + dev-util/itstool
68 + >=sys-devel/gettext-0.19.8
69 + virtual/pkgconfig
70 +"
71 +RDEPEND="${COMMON_DEPEND}
72 + >=app-misc/tracker-miners-2[iso]
73 + app-emulation/spice[smartcard]
74 + >=app-emulation/libvirt-0.9.3[libvirtd,qemu]
75 + >=app-emulation/qemu-1.3.1[spice,smartcard,usbredir]
76 + sys-fs/mtools
77 +"
78 +
79 +DISABLE_AUTOFORMATTING="yes"
80 +DOC_CONTENTS="Before running gnome-boxes, you will need to load the KVM modules.
81 +If you have an Intel Processor, run:
82 +# modprobe kvm-intel
83 +
84 +If you have an AMD Processor, run:
85 +# modprobe kvm-amd"
86 +
87 +pkg_pretend() {
88 + linux-info_get_any_version
89 +
90 + if linux_config_exists; then
91 + if ! { linux_chkconfig_present KVM_AMD || \
92 + linux_chkconfig_present KVM_INTEL; }; then
93 + ewarn "You need KVM support in your kernel to use GNOME Boxes!"
94 + fi
95 + fi
96 +}
97 +
98 +src_prepare() {
99 + vala_src_prepare
100 + xdg_src_prepare
101 +}
102 +
103 +src_configure() {
104 + local emesonargs=(
105 + -Dovirt=false
106 + )
107 + meson_src_configure
108 +}
109 +
110 +src_install() {
111 + meson_src_install
112 + readme.gentoo_create_doc
113 +}
114 +
115 +pkg_postinst() {
116 + xdg_pkg_postinst
117 + gnome2_schemas_update
118 + gnome2_icon_cache_update
119 + readme.gentoo_print_elog
120 +}
121 +
122 +pkg_postrm() {
123 + xdg_pkg_postrm
124 + gnome2_schemas_update
125 + gnome2_icon_cache_update
126 +}