blob: 9a51798a0e5e05a966259d739dec33ea10f5930d (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
PYTHON_COMPAT=( python2_7 )
inherit eutils python-r1
MY_PN="Nagstamon"
MY_P="${MY_PN}-${PV/_}"
MY_SHA="b7a91e68ca93ead4e5cfef22e2226c1ff9c7b52c"
DESCRIPTION="Nagstamon is a systray monitor for displaying realtime status of a Nagios box"
HOMEPAGE="http://nagstamon.sourceforge.net"
SRC_URI="https://github.com/HenriWahl/${PN}/archive/${MY_SHA}.tar.gz -> ${MY_PN}-${MY_SHA}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gnome sound"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
dev-python/pygobject:2[${PYTHON_USEDEP}]
dev-python/pygtk[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]
dev-python/keyring[${PYTHON_USEDEP}]
gnome-base/librsvg
gnome? ( dev-python/egg-python[${PYTHON_USEDEP}] )
sound? ( media-sound/sox )"
S="${WORKDIR}/${MY_PN}-${MY_SHA}/Nagstamon"
src_prepare() {
epatch "${FILESDIR}/nagstamon-0.9.11_rc1-resources.patch"
rm Nagstamon/resources/LICENSE
}
src_install() {
# setup.py is broken
cd Nagstamon/
doman resources/nagstamon.1
rm resources/nagstamon.1
newbin ../nagstamon.py nagstamon
insinto /usr/share/${PN}/resources
doins resources/*
domenu "${FILESDIR}"/${PN}.desktop
nagstamon_install() {
insinto $(python_get_sitedir)/${MY_PN}
doins {GUI,Config,Objects,Custom,Actions}.py
touch "${D}/$(python_get_sitedir)/${MY_PN}/__init__.py" || die
doins -r Server/ thirdparty/
}
python_foreach_impl nagstamon_install
python_replicate_script "${D}/usr/bin/nagstamon"
}
|