diff options
Diffstat (limited to 'x11-apps/fusion-icon/fusion-icon-0.1-r3.ebuild')
-rw-r--r-- | x11-apps/fusion-icon/fusion-icon-0.1-r3.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/x11-apps/fusion-icon/fusion-icon-0.1-r3.ebuild b/x11-apps/fusion-icon/fusion-icon-0.1-r3.ebuild new file mode 100644 index 000000000000..2c1bf38c3768 --- /dev/null +++ b/x11-apps/fusion-icon/fusion-icon-0.1-r3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +PYTHON_DEPEND="2" + +inherit distutils 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 ) + qt4? ( dev-python/PyQt4[X] )" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}" + +PYTHON_MODNAME="FusionIcon" + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-qt4-interface-subprocess-call.patch + distutils_src_prepare +} + +src_install() { + distutils_src_install + + use gtk || rm -fr "${ED}$(python_get_sitedir)/FusionIcon/interface_gtk" + use qt4 || rm -fr "${ED}$(python_get_sitedir)/FusionIcon/interface_qt4" +} + +pkg_postinst() { + distutils_pkg_postinst + + use gtk && gnome2_icon_cache_update +} + +pkg_postrm() { + distutils_pkg_postrm + + use gtk && gnome2_icon_cache_update +} |