| 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.30.0.ebuild,v 1.7 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 ~amd64-fbsd ~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 |
RDEPEND=">=dev-libs/glib-2.31.0:2
|
| 24 |
>=media-libs/fontconfig-2.5.0:1.0
|
| 25 |
media-libs/freetype:2
|
| 26 |
>=x11-libs/cairo-1.7.6[X?]
|
| 27 |
X? (
|
| 28 |
x11-libs/libXrender
|
| 29 |
x11-libs/libX11
|
| 30 |
>=x11-libs/libXft-2.0.0 )"
|
| 31 |
DEPEND="${RDEPEND}
|
| 32 |
virtual/pkgconfig
|
| 33 |
>=dev-util/gtk-doc-am-1.13
|
| 34 |
doc? (
|
| 35 |
>=dev-util/gtk-doc-1.13
|
| 36 |
~app-text/docbook-xml-dtd-4.1.2
|
| 37 |
x11-libs/libXft )
|
| 38 |
introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
|
| 39 |
test? (
|
| 40 |
>=dev-util/gtk-doc-1.13
|
| 41 |
~app-text/docbook-xml-dtd-4.1.2
|
| 42 |
x11-libs/libXft )
|
| 43 |
X? ( x11-proto/xproto )
|
| 44 |
!<=sys-devel/autoconf-2.63:2.5"
|
| 45 |
|
| 46 |
function multilib_enabled() {
|
| 47 |
has_multilib_profile || ( use x86 && [ "$(get_libdir)" = "lib32" ] )
|
| 48 |
}
|
| 49 |
|
| 50 |
pkg_setup() {
|
| 51 |
tc-export CXX
|
| 52 |
G2CONF="${G2CONF}
|
| 53 |
$(use_enable introspection)
|
| 54 |
$(use_with X x)
|
| 55 |
$(use X && echo --x-includes=${EPREFIX}/usr/include)
|
| 56 |
$(use X && echo --x-libraries=${EPREFIX}/usr/$(get_libdir))"
|
| 57 |
DOCS="AUTHORS ChangeLog* NEWS README THANKS"
|
| 58 |
}
|
| 59 |
|
| 60 |
src_prepare() {
|
| 61 |
# In next release
|
| 62 |
epatch "${FILESDIR}/${P}-coretext-hash.patch"
|
| 63 |
|
| 64 |
# make config file location host specific so that a 32bit and 64bit pango
|
| 65 |
# wont fight with each other on a multilib system. Fix building for
|
| 66 |
# emul-linux-x86-gtklibs
|
| 67 |
if multilib_enabled ; then
|
| 68 |
epatch "${FILESDIR}/${PN}-1.26.0-lib64.patch"
|
| 69 |
eautoreconf
|
| 70 |
fi
|
| 71 |
|
| 72 |
gnome2_src_prepare
|
| 73 |
}
|
| 74 |
|
| 75 |
pkg_postinst() {
|
| 76 |
einfo "Generating modules listing..."
|
| 77 |
|
| 78 |
local PANGO_CONFDIR="${EROOT}/etc/pango"
|
| 79 |
multilib_enabled && PANGO_CONFDIR+="/${CHOST}"
|
| 80 |
|
| 81 |
mkdir -p "${PANGO_CONFDIR}"
|
| 82 |
local pango_conf="${PANGO_CONFDIR}/pango.modules"
|
| 83 |
local tmp_file=$(mktemp -t tmp.XXXXXXXXXXgdk_pixbuf_ebuild)
|
| 84 |
|
| 85 |
# be atomic!
|
| 86 |
if pango-querymodules --system \
|
| 87 |
"${EROOT}"usr/$(get_libdir)/pango/1.6.0/modules/*.so \
|
| 88 |
> "${tmp_file}"; then
|
| 89 |
cat "${tmp_file}" > "${pango_conf}" || {
|
| 90 |
rm "${tmp_file}"; die; }
|
| 91 |
else
|
| 92 |
ewarn "Cannot update pango.modules, file generation failed"
|
| 93 |
fi
|
| 94 |
rm "${tmp_file}"
|
| 95 |
|
| 96 |
elog "In >=${PN}-1.30.1, default configuration file locations moved from"
|
| 97 |
elog "~/.pangorc and ~/.pangox_aliases to ~/.config/pango/pangorc and"
|
| 98 |
elog "~/.config/pango/pangox.aliases"
|
| 99 |
}
|