use tc-getCC
authorMike Frysinger <vapier@gentoo.org>
Thu, 28 Oct 2004 15:50:50 +0000 (15:50 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 28 Oct 2004 15:50:50 +0000 (15:50 +0000)
sys-apps/baselayout/baselayout-1.10.3.ebuild
sys-apps/baselayout/baselayout-1.10.4.ebuild
sys-apps/baselayout/baselayout-1.11.4.ebuild
sys-apps/baselayout/baselayout-1.9.4-r3.ebuild
sys-apps/baselayout/baselayout-1.9.4-r4.ebuild
sys-apps/baselayout/baselayout-1.9.4-r5.ebuild
sys-apps/baselayout/baselayout-1.9.4-r6.ebuild
sys-apps/dcron/dcron-2.9-r2.ebuild
sys-apps/dog/dog-1.7.ebuild
sys-apps/groff/groff-1.18.1-r4.ebuild
sys-apps/groff/groff-1.19.1-r1.ebuild

index 3b848c8ace07d7caf4977613ce995a6bc5e579c2..3be4406ce63154efa208e7bbebdd8386dd4a8f09 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/sys-apps/baselayout/baselayout-1.10.3.ebuild,v 1.8 2004/10/16 17:05:05 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.10.3.ebuild,v 1.9 2004/10/28 15:44:24 vapier Exp $
 
-inherit flag-o-matic eutils
+inherit flag-o-matic eutils toolchain-funcs
 
 SV=1.5.2               # rc-scripts version
 SVREV=                 # rc-scripts rev
@@ -43,7 +43,7 @@ src_unpack() {
 src_compile() {
        use static && append-ldflags -static
 
-       make -C ${S}/src CC="${CC:-gcc}" LD="${CC:-gcc} ${LDFLAGS}" \
+       make -C ${S}/src CC="$(tc-getCC)" LD="$(tc-getCC) ${LDFLAGS}" \
                CFLAGS="${CFLAGS}" || die
 }
 
index 0add8b9f3b747e21e2d2c761c09c8806a4e41a19..7dc31ebb4ab7eaef7c2dd4f62fe61bde97ef1c18 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/sys-apps/baselayout/baselayout-1.10.4.ebuild,v 1.8 2004/10/16 17:05:05 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.10.4.ebuild,v 1.9 2004/10/28 15:44:24 vapier Exp $
 
-inherit flag-o-matic eutils
+inherit flag-o-matic eutils toolchain-funcs
 
 SV=1.5.3               # rc-scripts version
 SVREV=                 # rc-scripts rev
@@ -43,7 +43,7 @@ src_unpack() {
 src_compile() {
        use static && append-ldflags -static
 
-       make -C ${S}/src CC="${CC:-gcc}" LD="${CC:-gcc} ${LDFLAGS}" \
+       make -C ${S}/src CC="$(tc-getCC)" LD="$(tc-getCC) ${LDFLAGS}" \
                CFLAGS="${CFLAGS}" || die
 }
 
index a0a14fb381c33225ff2520b3f25b3f3411bc4f60..0d9853d9078d22b9c2e0dd1fe59e291dcadcd110 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/sys-apps/baselayout/baselayout-1.11.4.ebuild,v 1.1 2004/10/26 02:23:17 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.11.4.ebuild,v 1.2 2004/10/28 15:44:24 vapier Exp $
 
-inherit flag-o-matic eutils
+inherit flag-o-matic eutils toolchain-funcs
 
 SV=1.6.4               # rc-scripts version
 SVREV=                 # rc-scripts rev
@@ -40,7 +40,7 @@ src_unpack() {
 src_compile() {
        use static && append-ldflags -static
 
-       make -C ${S}/src CC="${CC:-gcc}" LD="${CC:-gcc} ${LDFLAGS}" \
+       make -C ${S}/src CC="$(tc-getCC)" LD="$(tc-getCC) ${LDFLAGS}" \
                CFLAGS="${CFLAGS}" || die
 }
 
index 843b1f3ce6fa0d989cea7d3cea39be91f491dea7..cb2e196fa2a7ffa8316f47b69867be52e087f31f 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/sys-apps/baselayout/baselayout-1.9.4-r3.ebuild,v 1.6 2004/10/16 17:05:05 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.9.4-r3.ebuild,v 1.7 2004/10/28 15:44:24 vapier Exp $
 
-inherit flag-o-matic eutils
+inherit flag-o-matic eutils toolchain-funcs
 
 SV=1.4.16              # rc-scripts version
 SVREV=                 # rc-scripts rev
@@ -81,7 +81,7 @@ src_compile() {
        echo "${ROOT}" > ${T}/ROOT
 
        einfo "Building utilities..."
-       make -C ${S}/src CC="${CC:-gcc}" LD="${CC:-gcc} ${LDFLAGS}" \
+       make -C ${S}/src CC="$(tc-getCC)" LD="$(tc-getCC) ${LDFLAGS}" \
                CFLAGS="${CFLAGS}" || die "problem compiling utilities"
 
        if ! use build; then
@@ -94,7 +94,7 @@ src_compile() {
                # the shared obj by default anyway!  The other option is to
                # refrain from building sulogin, but that isn't a good option.
                # (09 Jul 2004 agriffis)
-               emake -C ${S2}/src CC="${CC:-gcc}" LD="${CC:-gcc}" \
+               emake -C ${S2}/src CC="$(tc-getCC)" LD="$(tc-getCC)" \
                        LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS} -D_GNU_SOURCE" \
                        LCRYPT="-lcrypt" || die "problem compiling sysvinit"
        else
index 398d11452464bbdf393af9a74bf1a014752ee827..f24ea74085cae8314ccb21e1a8c5e4a9a5cc39f6 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/sys-apps/baselayout/baselayout-1.9.4-r4.ebuild,v 1.5 2004/10/16 17:05:05 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.9.4-r4.ebuild,v 1.6 2004/10/28 15:44:24 vapier Exp $
 
-inherit flag-o-matic eutils
+inherit flag-o-matic eutils toolchain-funcs
 
 SV=1.4.16              # rc-scripts version
 SVREV=                 # rc-scripts rev
@@ -81,7 +81,7 @@ src_compile() {
        echo "${ROOT}" > ${T}/ROOT
 
        einfo "Building utilities..."
-       make -C ${S}/src CC="${CC:-gcc}" LD="${CC:-gcc} ${LDFLAGS}" \
+       make -C ${S}/src CC="$(tc-getCC)" LD="$(tc-getCC) ${LDFLAGS}" \
                CFLAGS="${CFLAGS}" || die "problem compiling utilities"
 
        if ! use build; then
@@ -94,7 +94,7 @@ src_compile() {
                # the shared obj by default anyway!  The other option is to
                # refrain from building sulogin, but that isn't a good option.
                # (09 Jul 2004 agriffis)
-               emake -C ${S2}/src CC="${CC:-gcc}" LD="${CC:-gcc}" \
+               emake -C ${S2}/src CC="$(tc-getCC)" LD="$(tc-getCC)" \
                        LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS} -D_GNU_SOURCE" \
                        LCRYPT="-lcrypt" || die "problem compiling sysvinit"
        else
index 6253a7943b56e2736205fd4b3344a8960725f61c..dcc6a01e02438d2f1e667af78f69e71ba3feef98 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/sys-apps/baselayout/baselayout-1.9.4-r5.ebuild,v 1.2 2004/10/19 20:16:24 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.9.4-r5.ebuild,v 1.3 2004/10/28 15:44:24 vapier Exp $
 
-inherit flag-o-matic eutils
+inherit flag-o-matic eutils toolchain-funcs
 
 SV=1.4.16              # rc-scripts version
 SVREV=                 # rc-scripts rev
@@ -86,7 +86,7 @@ src_compile() {
        echo "${ROOT}" > ${T}/ROOT
 
        einfo "Building utilities..."
-       make -C ${S}/src CC="${CC:-gcc}" LD="${CC:-gcc} ${LDFLAGS}" \
+       make -C ${S}/src CC="$(tc-getCC)" LD="$(tc-getCC) ${LDFLAGS}" \
                CFLAGS="${CFLAGS}" || die "problem compiling utilities"
 
        if ! use build; then
@@ -99,7 +99,7 @@ src_compile() {
                # the shared obj by default anyway!  The other option is to
                # refrain from building sulogin, but that isn't a good option.
                # (09 Jul 2004 agriffis)
-               emake -C ${S2}/src CC="${CC:-gcc}" LD="${CC:-gcc}" \
+               emake -C ${S2}/src CC="$(tc-getCC)" LD="$(tc-getCC)" \
                        LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS} -D_GNU_SOURCE" \
                        LCRYPT="-lcrypt" || die "problem compiling sysvinit"
        else
index 1838a17cc1a1e7b1542abe0be037025665645c8b..2520236d83d7f4e3d3fb4f7a16d4f3abed1e04a2 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/sys-apps/baselayout/baselayout-1.9.4-r6.ebuild,v 1.1 2004/10/22 04:08:59 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.9.4-r6.ebuild,v 1.2 2004/10/28 15:44:24 vapier Exp $
 
-inherit flag-o-matic eutils
+inherit flag-o-matic eutils toolchain-funcs
 
 SV=1.4.16              # rc-scripts version
 SVREV=                 # rc-scripts rev
@@ -87,7 +87,7 @@ src_compile() {
        echo "${ROOT}" > ${T}/ROOT
 
        einfo "Building utilities..."
-       make -C ${S}/src CC="${CC:-gcc}" LD="${CC:-gcc} ${LDFLAGS}" \
+       make -C ${S}/src CC="$(tc-getCC)" LD="$(tc-getCC) ${LDFLAGS}" \
                CFLAGS="${CFLAGS}" || die "problem compiling utilities"
 
        if ! use build; then
@@ -100,7 +100,7 @@ src_compile() {
                # the shared obj by default anyway!  The other option is to
                # refrain from building sulogin, but that isn't a good option.
                # (09 Jul 2004 agriffis)
-               emake -C ${S2}/src CC="${CC:-gcc}" LD="${CC:-gcc}" \
+               emake -C ${S2}/src CC="$(tc-getCC)" LD="$(tc-getCC)" \
                        LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS} -D_GNU_SOURCE" \
                        LCRYPT="-lcrypt" || die "problem compiling sysvinit"
        else
index 95875c5af8b4c2b744cb1e53ebe4924a719d8003..cc943f719ace8dedf5156b1f3ff39c2bd9122471 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/sys-apps/dcron/dcron-2.9-r2.ebuild,v 1.17 2004/10/05 12:59:59 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/dcron/dcron-2.9-r2.ebuild,v 1.18 2004/10/28 15:47:44 vapier Exp $
 
-inherit eutils
+inherit eutils toolchain-funcs
 
 MY_PV=29
 DESCRIPTION="A cute little cron from Matt Dillon"
@@ -33,7 +33,7 @@ src_unpack() {
        sed -i 's:VISUAL:EDITOR:g' crontab.{c,1}
 
        # remove gcc hardcode
-       sed -i "s:\(CC  = \)gcc:\1${CC:-gcc}:" Makefile
+       sed -i "s:\(CC  = \)gcc:\1$(tc-getCC):" Makefile
 }
 
 src_compile() {
index 49d77d7efb3321630373170f98d16da6c6f323c6..3f0482424f1bf959d747a1bacd50c74ec5bba150 100644 (file)
@@ -1,23 +1,25 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/dog/dog-1.7.ebuild,v 1.12 2004/10/23 05:48:52 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/dog/dog-1.7.ebuild,v 1.13 2004/10/28 15:49:18 vapier Exp $
 
 DESCRIPTION="Dog is better than cat"
-SRC_URI="http://jl.photodex.com/dog/${P}.tar.gz"
 HOMEPAGE="http://jl.photodex.com/dog/"
+SRC_URI="http://jl.photodex.com/dog/${P}.tar.gz"
 
-inherit ccc
-
-IUSE=""
-SLOT="0"
 LICENSE="GPL-2"
-KEYWORDS="x86 amd64 alpha ppc64 sparc ppc ppc-macos"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc ppc64 ppc-macos sparc x86"
+IUSE=""
+
 DEPEND=">=sys-apps/sed-4"
 
 src_unpack() {
        unpack ${A}
-       cd ${S}; sed -i 's/^CFLAGS/#CFLAGS/' Makefile
-       is-ccc && sed -i "s/gcc/${CC:-gcc}/" Makefile
+       cd ${S}
+       sed -i \
+               -e 's/^CFLAGS/#CFLAGS/' \
+               -e "s/gcc/$(tc-getCC)/" \
+               Makefile
 }
 
 src_compile() {
@@ -25,8 +27,7 @@ src_compile() {
 }
 
 src_install() {
-       dobin dog
+       dobin dog || die
        doman dog.1
-       dodoc README AUTHORS COPYING
+       dodoc README AUTHORS
 }
-
index 923142afc2df45732d3288a516f854016845d05f..70c8e974620ba9c8f57ec897d0d2cfa8e89c3653 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/sys-apps/groff/groff-1.18.1-r4.ebuild,v 1.7 2004/06/30 16:29:43 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/groff/groff-1.18.1-r4.ebuild,v 1.8 2004/10/28 15:50:50 vapier Exp $
 
-inherit eutils flag-o-matic
+inherit eutils flag-o-matic toolchain-funcs
 
 MB_PATCH="${P/-/_}-7"
 DESCRIPTION="Text formatter used for man pages"
@@ -54,8 +54,8 @@ src_compile() {
        local myconf=""
 
        # Fix problems with not finding g++
-       [ -z "${CC}" ] && export CC="gcc"
-       [ -z "${CXX}" ] && export CXX="g++"
+       export CC="$(tc-getCC)"
+       export CXX="$(tc-getCXX)"
 
        case ${ARCH} in
                alpha)
index 273eab28edbeada82a6687cf238c0bb6de300253..d0fa1d029147cda260f6616e01c07cbaed7d22f4 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/sys-apps/groff/groff-1.19.1-r1.ebuild,v 1.4 2004/10/04 12:02:05 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/groff/groff-1.19.1-r1.ebuild,v 1.5 2004/10/28 15:50:50 vapier Exp $
 
-inherit eutils flag-o-matic gcc
+inherit eutils flag-o-matic toolchain-funcs
 
 MB_PATCH="groff_1.18.1-7" #"${P/-/_}-7"
 DESCRIPTION="Text formatter used for man pages"
@@ -43,8 +43,8 @@ src_compile() {
        local myconf=
 
        # Fix problems with not finding g++
-       export CC="$(gcc-getCC)"
-       export CXX="$(gcc-getCXX)"
+       export CC="$(tc-getCC)"
+       export CXX="$(tc-getCXX)"
 
        case ${ARCH} in
                alpha)