/[gentoo-x86]/x11-libs/pango/pango-1.29.4.ebuild
Gentoo

Contents of /x11-libs/pango/pango-1.29.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Sun May 20 19:31:39 2012 UTC (2 years, 7 months ago) by ssuominen
Branch: MAIN
Changes since 1.15: +2 -2 lines
ppc stable wrt #407643

(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-libs/pango/pango-1.29.4.ebuild,v 1.15 2012/05/05 03:52:23 jdhore Exp $
4
5 EAPI="4"
6 GCONF_DEBUG="yes"
7 GNOME2_LA_PUNT="yes"
8
9 inherit autotools eutils gnome2 multilib toolchain-funcs
10
11 DESCRIPTION="Internationalized text layout and rendering library"
12 HOMEPAGE="http://www.pango.org/"
13
14 LICENSE="LGPL-2 FTL"
15 SLOT="0"
16 KEYWORDS="alpha amd64 arm hppa ia64 ~mips 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"
17
18 IUSE="X doc +introspection test"
19
20 # Upstream bug #643802
21 REQUIRED_USE="doc? ( X )"
22
23 # Use glib-2.29.5 for g_atomic_int_add
24 RDEPEND=">=dev-libs/glib-2.29.5:2
25 >=media-libs/fontconfig-2.5.0:1.0
26 media-libs/freetype:2
27 >=x11-libs/cairo-1.7.6[X?]
28 X? (
29 x11-libs/libXrender
30 x11-libs/libX11
31 >=x11-libs/libXft-2.0.0 )"
32 DEPEND="${RDEPEND}
33 virtual/pkgconfig
34 >=dev-util/gtk-doc-am-1.13
35 doc? (
36 >=dev-util/gtk-doc-1.13
37 ~app-text/docbook-xml-dtd-4.1.2
38 x11-libs/libXft )
39 introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
40 test? (
41 >=dev-util/gtk-doc-1.13
42 ~app-text/docbook-xml-dtd-4.1.2
43 x11-libs/libXft )
44 X? ( x11-proto/xproto )
45 !<=sys-devel/autoconf-2.63:2.5"
46
47 function multilib_enabled() {
48 has_multilib_profile || ( use x86 && [ "$(get_libdir)" = "lib32" ] )
49 }
50
51 pkg_setup() {
52 tc-export CXX
53 G2CONF="${G2CONF}
54 $(use_enable introspection)
55 $(use_with X x)
56 $(use X && echo --x-includes=${EPREFIX}/usr/include)
57 $(use X && echo --x-libraries=${EPREFIX}/usr/$(get_libdir))"
58 DOCS="AUTHORS ChangeLog* NEWS README THANKS"
59 }
60
61 src_prepare() {
62 # make config file location host specific so that a 32bit and 64bit pango
63 # wont fight with each other on a multilib system. Fix building for
64 # emul-linux-x86-gtklibs
65 if multilib_enabled ; then
66 epatch "${FILESDIR}/${PN}-1.26.0-lib64.patch"
67 eautoreconf
68 fi
69
70 gnome2_src_prepare
71 }
72
73 pkg_postinst() {
74 einfo "Generating modules listing..."
75
76 local PANGO_CONFDIR="${EROOT}/etc/pango"
77 multilib_enabled && PANGO_CONFDIR+="/${CHOST}"
78
79 mkdir -p "${PANGO_CONFDIR}"
80 local pango_conf="${PANGO_CONFDIR}/pango.modules"
81 local tmp_file=$(mktemp -t tmp.XXXXXXXXXXgdk_pixbuf_ebuild)
82
83 # be atomic!
84 if pango-querymodules \
85 "${EROOT}"usr/$(get_libdir)/pango/1.6.0/modules/*.so \
86 > "${tmp_file}"; then
87 cat "${tmp_file}" > "${pango_conf}" || {
88 rm "${tmp_file}"; die; }
89 else
90 ewarn "Cannot update pango.modules, file generation failed"
91 fi
92 rm "${tmp_file}"
93 }

  ViewVC Help
Powered by ViewVC 1.1.20