diff options
author | Joshua Kinard <kumba@gentoo.org> | 2004-11-11 09:02:34 +0000 |
---|---|---|
committer | Joshua Kinard <kumba@gentoo.org> | 2004-11-11 09:02:34 +0000 |
commit | 3f3ee16694824a9efcf7fa88fed2ff1ab55a2b41 (patch) | |
tree | c60904edeea1fa75d8c18854a0f800d20705d4a5 /sys-devel/gcc-mips64 | |
parent | Removing sed from global context. Version bump. (diff) | |
download | historical-3f3ee16694824a9efcf7fa88fed2ff1ab55a2b41.tar.gz historical-3f3ee16694824a9efcf7fa88fed2ff1ab55a2b41.tar.bz2 historical-3f3ee16694824a9efcf7fa88fed2ff1ab55a2b41.zip |
Added ebuild for gcc-mips64-3.4.3.
Diffstat (limited to 'sys-devel/gcc-mips64')
-rw-r--r-- | sys-devel/gcc-mips64/ChangeLog | 7 | ||||
-rw-r--r-- | sys-devel/gcc-mips64/Manifest | 26 | ||||
-rw-r--r-- | sys-devel/gcc-mips64/files/digest-gcc-mips64-3.4.3 | 1 | ||||
-rw-r--r-- | sys-devel/gcc-mips64/gcc-mips64-3.4.3.ebuild | 125 |
4 files changed, 141 insertions, 18 deletions
diff --git a/sys-devel/gcc-mips64/ChangeLog b/sys-devel/gcc-mips64/ChangeLog index 2065a79ff3fd..d6e31c11d10a 100644 --- a/sys-devel/gcc-mips64/ChangeLog +++ b/sys-devel/gcc-mips64/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-devel/gcc-mips64 # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-mips64/ChangeLog,v 1.8 2004/09/06 20:52:48 ciaranm Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-mips64/ChangeLog,v 1.9 2004/11/11 09:02:34 kumba Exp $ + +*gcc-mips64-3.4.3 (11 Nov 2004) + + 11 Nov 2004; Joshua Kinard <kumba@gentoo.org> +gcc-mips64-3.4.3.ebuild: + Added ebuild for gcc-mips64-3.4.3. 06 Sep 2004; Ciaran McCreesh <ciaranm@gentoo.org> gcc-mips64-3.3.1.ebuild, gcc-mips64-3.3.2.ebuild, gcc-mips64-3.3.3.ebuild, gcc-mips64-3.3.4.ebuild: diff --git a/sys-devel/gcc-mips64/Manifest b/sys-devel/gcc-mips64/Manifest index b434755ec818..9f570f3c9c02 100644 --- a/sys-devel/gcc-mips64/Manifest +++ b/sys-devel/gcc-mips64/Manifest @@ -1,24 +1,16 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 35af39790a46eadbc3ab765ce79da704 ChangeLog 1558 -MD5 74e155958434ec896c6aa0936ae76b90 gcc-mips64-3.3.3.ebuild 3015 +MD5 746d37d5900ced04c91a96cc7a1e69a5 ChangeLog 1701 MD5 ce3b722744cc3a4d611e9d12a17a7785 gcc-mips64-3.3.1.ebuild 2827 -MD5 efda60760635b5f29e31a8f730a73086 metadata.xml 364 -MD5 d4bdfdc3a2fbed1fc2768dc179ee6d71 gcc-mips64-3.3.4.ebuild 3023 MD5 5a5a6ad56fe1d1ce71f555c7195c37e5 gcc-mips64-3.3.2.ebuild 2827 +MD5 74e155958434ec896c6aa0936ae76b90 gcc-mips64-3.3.3.ebuild 3015 +MD5 d4bdfdc3a2fbed1fc2768dc179ee6d71 gcc-mips64-3.3.4.ebuild 3023 +MD5 efda60760635b5f29e31a8f730a73086 metadata.xml 364 +MD5 b75c3872c37a19516a9b9123272e8ff8 gcc-mips64-3.4.3.ebuild 3261 +MD5 12e3974934d4a83bf4540c3e0592b226 files/digest-gcc-mips64-3.3.1 64 MD5 006481ae255582fae4fa22107dfb359e files/digest-gcc-mips64-3.3.2 64 MD5 6c081be1d52e43fcf80a52040e7c3312 files/digest-gcc-mips64-3.3.3 151 -MD5 d9ae122db2768f8e504dfef256d4991f files/gcc-3.3.2-gentoo-branding.patch 874 +MD5 af241dd07c46bc5b0c2d54eac803f1f3 files/digest-gcc-mips64-3.3.4 151 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 12e3974934d4a83bf4540c3e0592b226 files/digest-gcc-mips64-3.3.1 64 MD5 e411938ca2908079a2359fed5cb3b442 files/gcc-3.3.4-gentoo-branding.patch 874 -MD5 af241dd07c46bc5b0c2d54eac803f1f3 files/digest-gcc-mips64-3.3.4 151 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.2.4 (GNU/Linux) - -iD8DBQFBPM16LLFUmVNQ7rkRAmQnAJ4/baR9uvI64PHkE/zRFIny7CD7SACeOd57 -+ZwAMw1JUZWh7Fx18bpZ4VI= -=yP0m ------END PGP SIGNATURE----- +MD5 2ca380cbcf0547fb5d2a671c1c0296de files/digest-gcc-mips64-3.4.3 64 diff --git a/sys-devel/gcc-mips64/files/digest-gcc-mips64-3.4.3 b/sys-devel/gcc-mips64/files/digest-gcc-mips64-3.4.3 new file mode 100644 index 000000000000..a7535796098b --- /dev/null +++ b/sys-devel/gcc-mips64/files/digest-gcc-mips64-3.4.3 @@ -0,0 +1 @@ +MD5 e744b30c834360fccac41eb7269a3011 gcc-3.4.3.tar.bz2 27425338 diff --git a/sys-devel/gcc-mips64/gcc-mips64-3.4.3.ebuild b/sys-devel/gcc-mips64/gcc-mips64-3.4.3.ebuild new file mode 100644 index 000000000000..55c1a238dc23 --- /dev/null +++ b/sys-devel/gcc-mips64/gcc-mips64-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-mips64/gcc-mips64-3.4.3.ebuild,v 1.1 2004/11/11 09:02:34 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="Mips64 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" +# mirror://gentoo/${TMP_P}-branch-update-${BRANCH_UPDATE}.patch.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" + +KEYWORDS="~mips" + +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 +} |