From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-vcs/gitinspector/gitinspector-0.4.4.ebuild | 42 ++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 dev-vcs/gitinspector/gitinspector-0.4.4.ebuild (limited to 'dev-vcs/gitinspector/gitinspector-0.4.4.ebuild') diff --git a/dev-vcs/gitinspector/gitinspector-0.4.4.ebuild b/dev-vcs/gitinspector/gitinspector-0.4.4.ebuild new file mode 100644 index 000000000000..8a2f93873ec8 --- /dev/null +++ b/dev-vcs/gitinspector/gitinspector-0.4.4.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Statistical analysis tool for git repositories" +HOMEPAGE="https://github.com/ejwa/gitinspector" +SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-3+" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +RDEPEND="dev-vcs/git" +DEPEND="test? ( ${RDEPEND} )" + +python_prepare_all() { + [[ ${LC_ALL} == "C" ]] && export LC_ALL="en_US.utf8" + + # Otherwise this gets installed with the *.txt glob. + rm LICENSE.txt || die 'failed to remove LICENSE.txt' + + # Use /usr/share/doc/${PF} instead of /usr/share/doc/${PN}. + sed -i setup.py \ + -e "s:share/doc/gitinspector:share/doc/${PF}:" \ + || die 'failed to fix the documentation path in setup.py' + + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + + # The distutils install routine misses some important documentation. + doman docs/gitinspector.1 + dodoc docs/*.{pdf,css,html,txt} +} -- cgit v1.2.3