diff options
author | Pacho Ramos <pacho@gentoo.org> | 2010-04-09 17:33:07 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2010-04-09 17:33:07 +0000 |
commit | c3fa487845c714907af73472ad2d44d2a1fb0c3f (patch) | |
tree | cddfdccb7d4bc9d6c2afdece3b8e303f0c942175 /app-emulation/emul-linux-x86-gtklibs | |
parent | New emul package with opengl stuff from xlibs one. (diff) | |
download | gentoo-2-c3fa487845c714907af73472ad2d44d2a1fb0c3f.tar.gz gentoo-2-c3fa487845c714907af73472ad2d44d2a1fb0c3f.tar.bz2 gentoo-2-c3fa487845c714907af73472ad2d44d2a1fb0c3f.zip |
Version bump.
(Portage version: 2.1.7.17/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/emul-linux-x86-gtklibs')
-rw-r--r-- | app-emulation/emul-linux-x86-gtklibs/ChangeLog | 8 | ||||
-rw-r--r-- | app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20100409.ebuild | 57 |
2 files changed, 64 insertions, 1 deletions
diff --git a/app-emulation/emul-linux-x86-gtklibs/ChangeLog b/app-emulation/emul-linux-x86-gtklibs/ChangeLog index 063d0ef4a5fb..0c48b4b784b7 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-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/ChangeLog,v 1.75 2010/03/22 13:58:58 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-gtklibs/ChangeLog,v 1.76 2010/04/09 17:33:07 pacho Exp $ + +*emul-linux-x86-gtklibs-20100409 (09 Apr 2010) + + 09 Apr 2010; Pacho Ramos <pacho@gentoo.org> + +emul-linux-x86-gtklibs-20100409.ebuild: + Version bump. 22 Mar 2010; Pacho Ramos <pacho@gentoo.org> emul-linux-x86-gtklibs-20100220-r2.ebuild: diff --git a/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20100409.ebuild b/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20100409.ebuild new file mode 100644 index 000000000000..a7fbffa723b5 --- /dev/null +++ b/app-emulation/emul-linux-x86-gtklibs/emul-linux-x86-gtklibs-20100409.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2010 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-20100409.ebuild,v 1.1 2010/04/09 17:33:07 pacho Exp $ + +inherit emul-linux-x86 + +SRC_URI="mirror://gentoo/${PN}-${PV}.tar.bz2" + +LICENSE="GPL-3 GPL-2 LGPL-2 LGPL-2.1 FTL MIT || ( LGPL-2.1 MPL-1.1 )" +KEYWORDS="-* ~amd64" + +IUSE="" + +DEPEND="" +RDEPEND="~app-emulation/emul-linux-x86-baselibs-${PV} + ~app-emulation/emul-linux-x86-xlibs-${PV}" + +src_unpack() { + 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_unpack + + # 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 +} + +pkg_preinst() { + #bug 169058 + for l in "${ROOT}/usr/lib32/{pango,gtk-2.0}" ; do + [[ -L ${l} ]] && rm -f ${l} + done +} + +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 + + GTK2_CONFDIR="/etc/gtk-2.0/i686-pc-linux-gnu" + einfo "Generating gtk+ immodules/gdk-pixbuf loaders listing..." + mkdir -p ${GTK2_CONFDIR} + gtk-query-immodules-2.0-32 > "${ROOT}${GTK2_CONFDIR}/gtk.immodules" + gdk-pixbuf-query-loaders32 > "${ROOT}${GTK2_CONFDIR}/gdk-pixbuf.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 +} |