You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.2 KiB
55 lines
1.2 KiB
12 years ago
|
# Copyright 1999-2012 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
12 years ago
|
# $Header: /var/cvsroot/gentoo-x86/net-misc/nut-monitor/nut-monitor-1.3-r2.ebuild,v 1.1 2012/04/03 10:09:32 pacho Exp $
|
||
13 years ago
|
|
||
|
EAPI=4
|
||
12 years ago
|
PYTHON_DEPEND="2"
|
||
13 years ago
|
|
||
12 years ago
|
inherit eutils python
|
||
13 years ago
|
|
||
|
DESCRIPTION="A graphical application to monitor and manage UPSes connected to a NUT server"
|
||
|
HOMEPAGE="http://www.lestat.st/informatique/projets/nut-monitor-en/"
|
||
|
SRC_URI="http://www.lestat.st/_media/informatique/projets/${PN}/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
12 years ago
|
IUSE="linguas_fr"
|
||
13 years ago
|
|
||
12 years ago
|
RDEPEND="dev-python/pygtk
|
||
13 years ago
|
dev-python/pynut"
|
||
|
DEPEND=""
|
||
|
|
||
12 years ago
|
pkg_setup() {
|
||
|
python_set_active_version 2
|
||
|
python_pkg_setup
|
||
|
}
|
||
|
|
||
13 years ago
|
src_prepare() {
|
||
12 years ago
|
epatch "${FILESDIR}"/${P}-paths.patch
|
||
12 years ago
|
epatch "${FILESDIR}"/${P}-paths2.patch
|
||
12 years ago
|
python_convert_shebangs -r 2 .
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin NUT-Monitor
|
||
12 years ago
|
dosym NUT-Monitor /usr/bin/${PN}
|
||
|
|
||
13 years ago
|
insinto /usr/share/nut-monitor
|
||
|
doins gui-${PV}.glade
|
||
12 years ago
|
|
||
|
dodir /usr/share/nut-monitor/pixmaps
|
||
|
insinto /usr/share/nut-monitor/pixmaps
|
||
|
doins pixmaps/*
|
||
|
|
||
13 years ago
|
doicon ${PN}.png
|
||
|
domenu ${PN}.desktop
|
||
12 years ago
|
|
||
13 years ago
|
dodoc README
|
||
12 years ago
|
|
||
|
if use linguas_fr; then
|
||
|
insinto /usr/share/locale/fr/LC_MESSAGES/
|
||
|
doins locale/fr/LC_MESSAGES/NUT-Monitor.mo
|
||
|
fi
|
||
13 years ago
|
}
|