diff options
author | Ryan Hill <dirtyepic@gentoo.org> | 2012-03-10 19:32:33 +0000 |
---|---|---|
committer | Ryan Hill <dirtyepic@gentoo.org> | 2012-03-10 19:32:33 +0000 |
commit | bcac6cbf9318b4045f6a198d39add1a56e569a9d (patch) | |
tree | 2f1f88dae14ce2a40ed9ab41c2254d8b543c2735 /eclass/toolchain.eclass | |
parent | Restrict *-jython as per comment from Arfrever. (diff) | |
download | gentoo-2-bcac6cbf9318b4045f6a198d39add1a56e569a9d.tar.gz gentoo-2-bcac6cbf9318b4045f6a198d39add1a56e569a9d.tar.bz2 gentoo-2-bcac6cbf9318b4045f6a198d39add1a56e569a9d.zip |
Tweak live ebuild bits.
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index f8e0e7cf5c0c..c16d8f877b36 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.525 2012/03/10 17:49:56 dirtyepic Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.526 2012/03/10 19:32:33 dirtyepic Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -15,7 +15,7 @@ if [[ ${PV} == *9999* ]] ; then EGIT_REPO_URI="git://gcc.gnu.org/git/gcc.git" # naming style: # gcc-9999 -> master - # gcc-4.7_pre9999 -> 4.7 branch + # gcc-4.7_pre9999 -> gcc-4_7-branch if [[ ${PV} == *_pre9999* ]] ; then EGIT_BRANCH="${PN}-${PV%_pre9999}-branch" EGIT_BRANCH=${EGIT_BRANCH//./_} @@ -189,6 +189,8 @@ S=$( echo ${WORKDIR}/gcc-${PRERELEASE} elif [[ -n ${SNAPSHOT} ]] ; then echo ${WORKDIR}/gcc-${SNAPSHOT} + elif [[ ${GCC_PV} == *9999* ]] ; then + echo ${WORKDIR}/${P} else echo ${WORKDIR}/gcc-${GCC_RELEASE_VER} fi @@ -714,14 +716,11 @@ do_gcc_rename_java_bins() { done } toolchain_src_unpack() { - [[ ${PV} == *9999* ]] && git-2_src_unpack - - export BRANDING_GCC_PKGVERSION="Gentoo ${GCC_PVR}" - [[ -z ${UCLIBC_VER} ]] && [[ ${CTARGET} == *-uclibc* ]] && die "Sorry, this version does not support uClibc" - gcc_quick_unpack + [[ ${PV} == *9999* ]] && git-2_src_unpack || gcc_quick_unpack + export BRANDING_GCC_PKGVERSION="Gentoo ${GCC_PVR}" cd "${S}" if ! use vanilla ; then @@ -764,7 +763,7 @@ toolchain_src_unpack() { gcc_version_patch if tc_version_is_at_least 4.1 ; then - if [[ -n ${SNAPSHOT} || -n ${PRERELEASE} || -n ${GCC_SVN} ]] ; then + if [[ -n ${SNAPSHOT} || -n ${PRERELEASE} ]] ; then echo ${PV/_/-} > "${S}"/gcc/BASE-VER fi fi |