# $Id$ PNAME="pango" PVER="1.36.5" PBUILD="r1" PCAT="x11-libs" DESCRIPTION="Library for layout and rendering of internationalized text." HOMEPAGE="http://www.pango.org/" DEPEND_x86_64=">= sys-apps/multiarch-wrapper-1" SPECIAL_VARS="DEPEND_x86_64" DEPEND="$(marchdepend) >= x11-libs/libXrender-0.9 >= x11-libs/libX11-1.6 >= x11-libs/libXft-2 >= dev-libs/glib2-2.40 >= media-libs/fontconfig-2.11 >= media-libs/freetype-2.5 >= media-libs/harfbuzz-0.9 >= x11-libs/cairo-1.12 >= sys-libs/libstdc++-4.8" SDEPEND=">= dev-util/pkgconfig-0.25 >= dev-libs/gobject-introspection-1.40" # simul linux32 to get config things right EMUL_LINUX_32=true sminclude multilib mtools msetfeature "!check" SRCFILE="${PNAME}-${PVER}.tar.xz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" SRC_URI=( gnome://${PNAME}/${PVER%.*}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/pango-1.32.1-multilib.patch ) UP2DATE="updatecmd_gnome ${PNAME}" src_prepare() { munpack ${SRCFILE} || die # multilib fixes mpatch pango-1.32.1-multilib.patch || die } src_compile() { local myconf [[ ${ARCH} = x86_64 ]] && myconf+=" --program-suffix=-$(mabi)" # build basic-fc as included module myconf+=" --with-included-modules=basic-fc" mconfigure --disable-gtk-doc --enable-introspection ${myconf} || die mmake || die } src_install() { minstall_destdir || die # we regenerate this in the mage-file [ -e ${BINDIR}/etc/pango/pango.modules ] && rm ${BINDIR}/etc/pango/pango.modules if [[ ${ARCH} = x86_64 ]] then mlink multiarch-wrapper /usr/bin/pango-querymodules || die mlink multiarch-wrapper /usr/bin/pango-view || die fi } postinstall() { if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] then echo "Generating modules listing ..." local confdir if [[ ${ARCH} = x86_64 ]] then # generate pango-modules for i686 confdir=/etc/pango/i686-pc-linux-gnu install -d ${confdir} pango-querymodules-m32 > ${confdir}/pango.modules fi confdir=/etc/pango/${CHOST} install -d ${confdir} pango-querymodules > ${confdir}/pango.modules fi }