summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodney Rees <manson@gentoo.org>2002-12-15 18:06:25 +0000
committerRodney Rees <manson@gentoo.org>2002-12-15 18:06:25 +0000
commit684dd26ea9ecad5e5cf785191df7cac0fbaaed98 (patch)
tree9e24d709fd6077143eccf8415bcacce86010fecd /sys-devel/egcs64-sparc
parentMarked as stable. (diff)
downloadgentoo-2-684dd26ea9ecad5e5cf785191df7cac0fbaaed98.tar.gz
gentoo-2-684dd26ea9ecad5e5cf785191df7cac0fbaaed98.tar.bz2
gentoo-2-684dd26ea9ecad5e5cf785191df7cac0fbaaed98.zip
upload ebuild corrected by Alron
Diffstat (limited to 'sys-devel/egcs64-sparc')
-rw-r--r--sys-devel/egcs64-sparc/ChangeLog6
-rw-r--r--sys-devel/egcs64-sparc/egcs64-sparc-19980921-r2.ebuild93
2 files changed, 98 insertions, 1 deletions
diff --git a/sys-devel/egcs64-sparc/ChangeLog b/sys-devel/egcs64-sparc/ChangeLog
index aba4111a3f7b..a9cd7d229e9a 100644
--- a/sys-devel/egcs64-sparc/ChangeLog
+++ b/sys-devel/egcs64-sparc/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-devel/egcs64-sparc
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/egcs64-sparc/ChangeLog,v 1.4 2002/12/14 02:51:24 jmorgan Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/egcs64-sparc/ChangeLog,v 1.5 2002/12/15 18:06:25 manson Exp $
+
+*egcs64-sparc-19980921-r2 (12-15-02)
+ 15 Dec 2002, Rodney Rees <manson@gentoo.org> added repaired
+ ebuild
*egcs64-sparc-19980921-r1 (09 Jul 2002)
diff --git a/sys-devel/egcs64-sparc/egcs64-sparc-19980921-r2.ebuild b/sys-devel/egcs64-sparc/egcs64-sparc-19980921-r2.ebuild
new file mode 100644
index 000000000000..319d59f65caa
--- /dev/null
+++ b/sys-devel/egcs64-sparc/egcs64-sparc-19980921-r2.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/egcs64-sparc/egcs64-sparc-19980921-r2.ebuild,v 1.1 2002/12/15 18:06:25 manson Exp $
+
+EGCSDATE=`echo $P| sed -e 's/egcs64-sparc-\([0-9]*\).*/\1/'`
+EGCSVER=2.92.11
+S=${WORKDIR}/egcs64-${EGCSDATE}
+DESCRIPTION=" crosscompiler for building kernels on sparc32"
+SRC_URI="http://ftp.us.debian.org/debian/dists/stable/main/source/devel/egcs64_${EGCSDATE}.orig.tar.gz"
+HOMEPAGE="http://www.rocklinux.de/projects/sparc/sparc.html"
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+KEYWORDS="sparc -x86 -ppc"
+
+#RDEPEND="virtual/glibc"
+#MYCHOST=`echo $CHOST | sed 's/sparc-/-/'`
+DEPEND="sys-devel/autoconf"
+
+MYPREFIX=/usr
+MYCHOST=sparc64-unknown-linux-gnu
+
+# Reset CFLAGS, gcc doesn't want that stuff
+CFLAGS=""
+CXXFLAGS="$CFLAGS"
+export CFLAGS CXXFLAGS
+
+src_unpack() {
+ unpack ${A}
+ cat ${FILESDIR}/egcs64_${EGCSDATE}-4.diff | patch -p0 -l || die
+ cat ${FILESDIR}/egcs64_${EGCSDATE}-4-gentoo.diff | patch -p0 -l || die
+}
+
+src_compile() {
+ unset CHOST
+ mkdir ${S}/build
+ cd ${S}/build
+ AR_FOR_TARGET=ar LIBGCC2_INCLUDES=-I/usr/include CC=gcc \
+ ../configure \
+ --prefix=${MYPREFIX} --mandir=${MYPREFIX}/share/man \
+ --infodir=${MYPREFIX}/share/info --enable-shared \
+ --enable-threads --enable-languages=c \
+ --enable-version-specific-runtime-libs $MYCHOST || die
+
+ #--prefix=${MYPREFIX} --with-local-prefix=${MYPREFIX}/local \
+ # Fix a weird problem where TARGET_CONFIGDIRS gets populated with the wrong
+ # thing for a kernel crosscompiler. Need to investigate.
+ mv Makefile Makefile.tmp
+ sed -e 's/[ ]*TARGET_CONFIGDIRS[ ]*=.*/TARGET_CONFIGDIRS = /' Makefile.tmp \
+ > Makefile
+
+ # Now make
+ make \
+ CFLAGS="-DHOST_WIDE_INT=long\ long -DHOST_BITS_PER_WIDE_INT=64" \
+ LANGUAGES=c TARGET_CONFIGDIRS="" \
+ cross || die
+
+}
+
+src_install() {
+
+ cd ${S}/build
+ dodir /${MYPREFIX}/{bin,lib,local} /${MYPREFIX}/doc/egcs64-${EGCSDATE}/gcc
+
+ cd gcc && make install \
+ prefix=${D}/${MYPREFIX} local_prefix=${D}/${MYPREFIX}/local \
+ includedir=${D}/${MYPREFIX}/local/include \
+ CFLAGS='-DHOST_WIDE_INT=long\ long -DHOST_BITS_PER_WIDE_INT=64' \
+ LANGUAGES=c || die
+
+ cd ${D}/${MYPREFIX}/bin
+ rm gcc gcj
+
+ cd ${S}
+ cp -a COPYING COPYING.LIB ChangeLog README MAINTAINERS \
+ ${D}/${MYPREFIX}/doc/egcs64-${EGCSDATE}
+ cd gcc
+ cp -a BUGS INSTALL LANGUAGES LITERATURE NEWS PROBLEMS PROJECTS \
+ README* SERVICE TESTS.FLUNK \
+ ${D}/${MYPREFIX}/doc/egcs64-${EGCSDATE}/gcc
+
+ # remove the stuff we don't need
+
+ cd ${D}/${MYPREFIX}
+ rm -rf info man
+ cd ${D}/${MYPREFIX}/bin
+ mv sparc64-unknown-linux-gnu-gcc egcs-${EGCSVER}
+ ln -s egcs-${EGCSVER} sparc64-unknown-linux-gnu-gcc
+ ln -s egcs-${EGCSVER} sparc64-unknown-linux-gcc
+ ln -s egcs-${EGCSVER} sparc64-linux-gcc
+ ln -s egcs-${EGCSVER} gcc64
+ ln -s egcs-${EGCSVER} egcs64
+ ln -s egcs-${EGCSVER} cc64
+}