summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Jones <cretin@gentoo.org>2003-02-28 10:40:45 +0000
committerStefan Jones <cretin@gentoo.org>2003-02-28 10:40:45 +0000
commitf0c6b746442f07d5927567bef0842059d5f6f373 (patch)
treec30c12b4008c9c0547288314ee32ac1bae42a3db /sys-devel/gdb
parentfixes (diff)
downloadhistorical-f0c6b746442f07d5927567bef0842059d5f6f373.tar.gz
historical-f0c6b746442f07d5927567bef0842059d5f6f373.tar.bz2
historical-f0c6b746442f07d5927567bef0842059d5f6f373.zip
objective-c for gdb with objc use variable
Diffstat (limited to 'sys-devel/gdb')
-rw-r--r--sys-devel/gdb/ChangeLog7
-rw-r--r--sys-devel/gdb/files/digest-gdb-5.31
-rw-r--r--sys-devel/gdb/gdb-5.3.ebuild25
3 files changed, 28 insertions, 5 deletions
diff --git a/sys-devel/gdb/ChangeLog b/sys-devel/gdb/ChangeLog
index 645a150b3a14..bc71759d174c 100644
--- a/sys-devel/gdb/ChangeLog
+++ b/sys-devel/gdb/ChangeLog
@@ -1,9 +1,12 @@
# ChangeLog for sys-devel/gdb
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.17 2003/02/12 15:44:35 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.18 2003/02/28 10:40:45 cretin Exp $
*gdb-5.3 (21 Dec 2002)
-
+
+ 28 Feb 2003; Stefan Jones <cretin@gentoo.org> gdb-5.3.ebuild :
+ Added support for objc via the USE flag objc, see bug #16507
+
31 Jan 2003; Joshua Brindle <method@gentoo.org> gdb-5.3.ebuild :
This does not compile on sparc, changing to -sparc
diff --git a/sys-devel/gdb/files/digest-gdb-5.3 b/sys-devel/gdb/files/digest-gdb-5.3
index 4ec1563e53c5..f8d7f49c55f2 100644
--- a/sys-devel/gdb/files/digest-gdb-5.3
+++ b/sys-devel/gdb/files/digest-gdb-5.3
@@ -1 +1,2 @@
MD5 70e4ade69a2dff2c7b9af9a4ef44798f gdb-5.3.tar.bz2 11198721
+MD5 5ecd492d63fc129ae533e5c308c8af09 gdb-5_3-objc-patch.tgz 61236
diff --git a/sys-devel/gdb/gdb-5.3.ebuild b/sys-devel/gdb/gdb-5.3.ebuild
index 121d79aa9681..5addef5acbc6 100644
--- a/sys-devel/gdb/gdb-5.3.ebuild
+++ b/sys-devel/gdb/gdb-5.3.ebuild
@@ -1,13 +1,14 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-5.3.ebuild,v 1.6 2003/02/13 16:32:19 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-5.3.ebuild,v 1.7 2003/02/28 10:40:45 cretin Exp $
-IUSE="nls"
+IUSE="nls objc"
S=${WORKDIR}/${P}
DESCRIPTION="GNU debugger"
HOMEPAGE="http://sources.redhat.com/gdb/"
-SRC_URI="http://mirrors.rcn.net/pub/sourceware/gdb/releases/${P}.tar.bz2"
+SRC_URI="http://mirrors.rcn.net/pub/sourceware/gdb/releases/${P}.tar.bz2
+ objc? ( ftp://ftp.gnustep.org/pub/gnustep/patches/gdb-5_3-objc-patch.tgz )"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
@@ -19,6 +20,24 @@ DEPEND=">=sys-libs/ncurses-5.2-r2
inherit flag-o-matic
replace-flags -O? -O2
+src_unpack() {
+ unpack gdb-${PV}.tar.bz2
+
+ if [ -n "`use objc`" ] ; then
+ unpack gdb-5_3-objc-patch.tgz
+ cd ${S}
+
+ patch -p1 < ${WORKDIR}/gdb-5_3-objc-patch/gdb-5.3-objc-patch.diff || die
+
+ cp ${WORKDIR}/gdb-5_3-objc-patch/objc-exp.y gdb/
+ cp ${WORKDIR}/gdb-5_3-objc-patch/objc-lang.c gdb/
+ cp ${WORKDIR}/gdb-5_3-objc-patch/objc-lang.h gdb/
+ cp -r ${WORKDIR}/gdb-5_3-objc-patch/gdb.objc gdb/testsuite/
+ cd gdb/testsuite
+ autoconf || die
+ fi
+}
+
src_compile() {
local myconf