diff options
author | Michał Górny <mgorny@gentoo.org> | 2014-03-01 13:34:05 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2014-03-01 13:34:05 +0000 |
commit | 95320cc6e472b97274ba49434837cd4f8d1ab688 (patch) | |
tree | 86c998e39659b9d1fa57d4a7be54bf8e61874e06 /app-emulation | |
parent | Introduce multilib support, bug #488868. (diff) | |
download | gentoo-2-95320cc6e472b97274ba49434837cd4f8d1ab688.tar.gz gentoo-2-95320cc6e472b97274ba49434837cd4f8d1ab688.tar.bz2 gentoo-2-95320cc6e472b97274ba49434837cd4f8d1ab688.zip |
Add pango.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
Diffstat (limited to 'app-emulation')
3 files changed, 219 insertions, 1 deletions
diff --git a/app-emulation/emul-linux-x86-gtklibs/ChangeLog b/app-emulation/emul-linux-x86-gtklibs/ChangeLog index 5f7d9a02b75d..d103cc7a4c00 100644 --- a/app-emulation/emul-linux-x86-gtklibs/ChangeLog +++ b/app-emulation/emul-linux-x86-gtklibs/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-emulation/emul-linux-x86-gtklibs # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/ChangeLog,v 1.116 2014/03/01 10:20:27 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/ChangeLog,v 1.117 2014/03/01 13:34:05 mgorny Exp $ + +*emul-linux-x86-gtklibs-20131008-r4 (01 Mar 2014) + + 01 Mar 2014; Michał Górny <mgorny@gentoo.org> + +emul-linux-x86-gtklibs-20131008-r4.ebuild, +files/remove-native-20131008-r4: + Add pango. *emul-linux-x86-gtklibs-20131008-r3 (01 Mar 2014) diff --git a/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20131008-r4.ebuild b/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20131008-r4.ebuild new file mode 100644 index 000000000000..f433f27e3480 --- /dev/null +++ b/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20131008-r4.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2014 Gentoo Foundation +# 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-20131008-r4.ebuild,v 1.1 2014/03/01 13:34:05 mgorny Exp $ + +EAPI=5 +inherit emul-linux-x86 + +LICENSE="GPL-2 LGPL-2 FTL LGPL-2.1 LGPL-3 MPL-1.1 MIT" +KEYWORDS="-* ~amd64" +IUSE="abi_x86_32" + +DEPEND="" +RDEPEND="~app-emulation/emul-linux-x86-baselibs-${PV} + ~app-emulation/emul-linux-x86-xlibs-${PV} + ~app-emulation/emul-linux-x86-opengl-${PV} + abi_x86_32? ( + >=x11-libs/pixman-0.30.2-r1[abi_x86_32(-)] + >=x11-libs/cairo-1.12.16-r1[abi_x86_32(-)] + >=x11-libs/gdk-pixbuf-2.30.5-r1[abi_x86_32(-)] + >=x11-libs/pango-1.36.2-r1[abi_x86_32(-)] + )" +# RDEPEND on opengl stuff needed due cairo, bug #410213 + +my_gdk_pixbuf_query_loaders() { + # causes segfault if set + unset __GL_NO_DSO_FINALIZER + + local tmp_file=$(mktemp --suffix=tmp.XXXXXXXXXXgdk_pixbuf_queryloaders) + if [ -z "${tmp_file}" ]; then + ewarn "Cannot create temporary file" + return 1 + fi + + if gdk-pixbuf-query-loaders32 > "${tmp_file}"; then + cat "${tmp_file}" > "${ROOT}usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders.cache" + else + ewarn "Warning, gdk-pixbuf-query-loaders32 failed." + fi + rm "${tmp_file}" +} + +my_pango_querymodules() { + PANGO_CONFDIR="/etc/pango/i686-pc-linux-gnu" + einfo "Generating pango modules listing..." + + mkdir -p "${PANGO_CONFDIR}" + local pango_conf="${PANGO_CONFDIR}/pango.modules" + local tmp_file=$(mktemp -t tmp.XXXXXXXXXXpango_querymodules) + if [ -z "${tmp_file}" ]; then + ewarn "Cannot create temporary file" + return 1 + fi + + if pango-querymodules32 > "${tmp_file}"; then + cat "${tmp_file}" > "${pango_conf}" + else + ewarn "Cannot update pango.modules, file generation failed" + fi + rm "${tmp_file}" +} + +my_gtk_query_immodules() { + GTK2_CONFDIR="/etc/gtk-2.0/i686-pc-linux-gnu" + einfo "Generating gtk+ immodules/gdk-pixbuf loaders listing..." + + mkdir -p "${GTK2_CONFDIR}" + local gtk_conf="${ROOT}${GTK2_CONFDIR}/gtk.immodules" + local tmp_file=$(mktemp -t tmp.XXXXXXXXXXgtk_query_immodules) + if [ -z "${tmp_file}" ]; then + ewarn "Cannot create temporary file" + return 1 + fi + + if gtk-query-immodules-2.0-32 > "${tmp_file}"; then + cat "${tmp_file}" > "${gtk_conf}" + else + ewarn "Cannot update gtk.immodules, file generation failed" + fi + rm "${tmp_file}" +} + +src_prepare() { + query_tools="${S}/usr/bin/gtk-query-immodules-2.0|${S}/usr/bin/gdk-pixbuf-query-loaders|${S}/usr/bin/pango-querymodules" + ALLOWED="(${S}/etc/env.d|${S}/etc/gtk-2.0|${S}/etc/pango/i686-pc-linux-gnu|${query_tools})" + emul-linux-x86_src_prepare + + # these tools generate an index in /etc/{pango,gtk-2.0}/${CHOST} + mv -f "${S}/usr/bin/pango-querymodules"{,32} || die + mv -f "${S}/usr/bin/gtk-query-immodules-2.0"{,-32} || die + mv -f "${S}/usr/bin/gdk-pixbuf-query-loaders"{,32} || die + + # Remove migrated stuff. + use abi_x86_32 && rm -f $(cat "${FILESDIR}/remove-native-${PVR}") +} + +pkg_preinst() { + #bug 169058 + for l in "${ROOT}/usr/lib32/{pango,gtk-2.0}" ; do + [[ -L ${l} ]] && rm -f ${l} + done +} + +pkg_postinst() { + my_gtk_query_immodules + if ! use abi_x86_32; then + my_pango_querymodules + my_gdk_pixbuf_query_loaders + fi + + # gdk-pixbuf.loaders should be in their CHOST directories respectively. + if [[ -e "${ROOT}/etc/gtk-2.0/gdk-pixbuf.loaders" ]] ; then + ewarn + ewarn "File /etc/gtk-2.0/gdk-pixbuf.loaders shouldn't be present on" + ewarn "multilib systems, please remove it by hand." + ewarn + fi +} diff --git a/app-emulation/emul-linux-x86-gtklibs/files/remove-native-20131008-r4 b/app-emulation/emul-linux-x86-gtklibs/files/remove-native-20131008-r4 new file mode 100644 index 000000000000..1198cda8862d --- /dev/null +++ b/app-emulation/emul-linux-x86-gtklibs/files/remove-native-20131008-r4 @@ -0,0 +1,95 @@ +usr/lib32/libpixman-1.so +usr/lib32/libpixman-1.so.0 +usr/lib32/libpixman-1.so.0.30.2 +usr/lib32/pkgconfig/pixman-1.pc +usr/lib32/cairo/cairo-fdr.so +usr/lib32/cairo/cairo-fdr.so.0 +usr/lib32/cairo/cairo-fdr.so.0.0.0 +usr/lib32/cairo/cairo-sphinx.so +usr/lib32/cairo/cairo-sphinx.so.0 +usr/lib32/cairo/cairo-sphinx.so.0.0.0 +usr/lib32/cairo/libcairo-trace.so +usr/lib32/cairo/libcairo-trace.so.0 +usr/lib32/cairo/libcairo-trace.so.0.0.0 +usr/lib32/libcairo-gobject.so +usr/lib32/libcairo-gobject.so.2 +usr/lib32/libcairo-gobject.so.2.11200.14 +usr/lib32/libcairo-script-interpreter.so +usr/lib32/libcairo-script-interpreter.so.2 +usr/lib32/libcairo-script-interpreter.so.2.11200.14 +usr/lib32/libcairo.so +usr/lib32/libcairo.so.2 +usr/lib32/libcairo.so.2.11200.14 +usr/lib32/pkgconfig/cairo-egl.pc +usr/lib32/pkgconfig/cairo-fc.pc +usr/lib32/pkgconfig/cairo-ft.pc +usr/lib32/pkgconfig/cairo-gl.pc +usr/lib32/pkgconfig/cairo-glx.pc +usr/lib32/pkgconfig/cairo-gobject.pc +usr/lib32/pkgconfig/cairo-pdf.pc +usr/lib32/pkgconfig/cairo-png.pc +usr/lib32/pkgconfig/cairo-ps.pc +usr/lib32/pkgconfig/cairo-script.pc +usr/lib32/pkgconfig/cairo-svg.pc +usr/lib32/pkgconfig/cairo-tee.pc +usr/lib32/pkgconfig/cairo-xlib-xrender.pc +usr/lib32/pkgconfig/cairo-xlib.pc +usr/lib32/pkgconfig/cairo.pc +usr/bin/gdk-pixbuf-query-loaders32 +usr/lib32/libgdk_pixbuf_xlib-2.0.so.0.2600.4 +usr/lib32/libgdk_pixbuf-2.0.so +usr/lib32/libgdk_pixbuf_xlib-2.0.so +usr/lib32/pkgconfig/gdk-pixbuf-2.0.pc +usr/lib32/pkgconfig/gdk-pixbuf-xlib-2.0.pc +usr/lib32/libgdk_pixbuf-2.0.so.0.2600.4 +usr/lib32/libgdk_pixbuf_xlib-2.0.so.0 +usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ras.so +usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ani.so +usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-icns.so +usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xbm.so +usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pcx.so +usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pnm.so +usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gif.so +usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jpeg.so +usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-wbmp.so +usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tga.so +usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-bmp.so +usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ico.so +usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so +usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tiff.so +usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-qtif.so +usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so +usr/lib32/libgdk_pixbuf-2.0.so.0 +usr/bin/pango-querymodules32 +usr/lib32/libpango-1.0.so +usr/lib32/libpango-1.0.so.0 +usr/lib32/libpango-1.0.so.0.3000.1 +usr/lib32/libpangocairo-1.0.so +usr/lib32/libpangocairo-1.0.so.0 +usr/lib32/libpangocairo-1.0.so.0.3000.1 +usr/lib32/libpangoft2-1.0.so +usr/lib32/libpangoft2-1.0.so.0 +usr/lib32/libpangoft2-1.0.so.0.3000.1 +usr/lib32/libpangox-1.0.so +usr/lib32/libpangox-1.0.so.0 +usr/lib32/libpangox-1.0.so.0.3000.1 +usr/lib32/libpangoxft-1.0.so +usr/lib32/libpangoxft-1.0.so.0 +usr/lib32/libpangoxft-1.0.so.0.3000.1 +usr/lib32/pango/1.6.0/modules/pango-arabic-fc.so +usr/lib32/pango/1.6.0/modules/pango-arabic-lang.so +usr/lib32/pango/1.6.0/modules/pango-basic-fc.so +usr/lib32/pango/1.6.0/modules/pango-basic-x.so +usr/lib32/pango/1.6.0/modules/pango-hangul-fc.so +usr/lib32/pango/1.6.0/modules/pango-hebrew-fc.so +usr/lib32/pango/1.6.0/modules/pango-indic-fc.so +usr/lib32/pango/1.6.0/modules/pango-indic-lang.so +usr/lib32/pango/1.6.0/modules/pango-khmer-fc.so +usr/lib32/pango/1.6.0/modules/pango-syriac-fc.so +usr/lib32/pango/1.6.0/modules/pango-thai-fc.so +usr/lib32/pango/1.6.0/modules/pango-tibetan-fc.so +usr/lib32/pkgconfig/pango.pc +usr/lib32/pkgconfig/pangocairo.pc +usr/lib32/pkgconfig/pangoft2.pc +usr/lib32/pkgconfig/pangox.pc +usr/lib32/pkgconfig/pangoxft.pc |