diff options
author | Travis Tilley <lv@gentoo.org> | 2004-11-25 21:34:15 +0000 |
---|---|---|
committer | Travis Tilley <lv@gentoo.org> | 2004-11-25 21:34:15 +0000 |
commit | 8ed099f4ff547bb969171f7a4d8f02fa18fb70ec (patch) | |
tree | 19953aced8f1a6e2cd3bf514da5f716a8ada4c8f | |
parent | Added support for the ssl USE flag. Removed old ebuild. (diff) | |
download | historical-8ed099f4ff547bb969171f7a4d8f02fa18fb70ec.tar.gz historical-8ed099f4ff547bb969171f7a4d8f02fa18fb70ec.tar.bz2 historical-8ed099f4ff547bb969171f7a4d8f02fa18fb70ec.zip |
allow using patch tarballs for previous gcc releases
-rw-r--r-- | eclass/toolchain.eclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index a6fe4fdd0203..5782422a3fc6 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.54 2004/11/25 19:28:28 lv Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.55 2004/11/25 21:34:15 lv Exp $ HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html" @@ -160,9 +160,10 @@ gcc_get_s_dir() { # has a _pre suffix. # # PATCH_VER +# PATCH_GCC_VER # This should be set to the version of the gentoo patch tarball. # The resulting filename of this tarball will be: -# ${P}-patches-${PATCH_VER}.tar.bz2 +# ${PN}-${PATCH_GCC_VER:=${PV}}-patches-${PATCH_VER}.tar.bz2 # # PIE_VER # PIE_CORE @@ -245,7 +246,7 @@ get_gcc_src_uri() { # various gentoo patches if [ -n "${PATCH_VER}" ] ; then GCC_SRC_URI="${GCC_SRC_URI} - ${GENTOO_TOOLCHAIN_BASE_URI}/${P}-patches-${PATCH_VER}.tar.bz2" + ${GENTOO_TOOLCHAIN_BASE_URI}/${PN}-${PATCH_GCC_VER:=${PV}}-patches-${PATCH_VER}.tar.bz2" fi # strawberry pie, Cappuccino and a Gauloises @@ -663,7 +664,7 @@ gcc_quick_unpack() { if [ -n "${PATCH_VER}" ] then - unpack ${P}-patches-${PATCH_VER}.tar.bz2 + unpack ${PN}-${PATCH_GCC_VER:=${PV}}-patches-${PATCH_VER}.tar.bz2 fi if [ -n "${PP_VER}" ] |