blob: c61d9f1e9c9e55f6b069c9fe550e4890050d393b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
PYTHON_COMPAT=( python2_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
}
|