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

Contents of /x11-libs/pango/pango-1.28.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Wed Feb 15 03:47:58 2012 UTC (2 years, 8 months ago) by tetromino
Branch: MAIN
Changes since 1.9: +3 -5 lines
Don't call elibtoolize multiple times or before eautoreconf (bug #403695, thanks to Kris Hepler for reporting).

(Portage version: 2.2.0_alpha86/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.28.3-r1.ebuild,v 1.9 2011/03/19 18:18:09 pacho Exp $
4
5 EAPI="3"
6 GCONF_DEBUG="yes"
7
8 inherit autotools eutils gnome2 multilib toolchain-funcs
9
10 DESCRIPTION="Internationalized text layout and rendering library"
11 HOMEPAGE="http://www.pango.org/"
12
13 LICENSE="LGPL-2 FTL"
14 SLOT="0"
15 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 ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
16 IUSE="X doc +introspection test"
17
18 RDEPEND=">=dev-libs/glib-2.24:2
19 >=media-libs/fontconfig-2.5.0:1.0
20 media-libs/freetype:2
21 >=x11-libs/cairo-1.7.6[X?]
22 X? (
23 x11-libs/libXrender
24 x11-libs/libX11
25 x11-libs/libXft )"
26 DEPEND="${RDEPEND}
27 >=dev-util/pkgconfig-0.9
28 >=dev-util/gtk-doc-am-1.13
29 doc? (
30 >=dev-util/gtk-doc-1.13
31 ~app-text/docbook-xml-dtd-4.1.2
32 x11-libs/libXft )
33 introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
34 test? (
35 >=dev-util/gtk-doc-1.13
36 ~app-text/docbook-xml-dtd-4.1.2
37 x11-libs/libXft )
38 X? ( x11-proto/xproto )"
39
40 function multilib_enabled() {
41 has_multilib_profile || ( use x86 && [ "$(get_libdir)" = "lib32" ] )
42 }
43
44 pkg_setup() {
45 tc-export CXX
46 G2CONF="${G2CONF}
47 $(use_enable introspection)
48 $(use_with X x)
49 $(use X && echo --x-includes=${EPREFIX}/usr/include)
50 $(use X && echo --x-libraries=${EPREFIX}/usr/$(get_libdir))"
51 DOCS="AUTHORS ChangeLog* NEWS README THANKS"
52 }
53
54 src_prepare() {
55 # make config file location host specific so that a 32bit and 64bit pango
56 # wont fight with each other on a multilib system. Fix building for
57 # emul-linux-x86-gtklibs
58 if multilib_enabled ; then
59 epatch "${FILESDIR}/${PN}-1.26.0-lib64.patch"
60 fi
61
62 # Fix heap corruption in font parsing with FreeType2 backend, upstream bug #639882
63 epatch "${FILESDIR}/${PN}-1.28.3-heap-corruption.patch"
64
65 # Handle malloc failure in the buffer, upstream #644577
66 epatch "${FILESDIR}/${PN}-1.28.3-malloc-failure.patch"
67
68 eautoreconf
69 gnome2_src_prepare
70 }
71
72 src_install() {
73 gnome2_src_install
74 find "${ED}/usr/$(get_libdir)/pango/1.6.0/modules" -name "*.la" -delete || die
75 }
76
77 pkg_postinst() {
78 if [ "${ROOT}" = "/" ] ; then
79 einfo "Generating modules listing..."
80
81 local PANGO_CONFDIR=
82
83 if multilib_enabled ; then
84 PANGO_CONFDIR="${EPREFIX}/etc/pango/${CHOST}"
85 else
86 PANGO_CONFDIR="${EPREFIX}/etc/pango"
87 fi
88
89 mkdir -p ${PANGO_CONFDIR}
90
91 pango-querymodules > ${PANGO_CONFDIR}/pango.modules
92 fi
93 }

  ViewVC Help
Powered by ViewVC 1.1.20