/[gentoo-x86]/net-analyzer/nagstamon/nagstamon-0.9.11_rc1.ebuild
Gentoo

Contents of /net-analyzer/nagstamon/nagstamon-0.9.11_rc1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Aug 28 10:27:38 2013 UTC (6 years, 4 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #476538

(Portage version: 2.1.13.7/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/nagstamon-0.9.11_rc1.ebuild,v 1.2 2013/08/28 10:24:51 ago Exp $
4
5 EAPI="5"
6
7 PYTHON_DEPEND="2"
8 SUPPORT_PYTHON_ABIS="1"
9 RESTRICT_PYTHON_ABIS="3.* *-jython"
10
11 inherit eutils python
12
13 MY_PN="Nagstamon"
14 MY_P="${MY_PN}-${PV/_/}-20130729"
15
16 DESCRIPTION="Nagstamon is a Nagios status monitor for a systray and displays a realtime status of a Nagios box"
17 HOMEPAGE="http://nagstamon.sourceforge.net"
18 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
19
20 LICENSE="GPL-2"
21 SLOT="0"
22 KEYWORDS="amd64 x86"
23 IUSE="gnome sound"
24
25 DEPEND=""
26 RDEPEND="dev-python/pygobject:2
27 dev-python/pygtk
28 dev-python/lxml
29 dev-python/beautifulsoup:python-2
30 gnome-base/librsvg
31 gnome? ( dev-python/egg-python )
32 sound? ( media-sound/sox )"
33
34 S="${WORKDIR}/${MY_PN}"
35
36 src_prepare() {
37 epatch "${FILESDIR}/nagstamon-0.9.11_rc1-resources.patch"
38
39 python_convert_shebangs 2 nagstamon.py
40
41 rm Nagstamon/resources/LICENSE
42 rm Nagstamon/BeautifulSoup.py
43 }
44
45 src_install() {
46 # setup.py is broken
47 cd Nagstamon/
48
49 doman resources/nagstamon.1 || die
50 rm resources/nagstamon.1
51
52 nagstamon_install() {
53 exeinto $(python_get_sitedir)/${MY_PN}
54 doexe ../nagstamon.py || die
55 dosym $(python_get_sitedir)/${MY_PN}/${PN}.py /usr/bin/${PN} || die
56
57 insinto $(python_get_sitedir)/${MY_PN}
58 doins {GUI,Config,Objects,Custom,Actions}.py || die
59 touch "${D}/$(python_get_sitedir)/${MY_PN}/__init__.py" || die
60 doins -r Server/ || die
61
62 insinto /usr/share/${PN}/resources
63 doins resources/* || die
64
65 domenu "${FILESDIR}"/${PN}.desktop || die
66 }
67
68 python_execute_function nagstamon_install
69 }
70
71 pkg_postinst() {
72 python_mod_optimize ${MY_PN}
73 }
74
75 pkg_postrm() {
76 python_mod_cleanup ${MY_PN}
77 }

  ViewVC Help
Powered by ViewVC 1.1.20