diff options
Diffstat (limited to 'dev-util/setconf/setconf-0.6.6.ebuild')
-rw-r--r-- | dev-util/setconf/setconf-0.6.6.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-util/setconf/setconf-0.6.6.ebuild b/dev-util/setconf/setconf-0.6.6.ebuild new file mode 100644 index 000000000000..878b1af8cdd5 --- /dev/null +++ b/dev-util/setconf/setconf-0.6.6.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_{3,4}} ) +inherit python-single-r1 + +DESCRIPTION="A small python based utility that can be 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" +IUSE="" + +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}" + unpack ./${PN}.1.gz +} + +src_prepare() { + python_fix_shebang ${PN}.py #462326 +} + +src_install() { + dobin ${PN}.py + ln -s ${PN}.py "${ED}"/usr/bin/${PN} + doman ${PN}.1 +} |