2017-05-05 15:42:22 +03:00
|
|
|
# Copyright 1999-2017 Gentoo Foundation
|
2014-11-02 16:29:37 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=5
|
2016-11-02 01:52:32 +03:00
|
|
|
PYTHON_COMPAT=( python{2_7,3_4} )
|
2014-11-02 16:29:37 +03:00
|
|
|
inherit python-single-r1
|
|
|
|
|
2015-07-11 12:28:10 +03:00
|
|
|
DESCRIPTION="A small python based utility used to change configuration files"
|
2014-11-02 16:29:37 +03:00
|
|
|
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}
|
2017-05-05 15:42:22 +03:00
|
|
|
cd "${S}" || die
|
|
|
|
unpack "./${PN}.1.gz"
|
2014-11-02 16:29:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
src_prepare() {
|
2017-05-05 15:42:22 +03:00
|
|
|
python_fix_shebang -f "${PN}.py"
|
2014-11-02 16:29:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2017-05-05 15:42:22 +03:00
|
|
|
python_doscript "${PN}.py"
|
|
|
|
dosym "${PN}.py" "/usr/bin/${PN}"
|
|
|
|
doman "${PN}.1"
|
2014-11-02 16:29:37 +03:00
|
|
|
}
|