forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gnome-software-3.22.7.ebuild
84 lines (73 loc) · 1.86 KB
/
gnome-software-3.22.7.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit gnome2 python-any-r1 virtualx
DESCRIPTION="Gnome install & update software"
HOMEPAGE="https://wiki.gnome.org/Apps/Software"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gnome spell test udev"
RDEPEND="
>=app-admin/packagekit-base-1.1.0
app-crypt/libsecret
dev-db/sqlite:3
>=dev-libs/appstream-glib-0.6.7:0
>=dev-libs/glib-2.46:2
>=dev-libs/json-glib-1.1.1
>=gnome-base/gsettings-desktop-schemas-3.11.5
>=net-libs/libsoup-2.51.92:2.4
sys-auth/polkit
>=x11-libs/gdk-pixbuf-2.31.5
>=x11-libs/gtk+-3.20:3
gnome? ( >=gnome-base/gnome-desktop-3.17.92:3= )
spell? ( app-text/gtkspell:3 )
udev? ( virtual/libgudev )
"
DEPEND="${RDEPEND}
app-text/docbook-xml-dtd:4.2
dev-libs/libxslt
>=dev-util/intltool-0.35
virtual/pkgconfig
test? (
${PYTHON_DEPS}
$(python_gen_any_dep 'dev-util/dogtail[${PYTHON_USEDEP}]') )
"
# test? ( dev-util/valgrind )
python_check_deps() {
use test && has_version "dev-util/dogtail[${PYTHON_USEDEP}]"
}
pkg_setup() {
use test && python-any-r1_pkg_setup
}
src_prepare() {
# valgrind fails with SIGTRAP
sed -e 's/TESTS = .*/TESTS =/' \
-i "${S}"/src/Makefile.{am,in} || die
gnome2_src_prepare
}
src_configure() {
# FIXME: investigate limba and firmware update support
gnome2_src_configure \
--enable-man \
--enable-packagekit \
--enable-polkit \
--disable-firmware \
--disable-limba \
--disable-ostree \
--disable-rpm \
--disable-steam \
--disable-flatpak \
--enable-webapps \
--disable-snap \
$(use_enable spell gtkspell) \
$(use_enable test dogtail) \
$(use_enable test tests) \
$(use_enable gnome gnome-desktop) \
$(use_enable gnome shell-extensions) \
$(use_enable udev gudev)
}
src_test() {
virtx emake check TESTS_ENVIRONMENT="dbus-run-session"
}