Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 210884 | Differences between
and this patch

Collapse All | Expand All

(-)pango-1.18.4.ebuild.old (-24 / +3 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/x11-libs/pango/pango-1.18.4.ebuild,v 1.7 2008/02/04 04:18:44 jer Exp $
3
# $Header: /var/cvsroot/gentoo-x86/x11-libs/pango/pango-1.18.4.ebuild,v 1.7 2008/02/04 04:18:44 jer Exp $
4
4
5
inherit eutils gnome2 multilib
5
inherit eutils gnome2 pango-module
6
6
7
DESCRIPTION="Text rendering and layout library"
7
DESCRIPTION="Text rendering and layout library"
8
HOMEPAGE="http://www.pango.org/"
8
HOMEPAGE="http://www.pango.org/"
Lines 29-45 Link Here
29
29
30
DOCS="AUTHORS ChangeLog* HACKING NEWS README"
30
DOCS="AUTHORS ChangeLog* HACKING NEWS README"
31
31
32
function multilib_enabled() {
33
	has_multilib_profile || ( use x86 && [ "$(get_libdir)" == "lib32" ] )
34
}
35
36
src_unpack() {
32
src_unpack() {
37
	gnome2_src_unpack
33
	gnome2_src_unpack
38
34
39
	# make config file location host specific so that a 32bit and 64bit pango
35
	# make config file location host specific so that a 32bit and 64bit pango
40
	# wont fight with each other on a multilib system.  Fix building for
36
	# wont fight with each other on a multilib system.  Fix building for
41
	# emul-linux-x86-gtklibs
37
	# emul-linux-x86-gtklibs
42
	if multilib_enabled ; then
38
	if pango-module_multilib_enabled ; then
43
		epatch "${FILESDIR}/${PN}-1.2.5-lib64.patch"
39
		epatch "${FILESDIR}/${PN}-1.2.5-lib64.patch"
44
	fi
40
	fi
45
41
Lines 49-70 Link Here
49
src_install() {
45
src_install() {
50
	gnome2_src_install
46
	gnome2_src_install
51
	rm "${D}/etc/pango/pango.modules"
47
	rm "${D}/etc/pango/pango.modules"
52
}
48
	pango-module_add_path 00pango $(pango-module_standard_path)
53
54
pkg_postinst() {
55
	if [[ "${ROOT}" == "/" ]] ; then
56
		einfo "Generating modules listing..."
57
58
		local PANGO_CONFDIR=
59
60
		if multilib_enabled ; then
61
			PANGO_CONFDIR="/etc/pango/${CHOST}"
62
		else
63
			PANGO_CONFDIR="/etc/pango"
64
		fi
65
66
		mkdir -p ${PANGO_CONFDIR}
67
68
		pango-querymodules > ${PANGO_CONFDIR}/pango.modules
69
	fi
70
}
49
}

Return to bug 210884