blob: 7b92c46527ec33f64b492d47f4ad169b351c5e95 (
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
34
35
36
37
38
39
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/diffstat/diffstat-1.29.ebuild,v 1.13 2004/06/25 02:29:02 agriffis Exp $
inherit eutils
S=${WORKDIR}/${P}
DESCRIPTION="diffstat reads the output of diff and displays a histogram of the insertions, deletions, and modifications per-file"
SRC_URI="ftp://invisible-island.net/${PN}/${PN}.tar.gz"
HOMEPAGE="http://dickey.his.com/diffstat/diffstat.html"
SLOT="0"
LICENSE="as-is"
KEYWORDS="x86 sparc ~ppc"
DEPEND="sys-apps/diffutils"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-hard-locale.patch
}
src_compile() {
econf || die
# Fix CFLAGS
local oldcflags="-O -Wall -Wshadow -Wconversion -Wstrict-prototypes -Wmissing-prototypes"
mv ${S}/makefile ${S}/makefile.orig
sed -e "s:CFLAGS\t\t= ${oldcflags}:CFLAGS\t\t= ${oldcflags} ${CFLAGS}:g" ${S}/makefile.orig > ${S}/makefile
emake || die
}
src_install() {
dobin diffstat
doman diffstat.1
dodoc README CHANGES
}
|