summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-31 11:05:05 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-31 11:05:05 +0000
commit619e4b10f856467bbef10cb1947c377685c183b3 (patch)
treeb25611ebb52d59605c767f609ac8fc52c36f3c11 /eclass
parentsh love (diff)
downloadgentoo-2-619e4b10f856467bbef10cb1947c377685c183b3.tar.gz
gentoo-2-619e4b10f856467bbef10cb1947c377685c183b3.tar.bz2
gentoo-2-619e4b10f856467bbef10cb1947c377685c183b3.zip
allow more flexibility in binutils type/version control from ebuilds
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain-binutils.eclass23
1 files changed, 16 insertions, 7 deletions
diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass
index ba360b91756e..b4d17513683b 100644
--- a/eclass/toolchain-binutils.eclass
+++ b/eclass/toolchain-binutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.50 2005/12/09 03:10:04 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.51 2005/12/31 11:05:05 vapier Exp $
# We install binutils into CTARGET-VERSION specific directories. This lets
# us easily merge multiple versions for multiple targets (if we wish) and
@@ -11,20 +11,29 @@
# binutils-# -> normal release
extra_eclass=""
-if [[ ${PV} == "9999" ]] ; then
+if [[ -n ${BINUTILS_TYPE} ]] ; then
+ BTYPE=${BINUTILS_TYPE}
+else
+ case ${PV} in
+ 9999) BTYPE="cvs";;
+ 9999_pre*) BTYPE="snap";;
+ *) BTYPE="rel";;
+ esac
+fi
+
+if [[ ${BTYPE} == "cvs" ]] ; then
extra_eclass="cvs"
ECVS_SERVER="sourceware.org:/cvs/src"
ECVS_MODULE="binutils"
ECVS_USER="anoncvs"
ECVS_PASS="anoncvs"
- BTYPE="cvs"
BVER="cvs"
-elif [[ ${PV} == 9999_pre* ]] ; then
- BTYPE="snap"
+elif [[ ${BTYPE} == "snap" ]] ; then
BVER=${PV/9999_pre}
-else
- BTYPE="rel"
+elif [[ ${BTYPE} == "rel" ]] ; then
BVER=${PV}
+else
+ BVER=${BINUTILS_VER}
fi
inherit eutils libtool flag-o-matic gnuconfig multilib ${extra_eclass}