blob: afa0586fa90b444c96a18b472e9d476c794943e6 (
plain)
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
85
86
87
88
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools gnome2 virtualx
DESCRIPTION="PackageKit client for the GNOME desktop"
HOMEPAGE="https://www.freedesktop.org/software/PackageKit/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="systemd test udev"
# gdk-pixbuf used in gpk-animated-icon
# pango used on gpk-common
RDEPEND="
>=dev-libs/glib-2.32:2
x11-libs/gdk-pixbuf:2
>=x11-libs/gtk+-3.15.3:3
>=x11-libs/libnotify-0.7.0:=
x11-libs/pango
>=app-admin/packagekit-base-0.8
>=app-admin/packagekit-gtk-0.7.2
>=media-libs/libcanberra-0.10[gtk3]
>=sys-apps/dbus-1.1.2
media-libs/fontconfig
x11-libs/libX11
systemd? ( >=sys-apps/systemd-42 )
!systemd? ( sys-auth/consolekit )
udev? ( virtual/libgudev:= )
"
DEPEND="${RDEPEND}
app-text/docbook-sgml-utils
dev-libs/appstream-glib
>=dev-util/gtk-doc-am-1.9
>=dev-util/intltool-0.35
dev-libs/libxslt
sys-devel/gettext
virtual/pkgconfig
"
# NOTES:
# app-text/docbook-sgml-utils required for man pages
# UPSTREAM:
# misuse of CPPFLAGS/CXXFLAGS ?
# see if tests can forget about display (use eclass for that ?)
src_prepare() {
# * disable tests with graphical dialogs and that require packagekitd
# to be run with the dummy backend and installed .ui files
# * disable tests that fails every time packagekit developers make a
# tiny change to headers
sed -e '/g_test_add_func.*gpk_test_enum_func/d' \
-e '/g_test_add_func.*gpk_test_dbus_task_func/d' \
-e '/g_test_add_func.*gpk_test_error_func/d' \
-e '/g_test_add_func.*gpk_test_modal_dialog/d' \
-e '/g_test_add_func.*gpk_test_task_func/d' \
-i src/gpk-self-test.c || die
# Disable stupid flags
# FIXME: touching configure.ac triggers maintainer-mode
sed -e '/CPPFLAGS="$CPPFLAGS -g"/d' -i configure || die
# Fix compat with current systemd
sed -i -e 's/libsystemd-login/libsystemd/' configure.ac || die
eautoreconf
gnome2_src_prepare
}
src_configure() {
gnome2_src_configure \
--localstatedir=/var \
--enable-iso-c \
$(use_enable systemd) \
$(use_enable test tests) \
$(use_enable udev gudev)
}
src_test() {
"${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/data" || die
GSETTINGS_SCHEMA_DIR="${S}/data" virtx emake check
}
|