/[gentoo-x86]/net-misc/nut-monitor/nut-monitor-1.3-r2.ebuild
Gentoo

Contents of /net-misc/nut-monitor/nut-monitor-1.3-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Apr 3 10:09:32 2012 UTC (7 years, 8 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Fix locales, thanks a lot to FSW in bug #408149 for his investigation.

(Portage version: 2.1.10.54/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/nut-monitor/nut-monitor-1.3.ebuild,v 1.2 2011/12/04 14:29:55 jlec Exp $
4
5 EAPI=4
6 PYTHON_DEPEND="2"
7
8 inherit eutils python
9
10 DESCRIPTION="A graphical application to monitor and manage UPSes connected to a NUT server"
11 HOMEPAGE="http://www.lestat.st/informatique/projets/nut-monitor-en/"
12 SRC_URI="http://www.lestat.st/_media/informatique/projets/${PN}/${P}.tar.gz"
13
14 LICENSE="GPL-3"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="linguas_fr"
18
19 RDEPEND="dev-python/pygtk
20 dev-python/pynut"
21 DEPEND=""
22
23 pkg_setup() {
24 python_set_active_version 2
25 python_pkg_setup
26 }
27
28 src_prepare() {
29 epatch "${FILESDIR}"/${P}-paths.patch
30 epatch "${FILESDIR}"/${P}-paths2.patch
31 python_convert_shebangs -r 2 .
32 }
33
34 src_install() {
35 dobin NUT-Monitor
36 dosym NUT-Monitor /usr/bin/${PN}
37
38 insinto /usr/share/nut-monitor
39 doins gui-${PV}.glade
40
41 dodir /usr/share/nut-monitor/pixmaps
42 insinto /usr/share/nut-monitor/pixmaps
43 doins pixmaps/*
44
45 doicon ${PN}.png
46 domenu ${PN}.desktop
47
48 dodoc README
49
50 if use linguas_fr; then
51 insinto /usr/share/locale/fr/LC_MESSAGES/
52 doins locale/fr/LC_MESSAGES/NUT-Monitor.mo
53 fi
54 }

  ViewVC Help
Powered by ViewVC 1.1.20