summaryrefslogtreecommitdiff
blob: d1fa3e83c52d8fc6bb6ae19e9961951aa8dfbe44 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit git

DESCRIPTION="statistics generator for git"
HOMEPAGE="http://gitstats.sourceforge.net/"
SRC_URI=""
EGIT_REPO_URI="git://repo.or.cz/${PN}.git"

LICENSE="|| ( GPL-2 GPL-3 )"

SLOT="0"
KEYWORDS=""

IUSE=""
RDEPEND="sci-visualization/gnuplot[gd]
	 dev-util/git"

src_prepare() {
	sed "s:basedir = os.path.dirname(os.path.abspath(__file__)):basedir = '/usr/share/gitstats':g" \
	-i gitstats || die "failed to fix static files path"
}

src_install() {
	insinto /usr/share/${PN}
	doins gitstats.css sortable.js *gif || die "failed to install static files"
	dobin gitstats || die "failed to install ${PN}"
	dodoc doc/{README,{TODO,author}.txt} || die "doc install failed"
}