# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-apps/fusion-icon/fusion-icon-0.1-r4.ebuild,v 1.1 2013/11/30 17:44:23 floppym Exp $ EAPI="5" PYTHON_COMPAT=( python{2_6,2_7} ) inherit distutils-r1 eutils gnome2-utils MINIMUM_COMPIZ_RELEASE=0.6.0 DESCRIPTION="Compiz Fusion Tray Icon and Manager" HOMEPAGE="http://compiz.org" SRC_URI="mirror://gentoo/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="+gtk qt4" REQUIRED_USE="|| ( gtk qt4 )" RDEPEND=" >=dev-python/compizconfig-python-${MINIMUM_COMPIZ_RELEASE} >=x11-wm/compiz-${MINIMUM_COMPIZ_RELEASE} x11-apps/xvinfo gtk? ( >=dev-python/pygtk-2.10:2[${PYTHON_USEDEP}] ) qt4? ( dev-python/PyQt4[X,${PYTHON_USEDEP}] )" DEPEND="${RDEPEND}" S="${WORKDIR}/${PN}" PATCHES=( "${FILESDIR}"/${P}-qt4-interface-subprocess-call.patch ) python_install() { distutils-r1_python_install use gtk || rm -r "${D}$(python_get_sitedir)/FusionIcon/interface_gtk" || die use qt4 || rm -r "${D}$(python_get_sitedir)/FusionIcon/interface_qt4" || die } pkg_postinst() { use gtk && gnome2_icon_cache_update } pkg_postrm() { use gtk && gnome2_icon_cache_update }