diff options
author | Achim Gottinger <achim@gentoo.org> | 2001-02-19 18:00:33 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2001-02-19 18:00:33 +0000 |
commit | 9872468a0d54bc6a4711e318784811a067a85b61 (patch) | |
tree | 32505845b6020e63bd97c9c5f13e1f606b942a65 /sys-devel | |
parent | *** empty log message *** (diff) | |
download | gentoo-2-9872468a0d54bc6a4711e318784811a067a85b61.tar.gz gentoo-2-9872468a0d54bc6a4711e318784811a067a85b61.tar.bz2 gentoo-2-9872468a0d54bc6a4711e318784811a067a85b61.zip |
*** empty log message ***
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/gcc/files/digest-gcc-2.95.2.1 | 5 | ||||
-rw-r--r-- | sys-devel/gcc/files/digest-gcc-2.95.2.1-r1 | 7 | ||||
-rw-r--r-- | sys-devel/gcc/gcc-2.95.2.1-r1.ebuild | 167 |
3 files changed, 179 insertions, 0 deletions
diff --git a/sys-devel/gcc/files/digest-gcc-2.95.2.1 b/sys-devel/gcc/files/digest-gcc-2.95.2.1 index 06cfc0edf8a6..b210ffce4620 100644 --- a/sys-devel/gcc/files/digest-gcc-2.95.2.1 +++ b/sys-devel/gcc/files/digest-gcc-2.95.2.1 @@ -1,2 +1,7 @@ MD5 0e36957d734286e242e9697fd2806c4f gcc-2.95.2.tar.gz MD5 e89e684a145a55d442b09436edef4427 gcc-2.95.2-2.95.2.1.diff.gz +MD5 2826dbbd081646c459b1774145ffd7bf libg++-2.8.1.3.tar.gz +MD5 906124171f15ee1585d840ed7d174009 libg++-2.8.1.3-20000312.diff.gz +MD5 47b93312badd9550ccb7d113bbf0242a libg++-2.8.1.3-20000419.diff.gz +MD5 9e00e62b8fb7af3e41364b7c6d9f4cf8 libg++-2.8.1.3-20000816.diff.gz +MD5 625dd5a953661b901c876f92c2c5e7a6 libg++-2.8.1.3-20000914.diff.gz diff --git a/sys-devel/gcc/files/digest-gcc-2.95.2.1-r1 b/sys-devel/gcc/files/digest-gcc-2.95.2.1-r1 new file mode 100644 index 000000000000..b210ffce4620 --- /dev/null +++ b/sys-devel/gcc/files/digest-gcc-2.95.2.1-r1 @@ -0,0 +1,7 @@ +MD5 0e36957d734286e242e9697fd2806c4f gcc-2.95.2.tar.gz +MD5 e89e684a145a55d442b09436edef4427 gcc-2.95.2-2.95.2.1.diff.gz +MD5 2826dbbd081646c459b1774145ffd7bf libg++-2.8.1.3.tar.gz +MD5 906124171f15ee1585d840ed7d174009 libg++-2.8.1.3-20000312.diff.gz +MD5 47b93312badd9550ccb7d113bbf0242a libg++-2.8.1.3-20000419.diff.gz +MD5 9e00e62b8fb7af3e41364b7c6d9f4cf8 libg++-2.8.1.3-20000816.diff.gz +MD5 625dd5a953661b901c876f92c2c5e7a6 libg++-2.8.1.3-20000914.diff.gz diff --git a/sys-devel/gcc/gcc-2.95.2.1-r1.ebuild b/sys-devel/gcc/gcc-2.95.2.1-r1.ebuild new file mode 100644 index 000000000000..270d341a3190 --- /dev/null +++ b/sys-devel/gcc/gcc-2.95.2.1-r1.ebuild @@ -0,0 +1,167 @@ +# 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.1-r1.ebuild,v 1.1 2001/02/19 18:00:33 achim Exp $ + + +SRC_URI="ftp://ftp.freesoftware.com/pub/sourceware/gcc/releases/${PN}-2.95.2/${PN}-2.95.2.tar.gz + ftp://ftp.freesoftware.com/pub/sourceware/gcc/releases/${P}/${PN}-2.95.2-${PV}.diff.gz" + +if [ "`use libg++`" ] +then + SRC_URI="${SRC_URI} + 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-20000312.diff.gz + ftp://ftp.freesoftware.com/pub/sourceware/gcc/infrastructure/libg++-2.8.1.3-20000419.diff.gz + ftp://ftp.freesoftware.com/pub/sourceware/gcc/infrastructure/libg++-2.8.1.3-20000816.diff.gz + ftp://ftp.freesoftware.com/pub/sourceware/gcc/infrastructure/libg++-2.8.1.3-20000914.diff.gz" +fi + +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" +HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html" +DEPEND="virtual/glibc + >=sys-devel/gettext-0.10.35-r1" + +RDEPEND="virtual/glibc" + +src_unpack() { + + unpack gcc-2.95.2.tar.gz + + if [ "`use libg++`" ] + then + unpack libg++-2.8.1.3.tar.gz + cd ${S}/../libg++-2.8.1.3 + gzip -dc ${DISTDIR}/libg++-2.8.1.3-20000312.diff.gz | patch -p1 + gzip -dc ${DISTDIR}/libg++-2.8.1.3-20000419.diff.gz | patch -p1 + gzip -dc ${DISTDIR}/libg++-2.8.1.3-20000816.diff.gz | patch -p1 + gzip -dc ${DISTDIR}/libg++-2.8.1.3-20000914.diff.gz | patch -p1 + cd ${S} + mv ../libg++-2.8.1.3/* . + rmdir ../libg++-2.8.1.3 + fi + + cd ${S} + echo "Patch ${A0}" + zcat ${FILESDIR}/${A0} | patch -p0 + echo "Patch ${A1}" + zcat ${FILESDIR}/${A1} | patch -p0 + echo "Patch ${A2}" + zcat ${FILESDIR}/${A2} | patch -p0 + echo "Patch ${A3}" + #patch -p0 < ${FILESDIR}/${A3} + echo "Patch 2.95.2 - 2.95.2.1" + gzip -dc ${DISTDIR}/${PN}-2.95.2-${PV}.diff.gz | patch -p1 + # We do not build the included texinfo stuff + if [ -z "`use build`" ] + then + rm -rf texinfo + fi +} + +src_compile() { + + local myconf + if [ -z "`use build`" ] + then + myconf="--enable-nls --enable-shared" + else + myconf="--disable-nls" + fi + + # gcc does not like optimization + + export CFLAGS="${CFLAGS/-O?/}" + export CXXFLAGS="${CXXFLAGS/-O?/}" + + + try ${S}/configure --prefix=${T} --mandir=${T}/share/man --infodir=${T}/share/info \ + --enable-version-specific-runtime-libs \ + --host=${CHOST} --build=${CHOST} --target=${CHOST} --enable-threads \ + --with-local-prefix=${T}/local ${myconf} + + # Parallel build does not work + if [ -z "`use build-static`" ] + then + try make ${MAKEOPTS} bootstrap-lean + else + try make ${MAKEOPTS} LDFLAGS=-static bootstrap + fi + if [ "`use build`" ] + then + cd ${S}/texinfo/util + make texindex install-info + fi +} + +src_install() { + + try make install prefix=${D}${T} mandir=${D}${T}/share/man infodir=${D}${T}/share/info + + FULLPATH=${D}${T}/lib/gcc-lib/${CHOST}/${PV} + cd ${FULLPATH} + dodir /lib + dosym ${T}/lib/gcc-lib/${CHOST}/${PV}/cpp /lib/cpp + dosym /usr/bin/gcc /usr/bin/cc + dodir /etc/env.d + echo "LDPATH=${T}/lib/gcc-lib/${CHOST}/${PV}" > ${D}/etc/env.d/05gcc + cd ${S} + if [ -z "`use build`" ] + then + 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* + + if [ "`use libg++`" ] + then + cd ${S}/libg++ + docinto libg++ + dodoc ChangeLog g++FAQ.txt NEWS README* TODO + else + cd ${S}/libstdc++ + docinto libstdc++ + dodoc ChangeLog NEWS + fi + else + cd texinfo + dobin makeinfo/makeinfo util/texi2dvi util/install-info util/texindex + fi + +} + + + + + |