Документ взят из кэша поисковой машины. Адрес оригинального документа : http://mirror.msu.net/pub/gentoo-portage/dev-vcs/gitstats/gitstats-0_pre131024.ebuild
Дата изменения: Thu Mar 24 17:10:26 2016
Дата индексирования: Mon Apr 11 13:45:07 2016
Кодировка:
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

PYTHON_COMPAT=( python2_7 )

inherit python-r1

DESCRIPTION="Statistics generator for git"
HOMEPAGE="http://gitstats.sourceforge.net/"
SRC_URI="https://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="
sci-visualization/gnuplot[gd]
dev-vcs/git"
DEPEND=""

src_prepare() {
sed \
-e "s:basedir = os.path.dirname(os.path.abspath(__file__)):basedir = '${EPREFIX}/usr/share/gitstats':g" \
-i gitstats || die "failed to fix static files path"
epatch "${FILESDIR}"/${P}-filter-invalid-unicode.patch
}

src_compile() {
:;
}

src_install() {
emake PREFIX="${D}"/usr VERSION="${PV}" install
dodoc doc/{README,*.txt}
python_replicate_script "${ED}"/usr/bin/${PN}
}