Lines 2-8
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-text/sloccount/sloccount-2.26-r1.ebuild,v 1.12 2008/12/09 21:33:31 armin76 Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-text/sloccount/sloccount-2.26-r1.ebuild,v 1.12 2008/12/09 21:33:31 armin76 Exp $ |
4 |
|
4 |
|
5 |
inherit eutils |
5 |
inherit eutils toolchain-funcs |
6 |
|
6 |
|
7 |
DESCRIPTION="Tools for counting Source Lines of Code (SLOC) for a large number of languages" |
7 |
DESCRIPTION="Tools for counting Source Lines of Code (SLOC) for a large number of languages" |
8 |
HOMEPAGE="http://www.dwheeler.com/sloccount/" |
8 |
HOMEPAGE="http://www.dwheeler.com/sloccount/" |
Lines 25-31
Link Here
|
25 |
epatch "${FILESDIR}"/${P}-coreutils-tail-n-fix.patch |
25 |
epatch "${FILESDIR}"/${P}-coreutils-tail-n-fix.patch |
26 |
|
26 |
|
27 |
sed -i \ |
27 |
sed -i \ |
28 |
-e "/^CC/ { s/$/ ${CFLAGS}/g }" \ |
28 |
-e "s/^CC=.*$/CC=$(tc-getCC) ${CFLAGS}/" \ |
29 |
-e "/^DOC_DIR/ { s/-\$(RPM_VERSION)//g }" \ |
29 |
-e "/^DOC_DIR/ { s/-\$(RPM_VERSION)//g }" \ |
30 |
-e "/^MYDOCS/ { s/[^ =]\+\.html//g }" \ |
30 |
-e "/^MYDOCS/ { s/[^ =]\+\.html//g }" \ |
31 |
makefile || die "sed makefile failed" |
31 |
makefile || die "sed makefile failed" |