blob: 895bc47de0c4210df87c283ee6264c081fce5bfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
inherit python
DESCRIPTION="An abstraction class written in Python to access NUT (Network UPS Tools) server"
HOMEPAGE="http://www.lestat.st/informatique/projets/pynut-en/"
SRC_URI="http://www.lestat.st/_media/informatique/projets/pynut/python-${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
S="${WORKDIR}/python-${P}"
src_install() {
installation() {
insinto $(python_get_sitedir)
doins PyNUT.py
}
python_execute_function -q installation
dodoc README
}
pkg_postinst() {
python_mod_optimize PyNUT.py
}
pkg_postrm() {
python_mod_cleanup PyNUT.py
}
|