diff options
author | Aron Griffis <agriffis@gentoo.org> | 2004-06-24 04:31:25 +0000 |
---|---|---|
committer | Aron Griffis <agriffis@gentoo.org> | 2004-06-24 04:31:25 +0000 |
commit | e7c864249e92de0c5fb07a3a50868d1f3ec6adb7 (patch) | |
tree | 1ff26fe079386143d4973a873d37b92117f91d6e /sys-devel/gcc/gcc-3.3.2-r2.ebuild | |
parent | added uclibc update for 5.8.4 (Manifest recommit) (diff) | |
download | gentoo-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.2-r2.ebuild')
-rw-r--r-- | sys-devel/gcc/gcc-3.3.2-r2.ebuild | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/sys-devel/gcc/gcc-3.3.2-r2.ebuild b/sys-devel/gcc/gcc-3.3.2-r2.ebuild index d6e66f0cf9c1..9f856d9e9cbf 100644 --- a/sys-devel/gcc/gcc-3.3.2-r2.ebuild +++ b/sys-devel/gcc/gcc-3.3.2-r2.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.2-r2.ebuild,v 1.9 2004/01/08 19:53:24 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.3.2-r2.ebuild,v 1.10 2004/06/24 04:31:24 agriffis Exp $ IUSE="static nls bootstrap java build X multilib" @@ -199,7 +199,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 > \ @@ -246,20 +246,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 @@ -269,15 +269,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" @@ -340,7 +339,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" \ @@ -390,7 +389,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\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL} @@ -406,7 +405,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} @@ -483,7 +482,7 @@ src_install() { fi cd ${S} - if [ -z "`use build`" ] + if ! use build then cd ${S} docinto /${CCHOST} @@ -518,7 +517,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 @@ -545,7 +544,7 @@ src_install() { # Fix ncurses b0rking find ${D}/ -name '*curses.h' -exec rm -f {} \; - 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 @@ -565,7 +564,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}" @@ -577,7 +576,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}" |