summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Griffis <agriffis@gentoo.org>2004-06-24 04:31:25 +0000
committerAron Griffis <agriffis@gentoo.org>2004-06-24 04:31:25 +0000
commite7c864249e92de0c5fb07a3a50868d1f3ec6adb7 (patch)
tree1ff26fe079386143d4973a873d37b92117f91d6e /sys-devel/gcc/gcc-3.3.3_pre20040130.ebuild
parentadded uclibc update for 5.8.4 (Manifest recommit) (diff)
downloadgentoo-2-e7c864249e92de0c5fb07a3a50868d1f3ec6adb7.tar.gz
gentoo-2-e7c864249e92de0c5fb07a3a50868d1f3ec6adb7.tar.bz2
gentoo-2-e7c864249e92de0c5fb07a3a50868d1f3ec6adb7.zip
Fix use invocation and regenerate broken manifest
Diffstat (limited to 'sys-devel/gcc/gcc-3.3.3_pre20040130.ebuild')
-rw-r--r--sys-devel/gcc/gcc-3.3.3_pre20040130.ebuild31
1 files changed, 15 insertions, 16 deletions
diff --git a/sys-devel/gcc/gcc-3.3.3_pre20040130.ebuild b/sys-devel/gcc/gcc-3.3.3_pre20040130.ebuild
index b461a4f1c800..8ac1e04af469 100644
--- a/sys-devel/gcc/gcc-3.3.3_pre20040130.ebuild
+++ b/sys-devel/gcc/gcc-3.3.3_pre20040130.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.3.3_pre20040130.ebuild,v 1.2 2004/02/10 13:12:33 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.3.3_pre20040130.ebuild,v 1.3 2004/06/24 04:31:25 agriffis Exp $
IUSE="static nls bootstrap java build X multilib"
@@ -270,7 +270,7 @@ src_unpack() {
mkdir -p ${WORKDIR}/patch/exclude
mv -f ${WORKDIR}/patch/{40,41}* ${WORKDIR}/patch/exclude/
- if [ -n "`use multilib`" -a "${ARCH}" = "amd64" ]
+ if use multilib && [ "${ARCH}" = "amd64" ]
then
mv -f ${WORKDIR}/patch/06* ${WORKDIR}/patch/exclude/
bzip2 -c ${FILESDIR}/gcc331_use_multilib.amd64.patch > \
@@ -327,20 +327,20 @@ src_compile() {
local myconf=
local gcc_lang=
- if [ -z "`use build`" ]
+ if ! use build
then
myconf="${myconf} --enable-shared"
gcc_lang="c,c++,f77,objc"
else
gcc_lang="c"
fi
- if [ -z "`use nls`" -o "`use build`" ]
+ if ! use nls || use build
then
myconf="${myconf} --disable-nls"
else
myconf="${myconf} --enable-nls --without-included-gettext"
fi
- if [ -n "`use java`" -a -z "`use build`" ]
+ if use java && ! use build
then
gcc_lang="${gcc_lang},java"
fi
@@ -350,15 +350,14 @@ src_compile() {
# X11 support is still very experimental but enabling it is
# quite innocuous... [No, gcc is *not* linked to X11...]
# <dragon@gentoo.org> (15 May 2003)
- if [ -n "`use java`" -a -n "`use X`" -a -z "`use build`" -a \
- -f /usr/X11R6/include/X11/Xlib.h ]
+ if use java && use X && ! use build && [ -f /usr/X11R6/include/X11/Xlib.h ]
then
myconf="${myconf} --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib"
myconf="${myconf} --enable-interpreter --enable-java-awt=xlib --with-x"
fi
# Multilib not yet supported
- if [ -n "`use multilib`" -a "${ARCH}" = "amd64" ]
+ if use multilib && [ "${ARCH}" = "amd64" ]
then
einfo "WARNING: Multilib support enabled. This is still experimental."
myconf="${myconf} --enable-multilib"
@@ -422,7 +421,7 @@ src_compile() {
einfo "Building GCC..."
# Only build it static if we are just building the C frontend, else
# a lot of things break because there are not libstdc++.so ....
- if [ -n "`use static`" -a "${gcc_lang}" = "c" ]
+ if use static && [ "${gcc_lang}" = "c" ]
then
# Fix for our libtool-portage.patch
S="${WORKDIR}/build" \
@@ -484,7 +483,7 @@ src_install() {
dodir /etc/env.d/gcc
echo "PATH=\"${BINPATH}\"" > ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL}
echo "ROOTPATH=\"${BINPATH}\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL}
- if [ -n "`use multilib`" -a "${ARCH}" = "amd64" ]
+ if use multilib && [ "${ARCH}" = "amd64" ]
then
# amd64 is a bit unique because of multilib. Add some other paths
echo "LDPATH=\"${LIBPATH}:${LIBPATH}/32:${LIBPATH}/../lib64:${LIBPATH}/../lib32\"" >> \
@@ -507,7 +506,7 @@ src_install() {
# Make sure we dont have stuff lying around that
# can nuke multiple versions of gcc
- if [ -z "`use build`" ]
+ if ! use build
then
cd ${D}${LIBPATH}
@@ -584,7 +583,7 @@ src_install() {
fi
cd ${S}
- if [ -z "`use build`" ]
+ if ! use build
then
cd ${S}
docinto /${CCHOST}
@@ -619,7 +618,7 @@ src_install() {
cp -f docs/html/17_intro/[A-Z]* \
${D}/usr/share/doc/${PF}/${DOCDESTTREE}/17_intro/
- if [ -n "`use java`" ]
+ if use java
then
cd ${S}/fastjar
docinto ${CCHOST}/fastjar
@@ -643,7 +642,7 @@ src_install() {
exeinto /sbin
doexe ${FILESDIR}/fix_libtool_files.sh
- if [ -n "`use multilib`" -a "${ARCH}" = "amd64" ]
+ if use multilib && [ "${ARCH}" = "amd64" ]
then
# If using multilib, GCC has a bug, where it doesn't know where to find
# -lgcc_s when linking while compiling with g++ . ${LIBPATH} is in
@@ -663,7 +662,7 @@ pkg_preinst() {
# Make again sure that the linker "should" be able to locate
# libstdc++.so ...
- if [ -n "`use multilib`" -a "${ARCH}" = "amd64" ]
+ if use multilib && [ "${ARCH}" = "amd64" ]
then
# Can't always find libgcc_s.so.1, make it find it
export LD_LIBRARY_PATH="${LIBPATH}:${LIBPATH}/../lib64:${LIBPATH}/../lib32:${LD_LIBRARY_PATH}"
@@ -675,7 +674,7 @@ pkg_preinst() {
pkg_postinst() {
- if [ -n "`use multilib`" -a "${ARCH}" = "amd64" ]
+ if use multilib && [ "${ARCH}" = "amd64" ]
then
# Can't always find libgcc_s.so.1, make it find it
export LD_LIBRARY_PATH="${LIBPATH}:${LIBPATH}/../lib64:${LIBPATH}/../lib32:${LD_LIBRARY_PATH}"