# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/bc/bc-1.06-r5.ebuild,v 1.18 2004/11/13 05:48:27 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/bc/bc-1.06-r5.ebuild,v 1.19 2004/12/06 06:38:38 vapier Exp $
-inherit eutils flag-o-matic
+inherit eutils flag-o-matic toolchain-funcs
DESCRIPTION="Handy console-based calculator utility"
HOMEPAGE="http://www.gnu.org/software/bc/bc.html"
epatch ${FILESDIR}/bc-1.06-info-fix.diff
epatch ${FILESDIR}/bc-1.06-readline42.diff
+ sed -i -e '/^AR =/s:.*::' lib/Makefile.in
# Command line arguments for flex changed from the old
# 2.5.4 to 2.5.22, so fix configure if we are using the
x86) replace-flags -Os -O2;;
amd64) replace-flags -O? -O0;;
esac
+ tc-export CC AR RANLIB
local myconf=""
use static && append-ldflags -static
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/flex-2.5.4a-r5.ebuild,v 1.29 2004/11/12 15:51:55 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/flex/flex-2.5.4a-r5.ebuild,v 1.30 2004/12/06 06:41:08 vapier Exp $
-inherit eutils flag-o-matic
+inherit eutils flag-o-matic toolchain-funcs
DESCRIPTION="GNU lexical analyser generator"
HOMEPAGE="http://lex.sourceforge.net/"
}
src_compile() {
+ export CC="$(tc-getCC)"
+
./configure \
--prefix=/usr \
--host=${CHOST} \