1 |
commit: f5e99a16062991fab7dc44324347120e40fc568e |
2 |
Author: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 29 19:49:00 2011 +0000 |
4 |
Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Oct 29 19:49:00 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=f5e99a16 |
7 |
|
8 |
gnome-base/dconf: moved 0.10.0 to gx86 + sync with gx86 changes |
9 |
|
10 |
Sync with the following gx86 changes: |
11 |
bash-completion migration |
12 |
new keywords |
13 |
gtk-doc-am dependency |
14 |
duplicate eautoreconf |
15 |
kill running dconf-service processes in pkg_postinst |
16 |
|
17 |
--- |
18 |
gnome-base/dconf/dconf-0.10.0.ebuild | 81 -------------------- |
19 |
gnome-base/dconf/dconf-9999.ebuild | 30 +++++--- |
20 |
...vala.patch => dconf-0.8.0-automagic-vala.patch} | 8 +- |
21 |
3 files changed, 23 insertions(+), 96 deletions(-) |
22 |
|
23 |
diff --git a/gnome-base/dconf/dconf-0.10.0.ebuild b/gnome-base/dconf/dconf-0.10.0.ebuild |
24 |
deleted file mode 100644 |
25 |
index 66809c7..0000000 |
26 |
--- a/gnome-base/dconf/dconf-0.10.0.ebuild |
27 |
+++ /dev/null |
28 |
@@ -1,81 +0,0 @@ |
29 |
-# Copyright 1999-2011 Gentoo Foundation |
30 |
-# Distributed under the terms of the GNU General Public License v2 |
31 |
-# $Header: $ |
32 |
- |
33 |
-EAPI="4" |
34 |
-GCONF_DEBUG="no" |
35 |
- |
36 |
-inherit autotools eutils gnome2 bash-completion |
37 |
-if [[ ${PV} = 9999 ]]; then |
38 |
- inherit gnome2-live |
39 |
-fi |
40 |
- |
41 |
-DESCRIPTION="Simple low-level configuration system" |
42 |
-HOMEPAGE="http://live.gnome.org/dconf" |
43 |
- |
44 |
-LICENSE="LGPL-2.1" |
45 |
-SLOT="0" |
46 |
-IUSE="doc vala +X" |
47 |
-if [[ ${PV} = 9999 ]]; then |
48 |
- KEYWORDS="" |
49 |
-else |
50 |
- KEYWORDS="~amd64 ~arm ~sparc ~x86" |
51 |
-fi |
52 |
- |
53 |
-COMMON_DEPEND=">=dev-libs/glib-2.29.90:2 |
54 |
- sys-apps/dbus |
55 |
- X? ( |
56 |
- >=dev-libs/libxml2-2.7.7:2 |
57 |
- x11-libs/gtk+:3 )" |
58 |
-# vala:0.14 due to an automagic version-check #ifdef (commit a15d9621) |
59 |
-DEPEND="${COMMON_DEPEND} |
60 |
- doc? ( >=dev-util/gtk-doc-1.15 ) |
61 |
- vala? ( dev-lang/vala:0.14 )" |
62 |
- |
63 |
-pkg_setup() { |
64 |
- G2CONF="${G2CONF} |
65 |
- --disable-schemas-compile |
66 |
- $(use_enable vala) |
67 |
- $(use_enable X editor) |
68 |
- VALAC=$(type -p valac-0.14)" |
69 |
-} |
70 |
- |
71 |
-src_prepare() { |
72 |
- if [[ ${PV} = 9999 ]]; then |
73 |
- # XXX: gtk-doc.make should be in top_srcdir -- file a bug for this |
74 |
- # Let's only do this in the live version to avoid gtkdocize in releases |
75 |
- sed -e 's:^include gtk-doc.make:include $(top_srcdir)/gtk-doc.make:' \ |
76 |
- -i docs/Makefile.am || die "Fixing gtk-doc.make failed" |
77 |
- fi |
78 |
- |
79 |
- # Fix vala automagic support, upstream bug #634171 |
80 |
- epatch "${FILESDIR}/${PN}-automagic-vala.patch" |
81 |
- |
82 |
- if [[ ${PV} != 9999 ]]; then |
83 |
- mkdir -p m4 || die |
84 |
- AT_M4DIR="." eautoreconf |
85 |
- eautoreconf |
86 |
- fi |
87 |
- gnome2_src_prepare |
88 |
-} |
89 |
- |
90 |
-src_install() { |
91 |
- gnome2_src_install |
92 |
- |
93 |
- # GSettings backend may be one of: memory, gconf, dconf |
94 |
- # Only dconf is really considered functional by upstream |
95 |
- # must have it enabled over gconf if both are installed |
96 |
- echo 'CONFIG_PROTECT_MASK="/etc/dconf"' >> 51dconf |
97 |
- echo 'GSETTINGS_BACKEND="dconf"' >> 51dconf |
98 |
- doenvd 51dconf |
99 |
- |
100 |
- # Remove bash-completion file installed by build system |
101 |
- rm -rv "${ED}/etc/bash_completion.d/" || die |
102 |
- use bash-completion && \ |
103 |
- dobashcompletion "${S}/bin/dconf-bash-completion.sh" ${PN} |
104 |
-} |
105 |
- |
106 |
-pkg_postinst() { |
107 |
- gnome2_pkg_postinst |
108 |
- use bash-completion && bash-completion_pkg_postinst |
109 |
-} |
110 |
|
111 |
diff --git a/gnome-base/dconf/dconf-9999.ebuild b/gnome-base/dconf/dconf-9999.ebuild |
112 |
index 66809c7..05945f9 100644 |
113 |
--- a/gnome-base/dconf/dconf-9999.ebuild |
114 |
+++ b/gnome-base/dconf/dconf-9999.ebuild |
115 |
@@ -5,7 +5,7 @@ |
116 |
EAPI="4" |
117 |
GCONF_DEBUG="no" |
118 |
|
119 |
-inherit autotools eutils gnome2 bash-completion |
120 |
+inherit autotools eutils gnome2 bash-completion-r1 |
121 |
if [[ ${PV} = 9999 ]]; then |
122 |
inherit gnome2-live |
123 |
fi |
124 |
@@ -19,18 +19,19 @@ IUSE="doc vala +X" |
125 |
if [[ ${PV} = 9999 ]]; then |
126 |
KEYWORDS="" |
127 |
else |
128 |
- KEYWORDS="~amd64 ~arm ~sparc ~x86" |
129 |
+ KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" |
130 |
fi |
131 |
|
132 |
-COMMON_DEPEND=">=dev-libs/glib-2.29.90:2 |
133 |
+RDEPEND=">=dev-libs/glib-2.29.90:2 |
134 |
sys-apps/dbus |
135 |
- X? ( |
136 |
- >=dev-libs/libxml2-2.7.7:2 |
137 |
+ X? ( >=dev-libs/libxml2-2.7.7:2 |
138 |
x11-libs/gtk+:3 )" |
139 |
# vala:0.14 due to an automagic version-check #ifdef (commit a15d9621) |
140 |
-DEPEND="${COMMON_DEPEND} |
141 |
+DEPEND="${RDEPEND} |
142 |
+ dev-util/gtk-doc-am |
143 |
doc? ( >=dev-util/gtk-doc-1.15 ) |
144 |
vala? ( dev-lang/vala:0.14 )" |
145 |
+# eautoreconf requires gtk-doc-am |
146 |
|
147 |
pkg_setup() { |
148 |
G2CONF="${G2CONF} |
149 |
@@ -49,13 +50,13 @@ src_prepare() { |
150 |
fi |
151 |
|
152 |
# Fix vala automagic support, upstream bug #634171 |
153 |
- epatch "${FILESDIR}/${PN}-automagic-vala.patch" |
154 |
+ epatch "${FILESDIR}/${PN}-0.8.0-automagic-vala.patch" |
155 |
|
156 |
if [[ ${PV} != 9999 ]]; then |
157 |
mkdir -p m4 || die |
158 |
- AT_M4DIR="." eautoreconf |
159 |
eautoreconf |
160 |
fi |
161 |
+ |
162 |
gnome2_src_prepare |
163 |
} |
164 |
|
165 |
@@ -71,11 +72,18 @@ src_install() { |
166 |
|
167 |
# Remove bash-completion file installed by build system |
168 |
rm -rv "${ED}/etc/bash_completion.d/" || die |
169 |
- use bash-completion && \ |
170 |
- dobashcompletion "${S}/bin/dconf-bash-completion.sh" ${PN} |
171 |
+ newbashcomp "${S}/bin/dconf-bash-completion.sh" ${PN} |
172 |
} |
173 |
|
174 |
pkg_postinst() { |
175 |
gnome2_pkg_postinst |
176 |
- use bash-completion && bash-completion_pkg_postinst |
177 |
+ # Kill existing dconf-service processes as recommended by upstream due to |
178 |
+ # possible changes in the dconf private dbus API. |
179 |
+ # dconf-service will be dbus-activated on next use. |
180 |
+ pids=$(pgrep -x dconf-service) |
181 |
+ if [[ $? == 0 ]]; then |
182 |
+ ebegin "Stopping dconf-service; it will automatically restart on demand" |
183 |
+ kill ${pids} |
184 |
+ eend $? |
185 |
+ fi |
186 |
} |
187 |
|
188 |
diff --git a/gnome-base/dconf/files/dconf-automagic-vala.patch b/gnome-base/dconf/files/dconf-0.8.0-automagic-vala.patch |
189 |
similarity index 67% |
190 |
rename from gnome-base/dconf/files/dconf-automagic-vala.patch |
191 |
rename to gnome-base/dconf/files/dconf-0.8.0-automagic-vala.patch |
192 |
index 11e1616..9f680a0 100644 |
193 |
--- a/gnome-base/dconf/files/dconf-automagic-vala.patch |
194 |
+++ b/gnome-base/dconf/files/dconf-0.8.0-automagic-vala.patch |
195 |
@@ -1,5 +1,5 @@ |
196 |
---- configure.ac |
197 |
-+++ configure.ac |
198 |
+--- configure.ac.orig 2010-11-06 16:24:36.000000000 +0100 |
199 |
++++ configure.ac 2010-11-06 16:24:19.000000000 +0100 |
200 |
@@ -12,7 +12,15 @@ |
201 |
|
202 |
# Check for programs |
203 |
@@ -15,5 +15,5 @@ |
204 |
+ AM_PROG_VALAC([0.11.7]) |
205 |
+fi |
206 |
|
207 |
- # Gtk-doc support |
208 |
- GTK_DOC_CHECK([1.15]) |
209 |
+ # Use GSettings |
210 |
+ GLIB_GSETTINGS |