# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit gnome2-utils #snapshot 2007-09-17 GIT_SNAPSHOT="82ce586187ded167c6e56ecde6dcb3f354909faf" COMPIZ_RELEASE=0.6.0 COMPIZCONFIG_PYTHON_RELEASE=0.6.0.1 DESCRIPTION="Compiz Fusion Tray Icon and Manager" HOMEPAGE="http://compiz-fusion.org" SRC_URI="http://gitweb.opencompositing.org/?p=users/crdlb/fusion-icon;a=snapshot;h=${GIT_SNAPSHOT};sf=tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="gtk qt4" RDEPEND="|| ( >=x11-wm/compiz-${PV} ~x11-wm/compiz-${COMPIZ_RELEASE} ) || ( ~dev-python/compizconfig-python-${PV} =dev-python/compizconfig-python-${COMPIZCONFIG_PYTHON_RELEASE} ) gtk? ( >=dev-python/pygtk-2.10 ) qt4? ( dev-python/PyQt4 )" DEPEND="${RDEPEND} >=dev-util/pkgconfig-0.19 x11-apps/xvinfo" S="${WORKDIR}/${PN}" src_unpack() { #the downloaded file has no extension, we need to unpack by hand tar zxf ${DISTDIR}/${A} } src_install() { if use gtk ; then interfaces="${interfaces} gtk" ; fi if use qt4 ; then interfaces="${interfaces} qt4" ; fi make "interfaces=${interfaces}" DESTDIR="${D}" install || die "make install failed" } pkg_postinst() { if use gtk ; then gnome2_icon_cache_update ; fi }