From 684dd26ea9ecad5e5cf785191df7cac0fbaaed98 Mon Sep 17 00:00:00 2001 From: Rodney Rees Date: Sun, 15 Dec 2002 18:06:25 +0000 Subject: upload ebuild corrected by Alron --- sys-devel/egcs64-sparc/ChangeLog | 6 +- .../egcs64-sparc/egcs64-sparc-19980921-r2.ebuild | 93 ++++++++++++++++++++++ 2 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 sys-devel/egcs64-sparc/egcs64-sparc-19980921-r2.ebuild (limited to 'sys-devel/egcs64-sparc') 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 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 +} -- cgit v1.2.3-65-gdbad