blob: 28c40e11ff309762e4d2a64302b8377112e6cd69 (
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-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit python-single-r1
DESCRIPTION="A small python based utility used to change configuration files"
HOMEPAGE="http://setconf.roboticoverlords.org/"
SRC_URI="http://${PN}.roboticoverlords.org/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND=${PYTHON_DEPS}
# "REQUIRED_USE is needed to have a (un-)nice error when someone disabled all of python3" -mgorny
REQUIRED_USE=${PYTHON_REQUIRED_USE}
pkg_setup() {
python-single-r1_pkg_setup
}
src_unpack() {
unpack ${A}
cd "${S}" || die
unpack "./${PN}.1.gz"
}
src_prepare() {
python_fix_shebang -f "${PN}.py"
}
src_install() {
python_doscript "${PN}.py"
dosym "${PN}.py" "/usr/bin/${PN}"
doman "${PN}.1"
}
|