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