summaryrefslogtreecommitdiff
blob: b13e71f2b7b4a0bc71e8e47e0e53ee1c2bf5878e (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-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

inherit autotools gnome2 python

DESCRIPTION="A countdown timer applet for the GNOME Panel"
HOMEPAGE="http://timerapplet.sourceforge.net/"
SRC_URI="mirror://sourceforge/timerapplet/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="
	|| (
		( dev-lang/python:2.4 dev-python/elementtree )
		dev-lang/python:2.5
		dev-lang/python:2.6
	)
	dev-python/pygtk
	dev-python/gnome-python
	dev-python/gnome-python-desktop
	dev-python/notify-python
	dev-python/dbus-python"

DEPEND="${RDEPEND}
	dev-util/intltool
	gnome-base/gconf"

DOCS="AUTHORS ChangeLog NEWS README"

src_prepare() {
	eautoreconf
	ln -sf $(type -P true) "${S}/py-compile" || die
}

pkg_postinst() {
	python_mod_optimize "$(python_get_sitedir)"/timerapplet
}

pkg_postrm() {
	python_mod_cleanup "$(python_get_sitedir)"/timerapplet
}