--- emul-linux-x86-gtklibs-20071214.ebuild.old 2008-02-20 00:07:29.000000000 +0000 +++ emul-linux-x86-gtklibs-20071214.ebuild 2008-02-24 19:10:08.000000000 +0000 @@ -2,7 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20071214.ebuild,v 1.2 2007/12/15 14:39:07 welp Exp $ -inherit emul-linux-x86 +PANGO_MODULE_PHASES_ONLY=1 + +inherit emul-linux-x86 pango-module LICENSE="GPL-2 LGPL-2 LGPL-2.1 FTL || ( LGPL-2.1 MPL-1.1 )" KEYWORDS="-* amd64" @@ -24,6 +26,15 @@ mv -f "${S}/usr/bin/gdk-pixbuf-query-loaders"{,32} } +# temporary hack +pango-module_version() { + echo 1.6.0 +} +src_install() { + emul-linux-x86_src_install + CHOST=${CHOST_x86} CATEGORY=x11-libs PN=pango pango-module_add_path 00pango $(ABI=x86 pango-module_standard_path) +} + pkg_preinst() { #bug 169058 for l in "${ROOT}/usr/lib32/{pango,gtk-2.0}" ; do @@ -32,12 +43,7 @@ } pkg_postinst() { - PANGO_CONFDIR="/etc/pango/i686-pc-linux-gnu" - if [[ ${ROOT} == "/" ]] ; then - einfo "Generating pango modules listing..." - mkdir -p ${PANGO_CONFDIR} - pango-querymodules32 > ${PANGO_CONFDIR}/pango.modules - fi + pango-module_pkg_postinst GTK2_CONFDIR="/etc/gtk-2.0/i686-pc-linux-gnu" einfo "Generating gtk+ immodules/gdk-pixbuf loaders listing..."