1 |
commit: ada11ebcd8cbff63de58047cbacd7ca372910ff9 |
2 |
Author: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 7 07:22:08 2012 +0000 |
4 |
Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com> |
5 |
CommitDate: Thu Jun 7 07:22:08 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=ada11ebc |
7 |
|
8 |
x11-libs/pango: sync with gx86 |
9 |
|
10 |
--- |
11 |
x11-libs/pango/pango-9999.ebuild | 32 +++++++++++++++++++++++--------- |
12 |
1 files changed, 23 insertions(+), 9 deletions(-) |
13 |
|
14 |
diff --git a/x11-libs/pango/pango-9999.ebuild b/x11-libs/pango/pango-9999.ebuild |
15 |
index 044c187..d2744f3 100644 |
16 |
--- a/x11-libs/pango/pango-9999.ebuild |
17 |
+++ b/x11-libs/pango/pango-9999.ebuild |
18 |
@@ -1,4 +1,4 @@ |
19 |
-# Copyright 1999-2011 Gentoo Foundation |
20 |
+# Copyright 1999-2012 Gentoo Foundation |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
# $Header: $ |
23 |
|
24 |
@@ -19,13 +19,15 @@ SLOT="0" |
25 |
if [[ ${PV} = 9999 ]]; then |
26 |
KEYWORDS="" |
27 |
else |
28 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
29 |
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
30 |
fi |
31 |
|
32 |
IUSE="X doc +introspection test" |
33 |
|
34 |
-# Use glib-2.29.5 for g_atomic_int_add |
35 |
-RDEPEND=">=dev-libs/glib-2.29.5:2 |
36 |
+# Upstream bug #643802 |
37 |
+REQUIRED_USE="doc? ( X )" |
38 |
+ |
39 |
+RDEPEND=">=dev-libs/glib-2.31.0:2 |
40 |
>=media-libs/fontconfig-2.5.0:1.0 |
41 |
media-libs/freetype:2 |
42 |
>=x11-libs/cairo-1.7.6[X?] |
43 |
@@ -63,8 +65,6 @@ pkg_setup() { |
44 |
} |
45 |
|
46 |
src_prepare() { |
47 |
- gnome2_src_prepare |
48 |
- |
49 |
# make config file location host specific so that a 32bit and 64bit pango |
50 |
# wont fight with each other on a multilib system. Fix building for |
51 |
# emul-linux-x86-gtklibs |
52 |
@@ -73,7 +73,7 @@ src_prepare() { |
53 |
eautoreconf |
54 |
fi |
55 |
|
56 |
- elibtoolize # for Darwin bundles |
57 |
+ gnome2_src_prepare |
58 |
} |
59 |
|
60 |
pkg_postinst() { |
61 |
@@ -83,7 +83,21 @@ pkg_postinst() { |
62 |
multilib_enabled && PANGO_CONFDIR+="/${CHOST}" |
63 |
|
64 |
mkdir -p "${PANGO_CONFDIR}" |
65 |
- pango-querymodules \ |
66 |
+ local pango_conf="${PANGO_CONFDIR}/pango.modules" |
67 |
+ local tmp_file=$(mktemp -t tmp.XXXXXXXXXXgdk_pixbuf_ebuild) |
68 |
+ |
69 |
+ # be atomic! |
70 |
+ if pango-querymodules --system \ |
71 |
"${EROOT}"usr/$(get_libdir)/pango/1.6.0/modules/*.so \ |
72 |
- > "${PANGO_CONFDIR}"/pango.modules |
73 |
+ > "${tmp_file}"; then |
74 |
+ cat "${tmp_file}" > "${pango_conf}" || { |
75 |
+ rm "${tmp_file}"; die; } |
76 |
+ else |
77 |
+ ewarn "Cannot update pango.modules, file generation failed" |
78 |
+ fi |
79 |
+ rm "${tmp_file}" |
80 |
+ |
81 |
+ elog "In >=${PN}-1.30.1, default configuration file locations moved from" |
82 |
+ elog "~/.pangorc and ~/.pangox_aliases to ~/.config/pango/pangorc and" |
83 |
+ elog "~/.config/pango/pangox.aliases" |
84 |
} |