Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-boxes/
Date: Sat, 25 Jun 2016 16:53:52
Message-Id: 1466872027.c112ad925f9b3f6748ec5a99d44d00acafc4c99c.pacho@gentoo
1 commit: c112ad925f9b3f6748ec5a99d44d00acafc4c99c
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 25 16:27:07 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 25 16:27:07 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c112ad92
7
8 gnome-extra/gnome-boxes: Version bump
9
10 Package-Manager: portage-2.3.0_rc1
11
12 gnome-extra/gnome-boxes/Manifest | 1 +
13 gnome-extra/gnome-boxes/gnome-boxes-3.20.2.ebuild | 108 ++++++++++++++++++++++
14 2 files changed, 109 insertions(+)
15
16 diff --git a/gnome-extra/gnome-boxes/Manifest b/gnome-extra/gnome-boxes/Manifest
17 index 1189d2d..5b1ca5a 100644
18 --- a/gnome-extra/gnome-boxes/Manifest
19 +++ b/gnome-extra/gnome-boxes/Manifest
20 @@ -1 +1,2 @@
21 DIST gnome-boxes-3.18.1.tar.xz 1655760 SHA256 0235d7f76cf3faa3889b302c743d608759e84506657ed4e374592c39f768fb2b SHA512 eb8cd1c4dde02435f8ac0c02181e37e5523a2d67b5a2196d0ba6a1af798392a59ac3706879331cc969f8e74ec476b1be478592413383683a316e95934e02087b WHIRLPOOL 68c1dac4545e71d8902d3b2efaa6cbd074ed7f97fa5cc2263fe2e28b9e166f439208f78fc179f375b574e70e81895b82fd59be310638bdab984c2ffb7e8da60b
22 +DIST gnome-boxes-3.20.2.tar.xz 1686172 SHA256 c0379ce1de9d2a43a6875cbe1f2ef7ef69161b284926d59c44246a9142130fc5 SHA512 3ead46d8b65777e43bf55b04b9488a1a8c5d4a0bc46f582a46ae2d5ff883c01b5540739091c2f3065d3db666d38761dee6dacbde9d5c9042f5b79f1ad4769247 WHIRLPOOL 6545ae607965d51bea04335acb4050ccc606f764cb12e3a44a670007bd7d2387ca69f59539877ebce6ea8357dfcde6d6d786d2effac691f4ee1e8021a1ca64df
23
24 diff --git a/gnome-extra/gnome-boxes/gnome-boxes-3.20.2.ebuild b/gnome-extra/gnome-boxes/gnome-boxes-3.20.2.ebuild
25 new file mode 100644
26 index 0000000..65f1daf
27 --- /dev/null
28 +++ b/gnome-extra/gnome-boxes/gnome-boxes-3.20.2.ebuild
29 @@ -0,0 +1,108 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=6
35 +VALA_USE_DEPEND="vapigen"
36 +VALA_MIN_API_VERSION="0.28"
37 +
38 +inherit linux-info gnome2 readme.gentoo-r1 vala
39 +
40 +DESCRIPTION="Simple GNOME 3 application to access remote or virtual systems"
41 +HOMEPAGE="https://wiki.gnome.org/Apps/Boxes"
42 +
43 +LICENSE="LGPL-2"
44 +SLOT="0"
45 +
46 +# We force 'bindist' due to licenses from gnome-boxes-nonfree
47 +IUSE="smartcard usbredir" #bindist
48 +
49 +KEYWORDS="~amd64" # qemu-kvm[spice] is 64bit-only
50 +
51 +# NOTE: sys-fs/* stuff is called via exec()
52 +# FIXME: ovirt is not available in tree
53 +# FIXME: use vala.eclass but only because of libgd not being able
54 +# to use its pre-generated files so do not copy all the
55 +# vala deps like live ebuild has.
56 +RDEPEND="
57 + >=app-arch/libarchive-3:=
58 + >=dev-libs/glib-2.38:2
59 + >=dev-libs/gobject-introspection-0.9.6:=
60 + >=dev-libs/libxml2-2.7.8:2
61 + >=sys-libs/libosinfo-0.2.12
62 + >=app-emulation/qemu-1.3.1[spice,smartcard?,usbredir?]
63 + >=app-emulation/libvirt-0.9.3[libvirtd,qemu]
64 + >=app-emulation/libvirt-glib-0.2.3
65 + >=x11-libs/gtk+-3.19.4:3
66 + >=net-libs/gtk-vnc-0.4.4[gtk3]
67 + >=net-misc/spice-gtk-0.27[gtk3,smartcard?,usbredir?]
68 + virtual/libusb:1
69 +
70 + >=app-misc/tracker-0.16:0=[iso]
71 +
72 + >=sys-apps/util-linux-2.20
73 + >=net-libs/libsoup-2.38:2.4
74 +
75 + sys-fs/fuse
76 + sys-fs/fuseiso
77 + sys-fs/mtools
78 + virtual/libgudev:=
79 +"
80 +# !bindist? ( gnome-extra/gnome-boxes-nonfree )
81 +
82 +DEPEND="${RDEPEND}
83 + $(vala_depend)
84 + app-text/yelp-tools
85 + dev-util/desktop-file-utils
86 + >=dev-util/intltool-0.40
87 + >=sys-devel/gettext-0.17
88 + virtual/pkgconfig
89 +"
90 +
91 +DISABLE_AUTOFORMATTING="yes"
92 +DOC_CONTENTS="Before running gnome-boxes, you will need to load the KVM modules.
93 +If you have an Intel Processor, run:
94 +# modprobe kvm-intel
95 +
96 +If you have an AMD Processor, run:
97 +# modprobe kvm-amd"
98 +
99 +pkg_pretend() {
100 + linux-info_get_any_version
101 +
102 + if linux_config_exists; then
103 + if ! { linux_chkconfig_present KVM_AMD || \
104 + linux_chkconfig_present KVM_INTEL; }; then
105 + ewarn "You need KVM support in your kernel to use GNOME Boxes!"
106 + fi
107 + fi
108 +}
109 +
110 +src_prepare() {
111 + # Do not change CFLAGS, wondering about VALA ones but appears to be
112 + # needed as noted in configure comments below
113 + sed 's/CFLAGS="$CFLAGS -O0 -ggdb3"//' -i configure{.ac,} || die
114 +
115 + vala_src_prepare
116 + gnome2_src_prepare
117 +}
118 +
119 +src_configure() {
120 + # debug needed for splitdebug proper behavior (cardoe), bug #????
121 + gnome2_src_configure \
122 + --enable-debug \
123 + --disable-strict-cc \
124 + $(use_enable usbredir) \
125 + $(use_enable smartcard) \
126 + --enable-ovirt=no
127 +}
128 +
129 +src_install() {
130 + gnome2_src_install
131 + readme.gentoo_create_doc
132 +}
133 +
134 +pkg_postinst() {
135 + gnome2_pkg_postinst
136 + readme.gentoo_print_elog
137 +}