summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Kinard <kumba@gentoo.org>2004-11-11 09:19:04 +0000
committerJoshua Kinard <kumba@gentoo.org>2004-11-11 09:19:04 +0000
commit16cc76c176a0cd54a977a6f8d284cd29d3998e8f (patch)
tree3b78004bcc51f9dea407f42947475a98d43316a6 /sys-devel
parentMasking gcc-sparc64-3.4.x on old profiles. Use gcc34 testing cascade profile... (diff)
downloadgentoo-2-16cc76c176a0cd54a977a6f8d284cd29d3998e8f.tar.gz
gentoo-2-16cc76c176a0cd54a977a6f8d284cd29d3998e8f.tar.bz2
gentoo-2-16cc76c176a0cd54a977a6f8d284cd29d3998e8f.zip
Added ebuild for gcc-sparc64-3.4.3.
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/gcc-sparc64/ChangeLog7
-rw-r--r--sys-devel/gcc-sparc64/Manifest4
-rw-r--r--sys-devel/gcc-sparc64/files/digest-gcc-sparc64-3.4.31
-rw-r--r--sys-devel/gcc-sparc64/gcc-sparc64-3.4.3.ebuild125
4 files changed, 135 insertions, 2 deletions
diff --git a/sys-devel/gcc-sparc64/ChangeLog b/sys-devel/gcc-sparc64/ChangeLog
index ebc563df8bbb..11f8de4554d5 100644
--- a/sys-devel/gcc-sparc64/ChangeLog
+++ b/sys-devel/gcc-sparc64/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-devel/gcc-sparc64
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-sparc64/ChangeLog,v 1.15 2004/10/04 20:24:59 kumba Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-sparc64/ChangeLog,v 1.16 2004/11/11 09:19:04 kumba Exp $
+
+*gcc-sparc64-3.4.3 (11 Nov 2004)
+
+ 11 Nov 2004; Joshua Kinard <kumba@gentoo.org> +gcc-sparc64-3.4.3.ebuild:
+ Added ebuild for gcc-sparc64-3.4.3.
04 Oct 2004; Joshua Kinard <kumba@gentoo.org> gcc-sparc64-3.2.3.ebuild,
gcc-sparc64-3.3.1.ebuild, gcc-sparc64-3.3.2.ebuild,
diff --git a/sys-devel/gcc-sparc64/Manifest b/sys-devel/gcc-sparc64/Manifest
index 0500deecb5b0..10176d616c31 100644
--- a/sys-devel/gcc-sparc64/Manifest
+++ b/sys-devel/gcc-sparc64/Manifest
@@ -1,10 +1,11 @@
-MD5 f2afbcf61210c9445caad6beac7e75e8 ChangeLog 2836
+MD5 c4e1fc65187dfd2c381c1b4d211a050c ChangeLog 2984
MD5 3a6b81a4ef301bd06b8b166474ba1cb2 gcc-sparc64-3.2.3.ebuild 2854
MD5 22dcdb0f5c2e2cf24c2337db48ee8c29 gcc-sparc64-3.3.1.ebuild 2855
MD5 a72d13fe09f14711678ea2457dc74ce3 gcc-sparc64-3.3.2.ebuild 2855
MD5 56ec319c41416c7d7f9621b222002850 gcc-sparc64-3.3.3.ebuild 3040
MD5 2c25aa917b2a178db94ac8c37e6d8c62 gcc-sparc64-3.3.4.ebuild 3048
MD5 f826fcca414fc0c05030db1f99e479d8 metadata.xml 360
+MD5 95b39dd1e94e094a66decdaec548e9ba gcc-sparc64-3.4.3.ebuild 3143
MD5 098c115531e90608348818f9bdb3faac files/digest-gcc-sparc64-3.2.3 64
MD5 12e3974934d4a83bf4540c3e0592b226 files/digest-gcc-sparc64-3.3.1 64
MD5 006481ae255582fae4fa22107dfb359e files/digest-gcc-sparc64-3.3.2 64
@@ -15,3 +16,4 @@ MD5 d3e53318166d71a05d2b51bd44502270 files/gcc-3.3.1-gentoo-branding.patch 874
MD5 d9ae122db2768f8e504dfef256d4991f files/gcc-3.3.2-gentoo-branding.patch 874
MD5 cd87c02e4896f47bf6029eef0dc29468 files/gcc-3.3.3-gentoo-branding.patch 874
MD5 e411938ca2908079a2359fed5cb3b442 files/gcc-3.3.4-gentoo-branding.patch 874
+MD5 2ca380cbcf0547fb5d2a671c1c0296de files/digest-gcc-sparc64-3.4.3 64
diff --git a/sys-devel/gcc-sparc64/files/digest-gcc-sparc64-3.4.3 b/sys-devel/gcc-sparc64/files/digest-gcc-sparc64-3.4.3
new file mode 100644
index 000000000000..a7535796098b
--- /dev/null
+++ b/sys-devel/gcc-sparc64/files/digest-gcc-sparc64-3.4.3
@@ -0,0 +1 @@
+MD5 e744b30c834360fccac41eb7269a3011 gcc-3.4.3.tar.bz2 27425338
diff --git a/sys-devel/gcc-sparc64/gcc-sparc64-3.4.3.ebuild b/sys-devel/gcc-sparc64/gcc-sparc64-3.4.3.ebuild
new file mode 100644
index 000000000000..19f0740638bc
--- /dev/null
+++ b/sys-devel/gcc-sparc64/gcc-sparc64-3.4.3.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2004 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.4.3.ebuild,v 1.1 2004/11/11 09:19:04 kumba 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"
+
+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 )"
+
+
+# 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"
+}
+
+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-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
+}