summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-05-25 23:14:03 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-05-25 23:14:03 +0000
commit14ffeeb69ca5678a8ae9519a1bf23fbdca790c9c (patch)
treef742360dc2b01b32acff8e3cdc892566cca320c7 /sys-devel
parentcleanup (diff)
downloadgentoo-2-14ffeeb69ca5678a8ae9519a1bf23fbdca790c9c.tar.gz
gentoo-2-14ffeeb69ca5678a8ae9519a1bf23fbdca790c9c.tar.bz2
gentoo-2-14ffeeb69ca5678a8ae9519a1bf23fbdca790c9c.zip
2.95.3-r5 is hardcoded into profile
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/gcc/files/digest-gcc-2.95.3-r52
-rw-r--r--sys-devel/gcc/gcc-2.95.3-r5.ebuild146
2 files changed, 148 insertions, 0 deletions
diff --git a/sys-devel/gcc/files/digest-gcc-2.95.3-r5 b/sys-devel/gcc/files/digest-gcc-2.95.3-r5
new file mode 100644
index 000000000000..af4ece6f1f33
--- /dev/null
+++ b/sys-devel/gcc/files/digest-gcc-2.95.3-r5
@@ -0,0 +1,2 @@
+MD5 f3ad4f32c2296fad758ed051b5ac8e28 gcc-2.95.3.tar.gz 12911721
+MD5 070493baeb2c277c34575b0df4e2baf1 texinfo-4.0.tar.gz 1133487
diff --git a/sys-devel/gcc/gcc-2.95.3-r5.ebuild b/sys-devel/gcc/gcc-2.95.3-r5.ebuild
new file mode 100644
index 000000000000..6163fdf8671c
--- /dev/null
+++ b/sys-devel/gcc/gcc-2.95.3-r5.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-2.95.3-r5.ebuild,v 1.9 2002/05/25 23:14:03 azarah Exp $
+
+TV=4.0
+SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${P}/${P}.tar.gz
+ ftp://ftp.gnu.org/pub/gnu/texinfo/texinfo-${TV}.tar.gz"
+
+S=${WORKDIR}/${P}
+
+LOC=/usr
+
+DESCRIPTION="Modern GCC C/C++ compiler and an included, upgraded version of texinfo to boot"
+HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
+DEPEND="virtual/glibc"
+RDEPEND="virtual/glibc"
+if [ -z "`use build`" ]
+then
+ DEPEND="$DEPEND nls? ( sys-devel/gettext ) >=sys-libs/ncurses-5.2-r2"
+ RDEPEND="$RDEPEND >=sys-libs/ncurses-5.2-r2"
+fi
+PROVIDE="sys-apps/texinfo"
+src_unpack() {
+ unpack ${P}.tar.gz
+ cd ${S}
+ # A patch for the atexit problem occured with glibc-2.2.3
+ patch -l -p0 < ${FILESDIR}/${P}-atexit.diff || die
+ # Now we integrate texinfo-${TV} into gcc. It comes with texinfo-3.12.
+ cd ${S}
+ tar xzf ${DISTDIR}/texinfo-${TV}.tar.gz || die
+ cp -a ${S}/texinfo-4.0/* ${S}/texinfo
+ cd ${S}/texinfo
+ if [ "`use build`" ]
+ then
+ patch -p0 < ${FILESDIR}/texinfo-${TV}-no-ncurses-gentoo.diff || die
+ touch *
+ fi
+}
+
+src_compile() {
+ local myconf
+ if [ -z "`use build`" ]
+ then
+ myconf="--enable-shared"
+ else
+ myconf="--enable-languages=c"
+ fi
+ if [ -z "`use nls`" ] || [ "`use build`" ] ; then
+ myconf="$myconf --disable-nls"
+ else
+ myconf="$myconf --enable-nls --without-included-gettext"
+ fi
+
+ # gcc does not like optimization
+
+ export CFLAGS="${CFLAGS/-O?/}"
+ export CXXFLAGS="${CXXFLAGS/-O?/}"
+
+ ${S}/configure --prefix=${LOC} --mandir=${LOC}/share/man --infodir=${LOC}/share/info \
+ --enable-version-specific-runtime-libs --host=${CHOST} --build=${CHOST} --target=${CHOST} --enable-threads \
+ --with-local-prefix=${LOC}/local ${myconf} || die
+
+ if [ -z "`use static`" ]
+ then
+ emake bootstrap-lean || die
+ else
+ emake LDFLAGS=-static bootstrap || die
+ fi
+}
+
+src_install() {
+ make install prefix=${D}${LOC} mandir=${D}${LOC}/share/man infodir=${D}${LOC}/share/info || die
+ [ -e ${D}/usr/bin/gcc ] || die "gcc not found in ${D}"
+ FULLPATH=${D}${LOC}/lib/gcc-lib/${CHOST}/${PV}
+ cd ${FULLPATH}
+ dodir /lib
+ dosym /usr/bin/cpp /lib/cpp
+ dosym gcc /usr/bin/cc
+ dodir /etc/env.d
+ echo "LDPATH=${LOC}/lib/gcc-lib/${CHOST}/${PV}" > ${D}/etc/env.d/05gcc
+ cd ${S}
+ if [ -z "`use build`" ]
+ then
+ #do a full texinfo-${TV} install
+
+ cd ${S}/texinfo
+ make DESTDIR=${D} infodir=${D}/usr/share/info install || die
+ exeinto /usr/sbin
+ doexe ${FILESDIR}/mkinfodir
+
+ cd ${D}/usr/share/info
+ mv texinfo texinfo.info
+ for i in texinfo-*
+ do
+ mv ${i} texinfo.info-${i#texinfo-*}
+ done
+
+ cd ${S}/texinfo
+ docinto texinfo
+ dodoc AUTHORS ChangeLog COPYING INTRODUCTION NEWS README TODO
+ docinto texinfo/info
+ dodoc info/README
+ docinto texinfo/makeinfo
+ dodoc makeinfo/README
+
+ # end texinfo 4.0; begin more gcc stuff
+
+ cd ${S}
+ docinto /
+ dodoc COPYING COPYING.LIB README* FAQ MAINTAINERS
+ docinto html
+ dodoc faq.html
+ docinto gcc
+ cd ${S}/gcc
+ dodoc BUGS ChangeLog* COPYING* FSFChangeLog* LANGUAGES NEWS PROBLEMS README* SERVICE TESTS.FLUNK
+ cd ${S}/libchill
+ docinto libchill
+ dodoc ChangeLog
+ cd ${S}/libf2c
+ docinto libf2c
+ dodoc ChangeLog changes.netlib README TODO
+ cd ${S}/libiberty
+ docinto libiberty
+ dodoc ChangeLog COPYING.LIB README
+ cd ${S}/libio
+ docinto libio
+ dodoc ChangeLog NEWS README
+ cd dbz
+ docinto libio/dbz
+ dodoc README
+ cd ../stdio
+ docinto libio/stdio
+ dodoc ChangeLog*
+ cd ${S}/libobjc
+ docinto libobjc
+ dodoc ChangeLog README* THREADS*
+ cd ${S}/libstdc++
+ docinto libstdc++
+ dodoc ChangeLog NEWS
+ else
+ rm -rf ${D}/usr/share/{man,info}
+ #do a minimal texinfo install (build image)
+ cd ${S}/texinfo
+ dobin makeinfo/makeinfo util/{install-info,texi2dvi,texindex}
+ fi
+}