| 1 |
jlec |
1.1 |
# Copyright 1999-2010 Gentoo Foundation |
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
|
|
# $Header: $ |
| 4 |
|
|
|
| 5 |
|
|
EAPI="2" |
| 6 |
|
|
|
| 7 |
|
|
PYTHON_DEPEND="2" |
| 8 |
|
|
|
| 9 |
|
|
inherit python |
| 10 |
|
|
|
| 11 |
|
|
DESCRIPTION="Statistics generator for git" |
| 12 |
|
|
HOMEPAGE="http://gitstats.sourceforge.net/" |
| 13 |
|
|
SRC_URI="mirror://gentoo/${P}.tar.bz2" |
| 14 |
|
|
|
| 15 |
|
|
LICENSE="GPL-3" |
| 16 |
|
|
SLOT="0" |
| 17 |
|
|
KEYWORDS="~amd64 ~x86" |
| 18 |
|
|
IUSE="" |
| 19 |
|
|
|
| 20 |
|
|
RDEPEND=" |
| 21 |
|
|
sci-visualization/gnuplot[gd] |
| 22 |
|
|
dev-vcs/git" |
| 23 |
|
|
DEPEND="" |
| 24 |
|
|
|
| 25 |
|
|
src_prepare() { |
| 26 |
|
|
sed "s:basedir = os.path.dirname(os.path.abspath(__file__)):basedir = '/usr/share/gitstats':g" \ |
| 27 |
|
|
-i gitstats || die "failed to fix static files path" |
| 28 |
|
|
} |
| 29 |
|
|
|
| 30 |
|
|
src_compile() { |
| 31 |
|
|
:; |
| 32 |
|
|
} |
| 33 |
|
|
|
| 34 |
|
|
src_install() { |
| 35 |
|
|
emake PREFIX="${D}"/usr VERSION="${PV}" install || die |
| 36 |
|
|
dodoc doc/{README,*.txt} || die "doc install failed" |
| 37 |
|
|
} |