diff options
author | Alexis Ballier <aballier@gentoo.org> | 2013-10-26 08:58:24 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2013-10-26 08:58:24 +0000 |
commit | 6a4ae1d66bb5216265aa688c8c157bb488add6ef (patch) | |
tree | d88c07d1393e3820d9b4c438cbde1ec35a034328 /app-emulation | |
parent | Version bumps 2.0.8, 2.0.8a and 2.0.9. (diff) | |
download | gentoo-2-6a4ae1d66bb5216265aa688c8c157bb488add6ef.tar.gz gentoo-2-6a4ae1d66bb5216265aa688c8c157bb488add6ef.tar.bz2 gentoo-2-6a4ae1d66bb5216265aa688c8c157bb488add6ef.zip |
Revision bump featuring pixman multilib conversion.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
Diffstat (limited to 'app-emulation')
3 files changed, 123 insertions, 1 deletions
diff --git a/app-emulation/emul-linux-x86-gtklibs/ChangeLog b/app-emulation/emul-linux-x86-gtklibs/ChangeLog index 8c9dae32cce8..b6135ba55bfa 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-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/ChangeLog,v 1.112 2013/10/08 20:59:42 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/ChangeLog,v 1.113 2013/10/26 08:58:24 aballier Exp $ + +*emul-linux-x86-gtklibs-20131008-r1 (26 Oct 2013) + + 26 Oct 2013; Alexis Ballier <aballier@gentoo.org> + +emul-linux-x86-gtklibs-20131008-r1.ebuild, +files/remove-native: + Revision bump featuring pixman multilib conversion. *emul-linux-x86-gtklibs-20131008 (08 Oct 2013) diff --git a/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20131008-r1.ebuild b/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20131008-r1.ebuild new file mode 100644 index 000000000000..c5bd60332a14 --- /dev/null +++ b/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20131008-r1.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2013 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-r1.ebuild,v 1.1 2013/10/26 08:58:24 aballier 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(-)] + )" +# 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") +} + +pkg_preinst() { + #bug 169058 + for l in "${ROOT}/usr/lib32/{pango,gtk-2.0}" ; do + [[ -L ${l} ]] && rm -f ${l} + done +} + +pkg_postinst() { + my_pango_querymodules + my_gtk_query_immodules + my_gdk_pixbuf_query_loaders + + # 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 b/app-emulation/emul-linux-x86-gtklibs/files/remove-native new file mode 100644 index 000000000000..e99efe8bcbd1 --- /dev/null +++ b/app-emulation/emul-linux-x86-gtklibs/files/remove-native @@ -0,0 +1,4 @@ +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 |