1 |
commit: 177123cffdbca7914cdf75f4b80ed69abd7340c2 |
2 |
Author: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 31 06:59:17 2011 +0000 |
4 |
Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Oct 31 07:24:31 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=177123cf |
7 |
|
8 |
mail-client/evolution: qa + fix clutter build |
9 |
|
10 |
Switch to EAPI4, clean up src_prepare to match gx86, gnome2.eclass will |
11 |
take care of maintainer mode. Update CPPFLAGS sed for configure.ac |
12 |
changes (the second " made it fail). Finally add a REQUIRED_USE. |
13 |
|
14 |
Also, add a patch to fix building with USE=clutter on a system that has |
15 |
both clutter-gtk:0.10 and clutter-gtk:1.0 installed; submitted upstream |
16 |
at https://bugzilla.gnome.org/show_bug.cgi?id=663077 |
17 |
|
18 |
--- |
19 |
mail-client/evolution/evolution-3.2.1.ebuild | 54 ++++++-------------- |
20 |
mail-client/evolution/evolution-9999.ebuild | 54 ++++++-------------- |
21 |
.../evolution-3.2.1-reorder-mx-clutter-gtk.patch | 34 ++++++++++++ |
22 |
3 files changed, 66 insertions(+), 76 deletions(-) |
23 |
|
24 |
diff --git a/mail-client/evolution/evolution-3.2.1.ebuild b/mail-client/evolution/evolution-3.2.1.ebuild |
25 |
index 49c720f..d90c2d8 100644 |
26 |
--- a/mail-client/evolution/evolution-3.2.1.ebuild |
27 |
+++ b/mail-client/evolution/evolution-3.2.1.ebuild |
28 |
@@ -2,8 +2,7 @@ |
29 |
# Distributed under the terms of the GNU General Public License v2 |
30 |
# $Header: /var/cvsroot/gentoo-x86/mail-client/evolution/evolution-2.32.1-r1.ebuild,v 1.3 2011/01/15 19:56:39 nirbheek Exp $ |
31 |
|
32 |
-EAPI="3" |
33 |
-GNOME_TARBALL_SUFFIX="xz" |
34 |
+EAPI="4" |
35 |
GCONF_DEBUG="no" |
36 |
GNOME2_LA_PUNT="yes" |
37 |
PYTHON_DEPEND="python? 2:2.4" |
38 |
@@ -57,7 +56,7 @@ COMMON_DEPEND=">=dev-libs/glib-2.28:2 |
39 |
clutter? ( |
40 |
>=media-libs/clutter-1.0.0:1.0 |
41 |
>=media-libs/clutter-gtk-0.90:1.0 |
42 |
- x11-libs/mx ) |
43 |
+ x11-libs/mx:1.0 ) |
44 |
connman? ( net-misc/connman ) |
45 |
crypt? ( || ( |
46 |
( >=app-crypt/gnupg-2.0.1-r2 ${PINENTRY_DEPEND} ) |
47 |
@@ -92,15 +91,17 @@ DEPEND="${COMMON_DEPEND} |
48 |
RDEPEND="${COMMON_DEPEND} |
49 |
!<gnome-extra/evolution-exchange-2.32" |
50 |
|
51 |
-# Need EAPI=4 support in python eclass |
52 |
-#REQUIRED_USE="map? ( clutter )" |
53 |
+# contact maps require clutter |
54 |
+# NM and connman support cannot coexist |
55 |
+REQUIRED_USE="map? ( clutter ) |
56 |
+ connman? ( !networkmanager ) |
57 |
+ networkmanager? ( !connman )" |
58 |
|
59 |
pkg_setup() { |
60 |
ELTCONF="--reverse-deps" |
61 |
DOCS="AUTHORS ChangeLog* HACKING MAINTAINERS NEWS* README" |
62 |
# image-inline plugin needs a gtk+:3 gtkimageview, which does not exist yet |
63 |
G2CONF="${G2CONF} |
64 |
- --disable-maintainer-mode |
65 |
--without-glade-catalog |
66 |
--without-kde-applnk-path |
67 |
--enable-plugins=experimental |
68 |
@@ -115,22 +116,12 @@ pkg_setup() { |
69 |
$(use_enable connman) |
70 |
$(use_enable gnome-online-accounts goa) |
71 |
$(use_enable gstreamer audio-inline) |
72 |
+ $(use_enable map contact-maps) |
73 |
$(use_enable python) |
74 |
$(use_with clutter) |
75 |
$(use_with ldap openldap) |
76 |
$(use_with kerberos krb5 ${EPREFIX}/usr)" |
77 |
|
78 |
- # workaround for lack of EAPI 4 support in python.eclass |
79 |
- local myconf="--disable-contact-maps" |
80 |
- if use map; then |
81 |
- if use clutter; then |
82 |
- myconf="--enable-contact-maps" |
83 |
- else |
84 |
- ewarn "map plugin auto-disabled due to USE=-clutter" |
85 |
- fi |
86 |
- fi |
87 |
- G2CONF="${G2CONF} ${myconf}" |
88 |
- |
89 |
# dang - I've changed this to do --enable-plugins=experimental. This will |
90 |
# autodetect new-mail-notify and exchange, but that cannot be helped for the |
91 |
# moment. They should be changed to depend on a --enable-<foo> like mono |
92 |
@@ -147,33 +138,20 @@ pkg_setup() { |
93 |
--without-nss-includes" |
94 |
fi |
95 |
|
96 |
- # NM and connman support cannot coexist |
97 |
- if use networkmanager && use connman ; then |
98 |
- ewarn "It is not possible to enable both ConnMan and NetworkManager, disabling connman..." |
99 |
- G2CONF="${G2CONF} --disable-connman" |
100 |
- fi |
101 |
- |
102 |
python_set_active_version 2 |
103 |
+ python_pkg_setup |
104 |
} |
105 |
|
106 |
src_prepare() { |
107 |
- # Use NSS/NSPR only if 'ssl' is enabled. |
108 |
- if use ssl ; then |
109 |
- sed -e 's|mozilla-nss|nss|' \ |
110 |
- -e 's|mozilla-nspr|nspr|' \ |
111 |
- -i configure.ac || die "sed 2 failed" |
112 |
- fi |
113 |
- |
114 |
- # Fix compilation flags crazyness |
115 |
- sed -e 's/\(AM_CPPFLAGS="\)$WARNING_FLAGS"/\1/' \ |
116 |
- -i configure.ac || die "sed 1 failed" |
117 |
- |
118 |
- if [[ ${PV} != 9999 ]]; then |
119 |
- intltoolize --force --copy --automake || die "intltoolize failed" |
120 |
- eautoreconf |
121 |
- fi |
122 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=663077, requires eautoreconf |
123 |
+ epatch "${FILESDIR}/${PN}-3.2.1-reorder-mx-clutter-gtk.patch" |
124 |
+ [[ ${PV} != 9999 ]] && eautoreconf |
125 |
|
126 |
gnome2_src_prepare |
127 |
+ |
128 |
+ # Fix compilation flags crazyness |
129 |
+ sed -e 's/\(AM_CPPFLAGS="\)$WARNING_FLAGS/\1/' \ |
130 |
+ -i configure || die "CPPFLAGS sed failed" |
131 |
} |
132 |
|
133 |
pkg_postinst() { |
134 |
|
135 |
diff --git a/mail-client/evolution/evolution-9999.ebuild b/mail-client/evolution/evolution-9999.ebuild |
136 |
index 49c720f..d90c2d8 100644 |
137 |
--- a/mail-client/evolution/evolution-9999.ebuild |
138 |
+++ b/mail-client/evolution/evolution-9999.ebuild |
139 |
@@ -2,8 +2,7 @@ |
140 |
# Distributed under the terms of the GNU General Public License v2 |
141 |
# $Header: /var/cvsroot/gentoo-x86/mail-client/evolution/evolution-2.32.1-r1.ebuild,v 1.3 2011/01/15 19:56:39 nirbheek Exp $ |
142 |
|
143 |
-EAPI="3" |
144 |
-GNOME_TARBALL_SUFFIX="xz" |
145 |
+EAPI="4" |
146 |
GCONF_DEBUG="no" |
147 |
GNOME2_LA_PUNT="yes" |
148 |
PYTHON_DEPEND="python? 2:2.4" |
149 |
@@ -57,7 +56,7 @@ COMMON_DEPEND=">=dev-libs/glib-2.28:2 |
150 |
clutter? ( |
151 |
>=media-libs/clutter-1.0.0:1.0 |
152 |
>=media-libs/clutter-gtk-0.90:1.0 |
153 |
- x11-libs/mx ) |
154 |
+ x11-libs/mx:1.0 ) |
155 |
connman? ( net-misc/connman ) |
156 |
crypt? ( || ( |
157 |
( >=app-crypt/gnupg-2.0.1-r2 ${PINENTRY_DEPEND} ) |
158 |
@@ -92,15 +91,17 @@ DEPEND="${COMMON_DEPEND} |
159 |
RDEPEND="${COMMON_DEPEND} |
160 |
!<gnome-extra/evolution-exchange-2.32" |
161 |
|
162 |
-# Need EAPI=4 support in python eclass |
163 |
-#REQUIRED_USE="map? ( clutter )" |
164 |
+# contact maps require clutter |
165 |
+# NM and connman support cannot coexist |
166 |
+REQUIRED_USE="map? ( clutter ) |
167 |
+ connman? ( !networkmanager ) |
168 |
+ networkmanager? ( !connman )" |
169 |
|
170 |
pkg_setup() { |
171 |
ELTCONF="--reverse-deps" |
172 |
DOCS="AUTHORS ChangeLog* HACKING MAINTAINERS NEWS* README" |
173 |
# image-inline plugin needs a gtk+:3 gtkimageview, which does not exist yet |
174 |
G2CONF="${G2CONF} |
175 |
- --disable-maintainer-mode |
176 |
--without-glade-catalog |
177 |
--without-kde-applnk-path |
178 |
--enable-plugins=experimental |
179 |
@@ -115,22 +116,12 @@ pkg_setup() { |
180 |
$(use_enable connman) |
181 |
$(use_enable gnome-online-accounts goa) |
182 |
$(use_enable gstreamer audio-inline) |
183 |
+ $(use_enable map contact-maps) |
184 |
$(use_enable python) |
185 |
$(use_with clutter) |
186 |
$(use_with ldap openldap) |
187 |
$(use_with kerberos krb5 ${EPREFIX}/usr)" |
188 |
|
189 |
- # workaround for lack of EAPI 4 support in python.eclass |
190 |
- local myconf="--disable-contact-maps" |
191 |
- if use map; then |
192 |
- if use clutter; then |
193 |
- myconf="--enable-contact-maps" |
194 |
- else |
195 |
- ewarn "map plugin auto-disabled due to USE=-clutter" |
196 |
- fi |
197 |
- fi |
198 |
- G2CONF="${G2CONF} ${myconf}" |
199 |
- |
200 |
# dang - I've changed this to do --enable-plugins=experimental. This will |
201 |
# autodetect new-mail-notify and exchange, but that cannot be helped for the |
202 |
# moment. They should be changed to depend on a --enable-<foo> like mono |
203 |
@@ -147,33 +138,20 @@ pkg_setup() { |
204 |
--without-nss-includes" |
205 |
fi |
206 |
|
207 |
- # NM and connman support cannot coexist |
208 |
- if use networkmanager && use connman ; then |
209 |
- ewarn "It is not possible to enable both ConnMan and NetworkManager, disabling connman..." |
210 |
- G2CONF="${G2CONF} --disable-connman" |
211 |
- fi |
212 |
- |
213 |
python_set_active_version 2 |
214 |
+ python_pkg_setup |
215 |
} |
216 |
|
217 |
src_prepare() { |
218 |
- # Use NSS/NSPR only if 'ssl' is enabled. |
219 |
- if use ssl ; then |
220 |
- sed -e 's|mozilla-nss|nss|' \ |
221 |
- -e 's|mozilla-nspr|nspr|' \ |
222 |
- -i configure.ac || die "sed 2 failed" |
223 |
- fi |
224 |
- |
225 |
- # Fix compilation flags crazyness |
226 |
- sed -e 's/\(AM_CPPFLAGS="\)$WARNING_FLAGS"/\1/' \ |
227 |
- -i configure.ac || die "sed 1 failed" |
228 |
- |
229 |
- if [[ ${PV} != 9999 ]]; then |
230 |
- intltoolize --force --copy --automake || die "intltoolize failed" |
231 |
- eautoreconf |
232 |
- fi |
233 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=663077, requires eautoreconf |
234 |
+ epatch "${FILESDIR}/${PN}-3.2.1-reorder-mx-clutter-gtk.patch" |
235 |
+ [[ ${PV} != 9999 ]] && eautoreconf |
236 |
|
237 |
gnome2_src_prepare |
238 |
+ |
239 |
+ # Fix compilation flags crazyness |
240 |
+ sed -e 's/\(AM_CPPFLAGS="\)$WARNING_FLAGS/\1/' \ |
241 |
+ -i configure || die "CPPFLAGS sed failed" |
242 |
} |
243 |
|
244 |
pkg_postinst() { |
245 |
|
246 |
diff --git a/mail-client/evolution/files/evolution-3.2.1-reorder-mx-clutter-gtk.patch b/mail-client/evolution/files/evolution-3.2.1-reorder-mx-clutter-gtk.patch |
247 |
new file mode 100644 |
248 |
index 0000000..6df8f2b |
249 |
--- /dev/null |
250 |
+++ b/mail-client/evolution/files/evolution-3.2.1-reorder-mx-clutter-gtk.patch |
251 |
@@ -0,0 +1,34 @@ |
252 |
+From 1c036f9a0a922f68fbbf09540a14173465e51a1e Mon Sep 17 00:00:00 2001 |
253 |
+From: Alexandre Rostovtsev <tetromino@g.o> |
254 |
+Date: Mon, 31 Oct 2011 02:15:54 -0400 |
255 |
+Subject: [PATCH] reorder mx-1.0 and clutter-gtk-1.0 in PKG_CHECK_MODULES:q |
256 |
+ |
257 |
+clutter-gtk-1.0 installs headers in /usr/include/clutter-gtk-1.0/clutter-gtk; |
258 |
+clutter-gtk-0.10 installs headers in /usr/include/clutter-1.0/clutter-gtk |
259 |
+ |
260 |
+To ensure that clutter-gtk-1.0's headers (and not 0.10's) are used, |
261 |
+-I/usr/include/clutter-gtk-1.0 must come before -I/usr/include/clutter-1.0 |
262 |
+in CLUTTER_CFLAGS. And that means clutter-gtk-1.0 must come before mx-1.0 |
263 |
+in PKG_CHECK_MODULES. |
264 |
+ |
265 |
+https://bugzilla.gnome.org/show_bug.cgi?id=663077 |
266 |
+--- |
267 |
+ configure.ac | 2 +- |
268 |
+ 1 files changed, 1 insertions(+), 1 deletions(-) |
269 |
+ |
270 |
+diff --git a/configure.ac b/configure.ac |
271 |
+index 5c2c5ed..b5c74ee 100644 |
272 |
+--- a/configure.ac |
273 |
++++ b/configure.ac |
274 |
+@@ -596,7 +596,7 @@ AC_ARG_WITH([clutter], |
275 |
+ AC_MSG_RESULT($with_clutter) |
276 |
+ |
277 |
+ if test "x$with_clutter" = "xyes"; then |
278 |
+- PKG_CHECK_MODULES(CLUTTER, [mx-1.0 clutter-gtk-1.0 >= clutter_gtk_minimum_version clutter-1.0 >= 1.0.0]) |
279 |
++ PKG_CHECK_MODULES(CLUTTER, [clutter-gtk-1.0 >= clutter_gtk_minimum_version mx-1.0 clutter-1.0 >= 1.0.0]) |
280 |
+ |
281 |
+ AC_DEFINE(HAVE_CLUTTER, 1, [Clutter available]) |
282 |
+ AM_CONDITIONAL(ENABLE_CLUTTER, true) |
283 |
+-- |
284 |
+1.7.7.1 |
285 |
+ |