diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-06-28 12:55:51 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-06-28 12:55:51 +0000 |
commit | 4282e3d37f730a2c2ce2dc653b42c19b6ace07c0 (patch) | |
tree | f25b2e9d34a094e68470bf134754b20ff9610d52 /eclass | |
parent | Version bump (diff) | |
download | gentoo-2-4282e3d37f730a2c2ce2dc653b42c19b6ace07c0.tar.gz gentoo-2-4282e3d37f730a2c2ce2dc653b42c19b6ace07c0.tar.bz2 gentoo-2-4282e3d37f730a2c2ce2dc653b42c19b6ace07c0.zip |
add ~vapier/dist to the patch URIs as a fallback
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain-binutils.eclass | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass index da3df8eab33f..ea97176bcfd2 100644 --- a/eclass/toolchain-binutils.eclass +++ b/eclass/toolchain-binutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.73 2007/06/19 06:47:31 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.74 2007/06/28 12:55:51 vapier Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> # @@ -60,12 +60,15 @@ case ${BTYPE} in mirror://kernel/linux/devel/binutils/test/binutils-${PV}.tar.bz2 mirror://gnu/binutils/binutils-${PV}.tar.bz2" esac -[[ -n ${PATCHVER} ]] && \ - SRC_URI="${SRC_URI} mirror://gentoo/binutils-${PV}-patches-${PATCHVER}.tar.bz2" -[[ -n ${UCLIBC_PATCHVER} ]] && \ - SRC_URI="${SRC_URI} mirror://gentoo/binutils-${PV}-uclibc-patches-${UCLIBC_PATCHVER}.tar.bz2" -[[ -n ${ELF2FLT_VER} ]] && \ - SRC_URI="${SRC_URI} mirror://gentoo/elf2flt-${ELF2FLT_VER}.tar.bz2" +add_src_uri() { + [[ -z $2 ]] && return + local a=$1 + set -- mirror://gentoo http://dev.gentoo.org/~vapier/dist + SRC_URI="${SRC_URI} ${@/%//${a}}" +} +add_src_uri binutils-${PV}-patches-${PATCHVER}.tar.bz2 ${PATCHVER} +add_src_uri binutils-${PV}-uclibc-patches-${UCLIBC_PATCHVER}.tar.bz2 ${UCLIBC_PATCHVER} +add_src_uri elf2flt-${ELF2FLT_VER}.tar.bz2 ${ELF2FLT_VER} LICENSE="|| ( GPL-2 LGPL-2 )" IUSE="nls multitarget multislot test vanilla" |