blob: 0dd650a27b18df55e0c09d160738219ca82c0048 (
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
48
|
# Copyright 1999-2010 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-r1.ebuild,v 1.2 2010/05/28 22:06:07 arfrever Exp $
EAPI="2"
inherit gnome2-utils python
MINIMUM_COMPIZ_RELEASE=0.6.0
DESCRIPTION="Compiz Fusion Tray Icon and Manager"
HOMEPAGE="http://compiz-fusion.org"
SRC_URI="mirror://gentoo/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gtk qt4"
RDEPEND="
>=dev-python/compizconfig-python-${MINIMUM_COMPIZ_RELEASE}
virtual/python
>=x11-wm/compiz-${MINIMUM_COMPIZ_RELEASE}
gtk? ( >=dev-python/pygtk-2.10 )
qt4? ( dev-python/PyQt4[X] )"
DEPEND="${RDEPEND}
>=dev-util/pkgconfig-0.19
x11-apps/xvinfo"
S="${WORKDIR}/${PN}"
src_install() {
use gtk && interfaces="${interfaces} gtk"
use qt4 && interfaces="${interfaces} qt4"
emake "interfaces=${interfaces}" DESTDIR="${D}" install || die "emake install failed"
}
pkg_postinst() {
python_need_rebuild
python_mod_optimize $(python_get_sitedir)/FusionIcon
use gtk && gnome2_icon_cache_update
}
pkg_postrm() {
python_mod_cleanup $(python_get_sitedir)/FusionIcon
}
|