1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit bash-completion-r1 gnome.org gnome2-utils meson virtualx xdg
7 DESCRIPTION="Simple low-level configuration system"
8 HOMEPAGE="https://wiki.gnome.org/Projects/dconf"
12 KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc x86 ~x86-linux"
14 RESTRICT="!test? ( test )" # IUSE=test comes from virtualx.eclass
17 >=dev-libs/glib-2.44.0:2
22 app-text/docbook-xml-dtd:4.2
23 app-text/docbook-xsl-stylesheets
25 dev-util/gdbus-codegen
26 gtk-doc? ( >=dev-util/gtk-doc-1.15 )
27 >=sys-devel/gettext-0.19.8
32 "${FILESDIR}"/0.30.1-bash-completion-dir.patch
33 "${FILESDIR}"/0.32.0-drop-vapigen-dep.patch # .vapi/.deps are pregenerated, just install them without a vala dep
34 "${FILESDIR}"/0.32.0-meson-0.52-compat.patch # https://gitlab.gnome.org/GNOME/dconf/issues/59
39 -Dbash_completion_dir="$(get_bashcompdir)"
41 $(meson_use gtk-doc gtk_doc)
50 # GSettings backend may be one of: memory, gconf, dconf
51 # Only dconf is really considered functional by upstream
52 # must have it enabled over gconf if both are installed
53 # This snippet can't be removed until gconf package is
54 # ensured to not install a /etc/env.d/50gconf and then
55 # still consider the CONFIG_PROTECT_MASK bit.
56 echo 'CONFIG_PROTECT_MASK="/etc/dconf"' >> 51dconf
57 echo 'GSETTINGS_BACKEND="dconf"' >> 51dconf
67 gnome2_giomodule_cache_update
69 # Kill existing dconf-service processes as recommended by upstream due to
70 # possible changes in the dconf private dbus API.
71 # dconf-service will be dbus-activated on next use.
72 pids=$(pgrep -x dconf-service)
73 if [[ $? == 0 ]]; then
74 ebegin "Stopping dconf-service; it will automatically restart on demand"
82 gnome2_giomodule_cache_update