blob: 8c699ea50f4f2edbad019dd6fda0904841c3067a (
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
40
41
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/sloccount/sloccount-2.22.ebuild,v 1.2 2003/06/27 07:18:45 msterret Exp $
DESCRIPTION="A set of tools for counting physical Source Lines of Code (SLOC) in a large number of languages of a potentially large set of programs."
HOMEPAGE="http://www.dwheeler.com/sloccount/"
SRC_URI="http://www.dwheeler.com/sloccount/${P}.tar.gz"
LICENSE="GPL-1"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="dev-lang/perl
>=sys-apps/sed-4
app-shells/bash"
src_unpack() {
unpack ${A}
cd ${S}
# Patch to move most of the executables out of /usr/bin
# and into /usr/libexec/sloccount to avoid conflicts.
epatch ${FILESDIR}/${P}-libexec.patch
sed -i \
-e "/^CC/ { s/$/ ${CFLAGS}/g }" \
-e "/^DOC_DIR/ { s/-\$(RPM_VERSION)//g }" \
-e "/^MYDOCS/ { s/[^ =]\+\.html//g }" makefile ||
die "sed makefile failed"
}
src_compile() {
emake || die "make failed"
}
src_install() {
einstall PREFIX=${D}/usr || die
prepalldocs
dohtml *html
}
|