# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-themes/gtk-engines-qt/gtk-engines-qt-0.7-r1.ebuild,v 1.2 2006/09/12 20:08:23 genstef Exp $ inherit kde eutils MY_PN="gtk-qt-engine" DESCRIPTION="GTK+2 Qt Theme Engine" HOMEPAGE="http://www.freedesktop.org/Software/gtk-qt" SRC_URI="http://www.freedesktop.org/~davidsansome/${MY_PN}-${PV}.tar.bz2" LICENSE="GPL-2" KEYWORDS="~x86 ~sparc ~ppc ~amd64" DEPEND="${DEPEND} >=x11-libs/gtk+-2.2" need-kde 3 # Set slot after the need-kde. Fixes bug #78455. SLOT="2" S=${WORKDIR}/${MY_PN} src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/gtk-engines-qt-0.7-implicit.patch epatch ${FILESDIR}/kcmgtk-write-good-bashrc.diff } src_install() { kde_src_install # remove duplicate .desktop rm ${D}/usr/share/applnk/Settings/LookNFeel/kcmgtk.desktop # Add environment variable dodir /etc/X11/xinit/xinitrc.d echo 'export GTK2_RC_FILES="$HOME/.gtkrc-2.0:$HOME/.kde/share/config/gtkrc-2.0:/etc/gtk-2.0/gtkrc"' \ >> ${D}/etc/X11/xinit/xinitrc.d/${PN} fperms a+x /etc/X11/xinit/xinitrc.d/${PN} } pkg_postinst() { ewarn "This crashes gnome, see http://bugs.gentoo.org/105092" }