1 |
commit: 68aa8e8b149f64836030a6275529281384578046 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 3 11:26:08 2015 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 3 11:26:08 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68aa8e8b |
7 |
|
8 |
x11-libs/pango: Remove orphan old file (#536726), cantarell fonts are needed for tests (#532346), respect ROOT variable when creating modules.cache (#534360 by Mark Tomich and Fabian Groffen). |
9 |
|
10 |
Package-Manager: portage-2.2.22 |
11 |
|
12 |
x11-libs/pango/pango-1.36.8-r1.ebuild | 91 +++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 91 insertions(+) |
14 |
|
15 |
diff --git a/x11-libs/pango/pango-1.36.8-r1.ebuild b/x11-libs/pango/pango-1.36.8-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..16d8b49 |
18 |
--- /dev/null |
19 |
+++ b/x11-libs/pango/pango-1.36.8-r1.ebuild |
20 |
@@ -0,0 +1,91 @@ |
21 |
+# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI="5" |
26 |
+GCONF_DEBUG="yes" |
27 |
+GNOME2_LA_PUNT="yes" |
28 |
+ |
29 |
+inherit gnome2 multilib toolchain-funcs multilib-minimal |
30 |
+ |
31 |
+DESCRIPTION="Internationalized text layout and rendering library" |
32 |
+HOMEPAGE="http://www.pango.org/" |
33 |
+ |
34 |
+LICENSE="LGPL-2+ FTL" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
37 |
+ |
38 |
+IUSE="X +introspection test" |
39 |
+ |
40 |
+RDEPEND=" |
41 |
+ >=media-libs/harfbuzz-0.9.12:=[glib(+),truetype(+),${MULTILIB_USEDEP}] |
42 |
+ >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] |
43 |
+ >=media-libs/fontconfig-2.10.92:1.0=[${MULTILIB_USEDEP}] |
44 |
+ >=media-libs/freetype-2.5.0.1:2=[${MULTILIB_USEDEP}] |
45 |
+ >=x11-libs/cairo-1.12.14-r4:=[X?,${MULTILIB_USEDEP}] |
46 |
+ introspection? ( >=dev-libs/gobject-introspection-0.9.5 ) |
47 |
+ X? ( |
48 |
+ >=x11-libs/libXrender-0.9.8[${MULTILIB_USEDEP}] |
49 |
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
50 |
+ >=x11-libs/libXft-2.3.1-r1[${MULTILIB_USEDEP}] |
51 |
+ ) |
52 |
+ abi_x86_32? ( |
53 |
+ !<=app-emulation/emul-linux-x86-gtklibs-20131008-r3 |
54 |
+ !app-emulation/emul-linux-x86-gtklibs[-abi_x86_32(-)] |
55 |
+ ) |
56 |
+" |
57 |
+DEPEND="${RDEPEND} |
58 |
+ >=dev-util/gtk-doc-am-1.20 |
59 |
+ virtual/pkgconfig |
60 |
+ test? ( media-fonts/cantarell ) |
61 |
+ X? ( >=x11-proto/xproto-7.0.24[${MULTILIB_USEDEP}] ) |
62 |
+ !<=sys-devel/autoconf-2.63:2.5 |
63 |
+" |
64 |
+ |
65 |
+MULTILIB_CHOST_TOOLS=( |
66 |
+ /usr/bin/pango-querymodules |
67 |
+) |
68 |
+ |
69 |
+multilib_src_configure() { |
70 |
+ tc-export CXX |
71 |
+ |
72 |
+ ECONF_SOURCE=${S} \ |
73 |
+ gnome2_src_configure \ |
74 |
+ --with-cairo \ |
75 |
+ $(multilib_native_use_enable introspection) \ |
76 |
+ $(use_with X xft) \ |
77 |
+ "$(usex X --x-includes="${EPREFIX}/usr/include" "")" \ |
78 |
+ "$(usex X --x-libraries="${EPREFIX}/usr/$(get_libdir)" "")" |
79 |
+ |
80 |
+ if multilib_is_native_abi; then |
81 |
+ ln -s "${S}"/docs/html docs/html || die |
82 |
+ fi |
83 |
+} |
84 |
+ |
85 |
+multilib_src_install() { |
86 |
+ gnome2_src_install |
87 |
+} |
88 |
+ |
89 |
+pkg_postinst() { |
90 |
+ gnome2_pkg_postinst |
91 |
+ |
92 |
+ multilib_pkg_postinst() { |
93 |
+ einfo "Generating modules listing..." |
94 |
+ |
95 |
+ # chroot needed for bug #534360 |
96 |
+ chroot "${ROOT}" "${CHOST}-pango-querymodules" --update-cache |
97 |
+ |
98 |
+ # Remove old autogenerated file to prevent collisions with newer |
99 |
+ rm -f "${EROOT}/etc/pango/${CHOST}/pango.modules" |
100 |
+ } |
101 |
+ |
102 |
+ multilib_foreach_abi multilib_pkg_postinst |
103 |
+ |
104 |
+ # Remove old file, bug #536726 |
105 |
+ oldfile="${EROOT}etc/pango/pango.modules" |
106 |
+ if [[ -f "${oldfile}" ]]; then |
107 |
+ elog |
108 |
+ elog "Removing old ${oldfile}..." |
109 |
+ rm -f "${oldfile}" || eerror "Failed, please remove ${oldfile} manually" |
110 |
+ fi |
111 |
+} |