summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-04-07 00:35:15 +0000
committerMike Frysinger <vapier@gentoo.org>2005-04-07 00:35:15 +0000
commitdf4159b5543b76834b263642d2551fb3100c2faa (patch)
tree3bdc7f26631cc7f97fa8468a34b69d3f0e874131 /sys-devel/gdb
parentclean up after the sed bootstrap, dont bootstrap it twice (thanks to Mr_Bones... (diff)
downloadgentoo-2-df4159b5543b76834b263642d2551fb3100c2faa.tar.gz
gentoo-2-df4159b5543b76834b263642d2551fb3100c2faa.tar.bz2
gentoo-2-df4159b5543b76834b263642d2551fb3100c2faa.zip
merge CTARGET #88169 by Scott Price
(Portage version: 2.0.51.19)
Diffstat (limited to 'sys-devel/gdb')
-rw-r--r--sys-devel/gdb/gdb-6.3.ebuild13
1 files changed, 11 insertions, 2 deletions
diff --git a/sys-devel/gdb/gdb-6.3.ebuild b/sys-devel/gdb/gdb-6.3.ebuild
index a9aae17eac4f..6293a1c17bea 100644
--- a/sys-devel/gdb/gdb-6.3.ebuild
+++ b/sys-devel/gdb/gdb-6.3.ebuild
@@ -1,9 +1,16 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-6.3.ebuild,v 1.6 2005/03/14 15:29:57 gustavoz Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-6.3.ebuild,v 1.7 2005/04/07 00:35:15 vapier Exp $
inherit flag-o-matic eutils
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
+ export CTARGET=${CATEGORY/cross-}
+ fi
+fi
+
DESCRIPTION="GNU debugger"
HOMEPAGE="http://sources.redhat.com/gdb/"
SRC_URI="http://mirrors.rcn.net/pub/sourceware/gdb/releases/${P}.tar.bz2
@@ -11,7 +18,9 @@ SRC_URI="http://mirrors.rcn.net/pub/sourceware/gdb/releases/${P}.tar.bz2
#SRC_URI="${SRC_URI} mirror://gentoo/gdb-6.1-hppa-01.patch.bz2"
LICENSE="GPL-2 LGPL-2"
-SLOT="0"
+[[ ${CTARGET} != ${CHOST} ]] \
+ && SLOT="${CTARGET}" \
+ || SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE="nls test"