summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-devel/gcc-sparc64/ChangeLog8
-rw-r--r--sys-devel/gcc-sparc64/Manifest23
-rw-r--r--sys-devel/gcc-sparc64/files/digest-gcc-sparc64-3.3.61
-rw-r--r--sys-devel/gcc-sparc64/files/gcc-3.3.6-gentoo-branding.patch18
-rw-r--r--sys-devel/gcc-sparc64/gcc-sparc64-3.3.6.ebuild124
5 files changed, 158 insertions, 16 deletions
diff --git a/sys-devel/gcc-sparc64/ChangeLog b/sys-devel/gcc-sparc64/ChangeLog
index a399e2394aa3..d2d8b5ec0090 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-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-sparc64/ChangeLog,v 1.22 2005/03/24 01:45:06 gustavoz Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-sparc64/ChangeLog,v 1.23 2005/06/08 00:46:55 gustavoz Exp $
+
+*gcc-sparc64-3.3.6 (08 Jun 2005)
+
+ 08 Jun 2005; Gustavo Zacarias <gustavoz@gentoo.org>
+ +files/gcc-3.3.6-gentoo-branding.patch, +gcc-sparc64-3.3.6.ebuild:
+ New and shiny release
23 Mar 2005; Gustavo Zacarias <gustavoz@gentoo.org>
-files/gcc-3.2.3-gentoo-branding.patch,
diff --git a/sys-devel/gcc-sparc64/Manifest b/sys-devel/gcc-sparc64/Manifest
index 4b6238ce18ec..8af2f2d78b98 100644
--- a/sys-devel/gcc-sparc64/Manifest
+++ b/sys-devel/gcc-sparc64/Manifest
@@ -1,20 +1,13 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 7e77e040f0b5745fee5fb4b99188190c gcc-sparc64-3.3.4.ebuild 3036
+MD5 f826fcca414fc0c05030db1f99e479d8 metadata.xml 360
+MD5 fa69d7c0935d106da19888475228bfca ChangeLog 4430
+MD5 d8f60acb8dc77f16d46a80b5f45e4d11 gcc-sparc64-3.3.6.ebuild 2923
MD5 35cac54faddd09f738952d6f680bdd09 gcc-sparc64-3.3.5.ebuild 3032
MD5 1607cfb772bdc7d3074413de8ae495b8 gcc-sparc64-3.4.3.ebuild 3253
-MD5 ae6c1f818a38af555dd18bf42ede91a8 ChangeLog 4248
-MD5 f826fcca414fc0c05030db1f99e479d8 metadata.xml 360
-MD5 5f8835c8de8d96466954796d2512a29b files/gcc-3.3.5-gentoo-branding.patch 874
+MD5 7e77e040f0b5745fee5fb4b99188190c gcc-sparc64-3.3.4.ebuild 3036
MD5 af241dd07c46bc5b0c2d54eac803f1f3 files/digest-gcc-sparc64-3.3.4 151
+MD5 2ca380cbcf0547fb5d2a671c1c0296de files/digest-gcc-sparc64-3.4.3 64
MD5 e411938ca2908079a2359fed5cb3b442 files/gcc-3.3.4-gentoo-branding.patch 874
MD5 595fc5d3e417d76d1f7e7f0a8439535a files/digest-gcc-sparc64-3.3.5 64
-MD5 2ca380cbcf0547fb5d2a671c1c0296de files/digest-gcc-sparc64-3.4.3 64
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
-
-iD8DBQFCQhvKKRy60XGEcJIRAr96AJ48Rs/SA5yXov5J6UcS+3NFtuwjOgCgmEXd
-Yg2Bh/AjqKh35hQNpM54U60=
-=C4Lx
------END PGP SIGNATURE-----
+MD5 5f8835c8de8d96466954796d2512a29b files/gcc-3.3.5-gentoo-branding.patch 874
+MD5 bffc563ab83f8025f3e477286ece2e65 files/gcc-3.3.6-gentoo-branding.patch 874
+MD5 79ef0db9c6e9750aa92334dded832283 files/digest-gcc-sparc64-3.3.6 64
diff --git a/sys-devel/gcc-sparc64/files/digest-gcc-sparc64-3.3.6 b/sys-devel/gcc-sparc64/files/digest-gcc-sparc64-3.3.6
new file mode 100644
index 000000000000..9d58c1ef93ca
--- /dev/null
+++ b/sys-devel/gcc-sparc64/files/digest-gcc-sparc64-3.3.6
@@ -0,0 +1 @@
+MD5 6936616a967da5a0b46f1e7424a06414 gcc-3.3.6.tar.bz2 23972413
diff --git a/sys-devel/gcc-sparc64/files/gcc-3.3.6-gentoo-branding.patch b/sys-devel/gcc-sparc64/files/gcc-3.3.6-gentoo-branding.patch
new file mode 100644
index 000000000000..c2177a3fc751
--- /dev/null
+++ b/sys-devel/gcc-sparc64/files/gcc-3.3.6-gentoo-branding.patch
@@ -0,0 +1,18 @@
+diff -Naurp gcc-3.3.orig/gcc/version.c gcc-3.3/gcc/version.c
+--- gcc-3.3.orig/gcc/version.c 2003-05-13 17:26:03.000000000 -0400
++++ gcc-3.3/gcc/version.c 2003-05-16 14:35:08.000000000 -0400
+@@ -6,7 +6,7 @@
+ please modify this string to indicate that, e.g. by putting your
+ organization's name in parentheses at the end of the string. */
+
+-const char version_string[] = "3.3.6";
++const char version_string[] = "3.3.6 @GENTOO@";
+
+ /* This is the location of the online document giving instructions for
+ reporting bugs. If you distribute a modified version of GCC,
+@@ -15,4 +15,4 @@ const char version_string[] = "3.3";
+ forward us bugs reported to you, if you determine that they are
+ not bugs in your modifications.) */
+
+-const char bug_report_url[] = "<URL:http://gcc.gnu.org/bugs.html>";
++const char bug_report_url[] = "<URL:http://bugs.gentoo.org/>";
diff --git a/sys-devel/gcc-sparc64/gcc-sparc64-3.3.6.ebuild b/sys-devel/gcc-sparc64/gcc-sparc64-3.3.6.ebuild
new file mode 100644
index 000000000000..abd2edd12c5a
--- /dev/null
+++ b/sys-devel/gcc-sparc64/gcc-sparc64-3.3.6.ebuild
@@ -0,0 +1,124 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-sparc64/gcc-sparc64-3.3.6.ebuild,v 1.1 2005/06/08 00:46:55 gustavoz Exp $
+
+# Variables
+inherit eutils flag-o-matic
+MYARCH="$(echo ${PN} | cut -d- -f2)"
+TMP_P="${P/-${MYARCH}/}"
+TMP_PN="${PN/-${MYARCH}/}"
+I="/usr"
+S="${WORKDIR}/${P}"
+BRANCH_UPDATE=""
+
+DESCRIPTION="Sparc64 Kernel Compiler"
+HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
+SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${TMP_P}/${TMP_P}.tar.bz2"
+# mirror://gentoo/${TMP_P}-branch-update-${BRANCH_UPDATE}.patch.bz2"
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+
+KEYWORDS="~sparc"
+
+DEPEND="virtual/libc
+ >=sys-devel/binutils-2.14.90.0.7
+ >=sys-devel/gcc-config-1.3.1
+ !sys-devel/egcs64-sparc"
+
+RDEPEND="virtual/libc
+ >=sys-devel/gcc-config-1.3.1
+ >=sys-libs/zlib-1.1.4
+ >=sys-apps/texinfo-4.2-r4
+ !build? ( >=sys-libs/ncurses-5.2-r2 )"
+
+
+
+version_patch() {
+ [ ! -f "$1" ] && return 1
+ [ -z "$2" ] && return 1
+
+ sed -e "s:@GENTOO@:$2:g" ${1} > ${T}/${1##*/}
+ epatch ${T}/${1##*/}
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${WORKDIR}
+ ln -s ${TMP_P} ${P}
+ cd ${S}
+
+# # Patch in Branch update
+# epatch ${WORKDIR}/${TMP_P}-branch-update-${BRANCH_UPDATE}.patch
+
+ # Make gcc's version info specific to Gentoo
+ if [ -z "${PP_VER}" ]; then
+ version_patch ${FILESDIR}/${TMP_P}-gentoo-branding.patch \
+ "${BRANCH_UPDATE} (Gentoo Linux ${PVR})" || die "Failed Branding"
+ fi
+}
+
+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-gnu"
+ fi
+
+ addwrite "/dev/zero"
+ ${S}/configure --prefix=${I} \
+ --disable-shared \
+ --disable-multilib \
+ --target=${MYARCH}-unknown-linux-gnu \
+ --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" \
+ make prefix=${D}${I} \
+ FAKE_ROOT="${D}" \
+ install || die
+
+ cd ${D}${I}/bin
+ ln -s ${MYARCH}-unknown-linux-gnu-gcc gcc64
+ ln -s ${MYARCH}-unknown-linux-gnu-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 "alias ${MYARCH}make=\"make ARCH=${MYARCH} CROSS_COMPILE=${MYARCH}-unknown-linux-gnu-\""
+ 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
+}