Magellan Linux

Contents of /trunk/extras/dconf/dconf-0.34.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33284 - (show annotations) (download)
Thu Oct 24 11:08:34 2019 UTC (4 years, 7 months ago) by niro
File size: 1308 byte(s)
-added hack to fix ftbfs with meson-0.52
1 # $Id$
2
3 PNAME="dconf"
4 PVER="0.34.0"
5 PBUILD="r1"
6
7 PCAT="gnome-base"
8
9 DESCRIPTION="A low-level configuration system."
10 HOMEPAGE="http://www.gnome.org/"
11
12 DEPEND=">= dev-libs/glib2-2.62
13 >= sys-apps/dbus-1.10"
14
15 SDEPEND=">= dev-util/pkgconfig-0.25
16 >= dev-lang/vala-0.46
17 >= app-text/docbook-xsl-stylesheets-1.78"
18
19 SRCFILE="${PNAME}-${PVER}.tar.xz"
20
21 sminclude mtools gnome2 meson
22 msetfeature "!check" # dbus test will fail, because of buildroot
23
24 UP2DATE="updatecmd_gnome ${PNAME}"
25
26 src_prepare()
27 {
28 munpack ${SRCFILE} || die
29 cd ${SRCDIR}
30
31 # fix a ftbfs with meson-0.52
32 # see: https://www.linuxquestions.org/questions/slackware-14/dconf-package-does-not-build-with-meson-0-52-a-4175662298/
33 # and: https://gitlab.gnome.org/GNOME/dconf/issues/59
34 sed -i "s|link_whole: libdconf_common,|link_with: libdconf_common,|g" common/meson.build || die
35 }
36
37 src_compile()
38 {
39 meson_src_compile $(meson_bool_false bash_completion) || die
40 }
41
42 src_install()
43 {
44 meson_src_install || die
45
46 # GSettings backend may be one of: memory, gconf, dconf
47 # Only dconf is really considered functional by upstream
48 # must have it enabled over gconf if both are installed
49 minstalldir /etc/env.d || die
50 MCONFIG="/etc/env.d/51dconf"
51 mclearconfig || die
52 maddconfig 'CONFIG_PROTECT_MASK="/etc/dconf"'
53 maddconfig 'GSETTINGS_BACKEND="dconf"'
54 }