Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-base/dconf/
Date: Fri, 30 Sep 2016 18:23:29
Message-Id: 1475259684.e54317819b6161d060d8d31e7e10802351c23840.eva@gentoo
1 commit: e54317819b6161d060d8d31e7e10802351c23840
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 18:21:24 2016 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 18:21:24 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5431781
7
8 gnome-base/dconf: add dependency on dbus
9
10 dconf is a DBus based service. It is needed through GDBus at runtime
11 and its presence is required for unittests as well.
12
13 Gentoo-Bug: 594018
14
15 Package-Manager: portage-2.3.1
16
17 gnome-base/dconf/dconf-0.26.0-r1.ebuild | 63 +++++++++++++++++++++++++++++++++
18 1 file changed, 63 insertions(+)
19
20 diff --git a/gnome-base/dconf/dconf-0.26.0-r1.ebuild b/gnome-base/dconf/dconf-0.26.0-r1.ebuild
21 new file mode 100644
22 index 00000000..db2414e
23 --- /dev/null
24 +++ b/gnome-base/dconf/dconf-0.26.0-r1.ebuild
25 @@ -0,0 +1,63 @@
26 +# Copyright 1999-2016 Gentoo Foundation
27 +# Distributed under the terms of the GNU General Public License v2
28 +# $Id$
29 +
30 +EAPI=6
31 +inherit gnome2 bash-completion-r1 virtualx
32 +
33 +DESCRIPTION="Simple low-level configuration system"
34 +HOMEPAGE="https://wiki.gnome.org/action/show/Projects/dconf"
35 +
36 +LICENSE="LGPL-2.1+"
37 +SLOT="0"
38 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~arm-linux ~x86-linux"
39 +IUSE=""
40 +
41 +RDEPEND="
42 + >=dev-libs/glib-2.44.0:2
43 + sys-apps/dbus
44 +"
45 +DEPEND="${RDEPEND}
46 + app-text/docbook-xml-dtd:4.2
47 + app-text/docbook-xsl-stylesheets
48 + dev-libs/libxslt
49 + dev-util/gdbus-codegen
50 + >=dev-util/gtk-doc-am-1.15
51 + sys-devel/gettext
52 + virtual/pkgconfig
53 +"
54 +
55 +src_configure() {
56 + gnome2_src_configure \
57 + --disable-gcov \
58 + --enable-man \
59 + VALAC=$(type -P true)
60 +}
61 +
62 +src_test() {
63 + virtx emake check
64 +}
65 +
66 +src_install() {
67 + gnome2_src_install
68 +
69 + # GSettings backend may be one of: memory, gconf, dconf
70 + # Only dconf is really considered functional by upstream
71 + # must have it enabled over gconf if both are installed
72 + echo 'CONFIG_PROTECT_MASK="/etc/dconf"' >> 51dconf
73 + echo 'GSETTINGS_BACKEND="dconf"' >> 51dconf
74 + doenvd 51dconf
75 +}
76 +
77 +pkg_postinst() {
78 + gnome2_pkg_postinst
79 + # Kill existing dconf-service processes as recommended by upstream due to
80 + # possible changes in the dconf private dbus API.
81 + # dconf-service will be dbus-activated on next use.
82 + pids=$(pgrep -x dconf-service)
83 + if [[ $? == 0 ]]; then
84 + ebegin "Stopping dconf-service; it will automatically restart on demand"
85 + kill ${pids}
86 + eend $?
87 + fi
88 +}