/[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.1 - (hide annotations) (download)
Tue Sep 30 19:07:08 2014 UTC (5 years, 4 months ago) by idl0r
Branch: MAIN
Version bump

(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key B427ABC8)

1 idl0r 1.1 # Copyright 1999-2014 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/nagstamon-1.0.ebuild,v 1.2 2014/08/15 10:54:05 idl0r Exp $
4    
5     EAPI="5"
6    
7     PYTHON_COMPAT=( python2_6 python2_7 )
8    
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     KEYWORDS="~amd64 ~x86"
21     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