diff options
Diffstat (limited to 'sys-devel/gcc/gcc-2.95.2-r2.ebuild')
-rw-r--r-- | sys-devel/gcc/gcc-2.95.2-r2.ebuild | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/sys-devel/gcc/gcc-2.95.2-r2.ebuild b/sys-devel/gcc/gcc-2.95.2-r2.ebuild new file mode 100644 index 000000000000..a47ee103552f --- /dev/null +++ b/sys-devel/gcc/gcc-2.95.2-r2.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-2.95.2-r2.ebuild,v 1.1 2000/10/03 16:02:06 achim Exp $ + +P=gcc-2.95.2 +A="gcc-2.95.2.tar.gz libg++-2.8.1.3.tar.gz libg++-2.8.1.3-20000914.diff.gz" +A0=gcc-2.95.2.dif.gz +A1=gcc-exception-fix.diff.gz +A2=gcc-accept-doublecolon.diff.gz +S=${WORKDIR}/gcc-2.95.2 +T=/usr +DESCRIPTION="modern gcc c/c++ compiler" +SRC_URI="ftp://prep.ai.mit.edu/gnu/gcc/gcc-2.95.2.tar.gz + ftp://gatekeeper.dec.com/pub/GNU/gcc/gcc-2.95.2.tar.gz + ftp://sourceware.cygnus.com/pub/gcc/infrastructure/libg++-2.8.1.3.tar.gz + ftp://sourceware.cygnus.com/pub/gcc/infrastructure/libg++-2.8.1.3-20000914.diff.gz + ftp://ftp.freesoftware.com/pub/sourceware/gcc/infrastructure/libg++-2.8.1.3.tar.gz + ftp://ftp.freesoftware.com/pub/sourceware/gcc/infrastructure/libg++-2.8.1.3-20000914.diff.gz" +HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html" + +src_unpack() { + unpack gcc-2.95.2.tar.gz + unpack libg++-2.8.1.3.tar.gz + cd ${S}/../libg++-2.8.1.3 + gzip -dc ${DISTDIR}/libg++-2.8.1.3-20000914.diff.gz | patch -p1 + einfo "Moving trees" + cd ${S} + rm -rf texinfo + mv ../libg++-2.8.1.3/* . + rmdir ../libg++-2.8.1.3 + zcat ${O}/files/${A0} | patch -p0 + zcat ${O}/files/${A1} | patch -p0 + zcat ${O}/files/${A2} | patch -p0 + echo "MT_CFLAGS = -ffloat-store -O0" >> libg++/config/linux.mt +} + +src_compile() { + cd ${S} + #i586a doesn't like optimization? + if [ "$PLATFORM" == "i686-pc-linux-gnu" ] + then + export CFLAGS="-mpentium" + export CXXFLAGS="-mpentium" + fi + try ${S}/configure --prefix=${T} --enable-version-specific-runtime-libs \ + --host=${CHOST} --enable-threads --enable-shared \ + --with-local-prefix=${T}/local --enable-nls \ + --with-gxx-include-dir=${T}/include/g++ \ + + try make bootstrap-lean +} + +src_install() { + try make install prefix=${D}${T} mandir=${D}${T}/man \ + gxx_include_dir=${D}${T}/include/g++ + FULLPATH=${D}${T}/lib/gcc-lib/i686-pc-linux-gnu/2.95.2 + cd ${FULLPATH} + dodir /lib + dosym ${T}/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/cpp /lib/cpp + dosym /usr/bin/gcc /usr/bin/cc + prepman + prepinfo + cd ${S} + dodoc COPYING COPYING.LIB README FAQ MAINTAINERS +} + + + + + |