use $(tc-getCC)
authorMike Frysinger <vapier@gentoo.org>
Tue, 26 Oct 2004 13:39:13 +0000 (13:39 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 26 Oct 2004 13:39:13 +0000 (13:39 +0000)
dev-lang/cm3-bin/cm3-bin-5.2.6.ebuild
dev-lang/gforth/gforth-0.6.2.ebuild

index 1cb890d0f3b5f3bee478615ef15d36ec32a42eb8..c309c8561ae45d0a7dd3214d2018b19b002ecccb 100644 (file)
@@ -1,6 +1,8 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/cm3-bin/cm3-bin-5.2.6.ebuild,v 1.7 2004/06/24 22:47:44 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/cm3-bin/cm3-bin-5.2.6.ebuild,v 1.8 2004/10/26 13:36:44 vapier Exp $
+
+inherit toolchain-funcs
 
 DESCRIPTION="Critical Mass Modula-3 compiler (binary version)"
 HOMEPAGE="http://www.elegosoft.com/cm3/"
@@ -21,11 +23,11 @@ src_unpack() {
        local TARGET
        local GNU_PLATFORM
        case ${ARCH} in
-               x86)    TARGET=LINUXLIBC6
-                       GNU_PLATFORM=i486--linuxelf
+               x86) TARGET=LINUXLIBC6
+                        GNU_PLATFORM=i486--linuxelf
                        ;;
-               ppc)    TARGET=PPC_LINUX
-                       GNU_PLATFORM=powerpc-apple-linuxelf
+               ppc) TARGET=PPC_LINUX
+                        GNU_PLATFORM=powerpc-apple-linuxelf
                        ;;
        esac
        sed \
@@ -33,7 +35,7 @@ src_unpack() {
                -e "s:GENTOO_GNU_PLATFORM:${GNU_PLATFORM}:" \
                -e "s:GENTOO_INITIAL_REACTOR_EDITOR:${EDITOR:-/usr/bin/nano}:" \
                -e "s:GENTOO_INSTALL_ROOT:/usr/lib/cm3/:" \
-               -e "s:GENTOO_GNU_CC:${CC:-gcc}:" \
+               -e "s:GENTOO_GNU_CC:$(tc-getCC):" \
                -e "s:GENTOO_GNU_CFLAGS:${CFLAGS:--O}:" \
                -e "s:GENTOO_GNU_MAKE:${MAKE:-make}:" \
                -e "s:GENTOO_ROOT:/usr/lib/cm3/pkg/:" \
index e573959364a2c8e39a2bd4e8a150da61d62f1a2f..191b8747155e8d74f79b5ce7d8e2dae012396e3b 100644 (file)
@@ -1,8 +1,8 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/gforth/gforth-0.6.2.ebuild,v 1.8 2004/09/03 15:04:48 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/gforth/gforth-0.6.2.ebuild,v 1.9 2004/10/26 13:39:13 vapier Exp $
 
-inherit elisp-common eutils
+inherit elisp-common eutils toolchain-funcs
 
 DESCRIPTION="GNU Forth is a fast and portable implementation of the ANSI Forth language"
 HOMEPAGE="http://www.gnu.org/software/gforth"
@@ -24,7 +24,7 @@ src_unpack() {
 }
 
 src_compile() {
-       econf CC="gcc -fno-reorder-blocks -fno-inline" --enable-force-reg || die "econf failed"
+       econf CC="$(tc-getCC) -fno-reorder-blocks -fno-inline" --enable-force-reg || die "econf failed"
        make || die
        use emacs && emacs --batch -f batch-byte-compile --no-site-file --no-init-file *.el
 }