blob: 6381875e5b93ba180b6211f3699fd5f2924a8f70 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
PYTHON_DEPEND="2"
inherit multilib python
MY_PN=${PN/deskbar-handlers-/}
DESCRIPTION="Unit conversion handler for the GNOME Deskbar"
HOMEPAGE="http://www.kryogenix.org/days/2006/09/06/converter-deskbar/"
SRC_URI="http://svn.kryogenix.org/svn/deskbar-plugins/tags/${PV}/${MY_PN}.py"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="
x11-libs/gtk+:2
>=dev-python/pygtk-2.6
>=gnome-extra/deskbar-applet-2.14.2"
RDEPEND="${DEPEND}
sci-calculators/units"
pkg_setup() {
python_set_active_version 2
}
src_unpack() { :; }
src_install() {
insinto /usr/$(get_libdir)/deskbar-applet/handlers
doins "${DISTDIR}/${MY_PN}.py"
}
pkg_postinst() {
python_mod_optimize /usr/$(get_libdir)/deskbar-applet/handlers/${MY_PN}.py
}
pkg_postrm() {
python_mod_cleanup /usr/$(get_libdir)/deskbar-applet/handlers
}
|