summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavoz@gentoo.org>2006-08-11 14:45:35 +0000
committerGustavo Zacarias <gustavoz@gentoo.org>2006-08-11 14:45:35 +0000
commit18012523f5c6737a9ede441e86553136e8cefe5a (patch)
tree4e27dde88f1974bf1f1218d309916fbb59ea14cf /sys-devel/gcc-sparc64
parentAdded a check for clearsilver being built with USE=python. Resolves bug #143572. (diff)
downloadgentoo-2-18012523f5c6737a9ede441e86553136e8cefe5a.tar.gz
gentoo-2-18012523f5c6737a9ede441e86553136e8cefe5a.tar.bz2
gentoo-2-18012523f5c6737a9ede441e86553136e8cefe5a.zip
Adding 4.0.3 for testing purposes
(Portage version: 2.1-r2)
Diffstat (limited to 'sys-devel/gcc-sparc64')
-rw-r--r--sys-devel/gcc-sparc64/ChangeLog8
-rw-r--r--sys-devel/gcc-sparc64/files/digest-gcc-sparc64-4.0.33
-rw-r--r--sys-devel/gcc-sparc64/gcc-sparc64-4.0.3.ebuild137
3 files changed, 147 insertions, 1 deletions
diff --git a/sys-devel/gcc-sparc64/ChangeLog b/sys-devel/gcc-sparc64/ChangeLog
index bdad9dc7eae8..6cf5f2af9abc 100644
--- a/sys-devel/gcc-sparc64/ChangeLog
+++ b/sys-devel/gcc-sparc64/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-devel/gcc-sparc64
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-sparc64/ChangeLog,v 1.35 2006/08/02 14:37:07 gustavoz Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-sparc64/ChangeLog,v 1.36 2006/08/11 14:45:35 gustavoz Exp $
+
+*gcc-sparc64-4.0.3 (11 Aug 2006)
+
+ 11 Aug 2006; Gustavo Zacarias <gustavoz@gentoo.org>
+ +gcc-sparc64-4.0.3.ebuild:
+ Adding 4.0.3 for testing purposes
02 Aug 2006; Gustavo Zacarias <gustavoz@gentoo.org>
gcc-sparc64-3.3.5.ebuild, gcc-sparc64-3.3.6.ebuild,
diff --git a/sys-devel/gcc-sparc64/files/digest-gcc-sparc64-4.0.3 b/sys-devel/gcc-sparc64/files/digest-gcc-sparc64-4.0.3
new file mode 100644
index 000000000000..2a638aa66f2d
--- /dev/null
+++ b/sys-devel/gcc-sparc64/files/digest-gcc-sparc64-4.0.3
@@ -0,0 +1,3 @@
+MD5 a684c71fc8891fc2c5ef4df3982ffb61 gcc-4.0.3.tar.bz2 370397
+RMD160 3c4af862e5ff350b9d4e9b45ad5d457d2a1d01ab gcc-4.0.3.tar.bz2 370397
+SHA256 2d38ceb262ba3b88b9eff2f3cf1908e7bbb6909553f049236f41f338f98f8a75 gcc-4.0.3.tar.bz2 370397
diff --git a/sys-devel/gcc-sparc64/gcc-sparc64-4.0.3.ebuild b/sys-devel/gcc-sparc64/gcc-sparc64-4.0.3.ebuild
new file mode 100644
index 000000000000..4d05cb014d76
--- /dev/null
+++ b/sys-devel/gcc-sparc64/gcc-sparc64-4.0.3.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-sparc64/gcc-sparc64-4.0.3.ebuild,v 1.1 2006/08/11 14:45:35 gustavoz Exp $
+
+inherit eutils flag-o-matic
+
+# Variables
+MYARCH="$(echo ${PN} | cut -d- -f2)"
+TMP_P="${P/-${MYARCH}/}"
+TMP_PN="${PN/-${MYARCH}/}"
+I="/usr"
+BRANCH_UPDATE=""
+
+DESCRIPTION="SPARC64 Kernel Compiler (Experimental)"
+HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
+
+SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${TMP_P}/${TMP_P}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+
+KEYWORDS="~sparc"
+
+DEPEND="virtual/libc
+ >=sys-devel/binutils-2.16.1
+ || ( app-admin/eselect-compiler >=sys-devel/gcc-config-1.3.13-r2 )"
+
+RDEPEND="virtual/libc
+ || ( app-admin/eselect-compiler >=sys-devel/gcc-config-1.3.13-r2 )
+ >=sys-libs/zlib-1.1.4
+ >=sys-apps/texinfo-4.2-r4
+ >=sys-libs/ncurses-5.2-r2"
+
+# Ripped from toolchain.eclass
+gcc_version_patch() {
+ [ -z "$1" ] && die "no arguments to gcc_version_patch"
+
+ sed -i -e 's~\(const char version_string\[\] = ".....\).*\(".*\)~\1 @GENTOO@\2~' ${S}/gcc/version.c || die "failed to add @GENTOO@"
+ sed -i -e "s:@GENTOO@:$1:g" ${S}/gcc/version.c || die "failed to patch version"
+ sed -i -e 's~http:\/\/gcc\.gnu\.org\/bugs\.html~http:\/\/bugs\.gentoo\.org\/~' ${S}/gcc/version.c || die "failed to update bugzilla URL"
+}
+
+pkg_setup() {
+ # glibc or uclibc?
+ if use elibc_glibc; then
+ MYUSERLAND="gnu"
+ elif use elibc_uclibc; then
+ MYUSERLAND="uclibc"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${WORKDIR}
+ ln -s ${TMP_P} ${P}
+ cd ${S}
+
+ # Patch in Branch update
+ if [ ! -z "${BRANCH_UPDATE}" ]; then
+ epatch ${WORKDIR}/${TMP_P}-branch-update-${BRANCH_UPDATE}.patch
+ fi
+
+ # Make gcc's version info specific to Gentoo
+ gcc_version_patch "(Gentoo Linux ${PVR})"
+}
+
+src_compile() {
+ cd ${WORKDIR}
+ ln -s ${TMP_P} ${P}
+
+ append-flags "-Dinhibit_libc"
+
+ # Build in a separate build tree
+ mkdir -p ${WORKDIR}/build
+ cd ${WORKDIR}/build
+
+ einfo "Configuring GCC..."
+ if [ "`uname -m | grep 64`" ]; then
+ myconf="${myconf} --host=${MYARCH/64/}-unknown-linux-${MYUSERLAND}"
+ fi
+
+ addwrite "/dev/zero"
+ ${S}/configure --prefix=${I} \
+ --disable-shared \
+ --disable-multilib \
+ --disable-libssp \
+ --disable-libmudflap \
+ --disable-libgcj \
+ --disable-bootstrap \
+ --disable-nls \
+ --target=${MYARCH}-unknown-linux-${MYUSERLAND} \
+ --enable-languages=c \
+ --enable-threads=single \
+ ${myconf} || die
+
+ einfo "Building GCC..."
+ S="${WORKDIR}/build" \
+ emake CFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ # Do allow symlinks in ${I}/lib/gcc-lib/${CHOST}/${PV}/include as
+ # this can break the build.
+ for x in cd ${WORKDIR}/build/gcc/include/*
+ do
+ if [ -L ${x} ]
+ then
+ rm -f ${x}
+ fi
+ done
+
+ einfo "Installing GCC..."
+ # Do the 'make install' from the build directory
+ cd ${WORKDIR}/build
+ S="${WORKDIR}/build" \
+ emake prefix=${D}${I} \
+ FAKE_ROOT="${D}" \
+ install || die
+
+ cd ${D}${I}/bin
+ ln -s ${MYARCH}-unknown-linux-${MYUSERLAND}-gcc gcc64
+ ln -s ${MYARCH}-unknown-linux-${MYUSERLAND}-gcc ${MYARCH}-linux-gcc
+}
+
+pkg_postinst() {
+ einfo ""
+ einfo "To facilitate an easier kernel build, you may wish to add the following line to your profile:"
+ einfo ""
+ einfo "For 2.6.x kernel builds:"
+ einfo "alias ${MYARCH}make=\"make ARCH=${MYARCH/64/} CROSS_COMPILE=${MYARCH}-unknown-linux-${MYUSERLAND}-\""
+ einfo ""
+ einfo "Then to compile a kernel, simply goto the kernel source directory, and issue:"
+ einfo "${MYARCH}make <target>"
+ einfo "Where <target> is one of the usual kernel targets"
+ einfo ""
+ epause 10
+}