diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-03-04 05:40:27 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-03-04 05:40:27 +0000 |
commit | 007d34cfa38dd06686b5b49b2ef3e620c3253de7 (patch) | |
tree | 7b13050c85061d44970d5b9977df3c4c93dca773 /eclass | |
parent | Fix x11-xft 0.3 compile with ghc 7.4.1 (diff) | |
download | historical-007d34cfa38dd06686b5b49b2ef3e620c3253de7.tar.gz historical-007d34cfa38dd06686b5b49b2ef3e620c3253de7.tar.bz2 historical-007d34cfa38dd06686b5b49b2ef3e620c3253de7.zip |
initial live git support
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 09792c6a003d..a45e80832a78 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.522 2012/03/03 22:42:47 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.523 2012/03/04 05:40:27 vapier Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -11,6 +11,18 @@ RESTRICT="strip" # cross-compilers need controlled stripping inherit eutils versionator libtool toolchain-funcs flag-o-matic gnuconfig multilib fixheadtails pax-utils +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 + if [[ ${PV} == *_pre9999* ]] ; then + EGIT_BRANCH="${PN}_${PV%_pre9999}_branch" + EGIT_BRANCH=${EGIT_BRANCH//./_} + fi + inherit git-2 +fi + EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_test pkg_preinst src_install pkg_postinst pkg_prerm pkg_postrm DESCRIPTION="The GNU Compiler Collection" @@ -702,11 +714,13 @@ 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" - [[ -z ${GCC_SVN} ]] && gcc_quick_unpack + gcc_quick_unpack cd "${S}" @@ -1691,7 +1705,7 @@ gcc_quick_unpack() { unpack gcc-${PRERELEASE}.tar.bz2 elif [[ -n ${SNAPSHOT} ]] ; then unpack gcc-${SNAPSHOT}.tar.bz2 - else + elif [[ ${PV} != *9999* ]] ; then unpack gcc-${GCC_RELEASE_VER}.tar.bz2 # We want branch updates to be against a release tarball if [[ -n ${BRANCH_UPDATE} ]] ; then |