From fe46088a04eb1d3797c7b2d2941b162c5eafb622 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 26 Oct 2004 13:14:43 +0000 Subject: [PATCH] use $(tc-getCC) --- app-arch/ncompress/ncompress-4.2.4-r1.ebuild | 10 ++++++---- app-arch/unzip/unzip-5.50-r2.ebuild | 9 ++++----- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/app-arch/ncompress/ncompress-4.2.4-r1.ebuild b/app-arch/ncompress/ncompress-4.2.4-r1.ebuild index 0db6a0e56ebe..4b5385af9a8a 100644 --- a/app-arch/ncompress/ncompress-4.2.4-r1.ebuild +++ b/app-arch/ncompress/ncompress-4.2.4-r1.ebuild @@ -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/app-arch/ncompress/ncompress-4.2.4-r1.ebuild,v 1.9 2004/10/10 02:28:47 tgall Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-arch/ncompress/ncompress-4.2.4-r1.ebuild,v 1.10 2004/10/26 13:13:11 vapier Exp $ -inherit eutils +inherit eutils toolchain-funcs DESCRIPTION="Another uncompressor for compatibility" HOMEPAGE="ftp://ftp.leo.org/pub/comp/os/unix/linux/sunsite/utils/compress/" @@ -23,8 +23,10 @@ src_unpack() { } src_compile() { - sed -e "s:options= :options= ${CFLAGS} :" \ - -e "s:CC=cc:CC=${CC:-gcc}:" Makefile.def > Makefile + sed \ + -e "s:options= :options= ${CFLAGS} :" \ + -e "s:CC=cc:CC=$(tc-getCC):" \ + Makefile.def > Makefile make || die } diff --git a/app-arch/unzip/unzip-5.50-r2.ebuild b/app-arch/unzip/unzip-5.50-r2.ebuild index 0a07b1af5d61..300efc7c4a9f 100644 --- a/app-arch/unzip/unzip-5.50-r2.ebuild +++ b/app-arch/unzip/unzip-5.50-r2.ebuild @@ -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/app-arch/unzip/unzip-5.50-r2.ebuild,v 1.15 2004/06/26 09:17:41 seemant Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-arch/unzip/unzip-5.50-r2.ebuild,v 1.16 2004/10/26 13:14:43 vapier Exp $ -inherit eutils +inherit eutils toolchain-funcs DESCRIPTION="Unzipper for pkzip-compressed files" HOMEPAGE="ftp://ftp.info-zip.org/pub/infozip/UnZip.html" @@ -10,7 +10,7 @@ SRC_URI="ftp://ftp.info-zip.org/pub/infozip/src/${PN}${PV/.}.tar.gz" LICENSE="Info-ZIP" SLOT="0" -KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ia64 ppc64 s390" +KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sparc x86" IUSE="" RDEPEND="virtual/libc" @@ -24,11 +24,10 @@ src_unpack() { sed -i \ -e "s:-O3:${CFLAGS}:" \ - -e "s:CC=gcc LD=gcc:CC=${CC:-gcc} LD=${CC:-gcc}:" \ + -e "s:CC=gcc LD=gcc:CC=$(tc-getCC) LD=$(tc-getLD):" \ -e "s:-O :${CFLAGS} :" \ unix/Makefile \ || die "sed unix/Makefile failed" - } src_compile() { -- 2.26.2