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

Contents of /net-analyzer/nagstamon/nagstamon-1.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sun Apr 19 07:05:32 2015 UTC (4 years, 10 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
x86 stable wrt bug #529470

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

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

  ViewVC Help
Powered by ViewVC 1.1.20