summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-04-23 04:50:33 +0000
committerMike Frysinger <vapier@gentoo.org>2005-04-23 04:50:33 +0000
commit636d9619c533d52e6523a048bd557e1d689145e4 (patch)
tree31b6da383c064acb05460143f549876a3d973da9 /sys-devel/gdb
parentstabilize (diff)
downloadgentoo-2-636d9619c533d52e6523a048bd557e1d689145e4.tar.gz
gentoo-2-636d9619c533d52e6523a048bd557e1d689145e4.tar.bz2
gentoo-2-636d9619c533d52e6523a048bd557e1d689145e4.zip
Grab & use Debians patchset.
(Portage version: 2.0.51.19)
Diffstat (limited to 'sys-devel/gdb')
-rw-r--r--sys-devel/gdb/ChangeLog9
-rw-r--r--sys-devel/gdb/files/digest-gdb-6.3-r13
-rw-r--r--sys-devel/gdb/gdb-6.3-r1.ebuild97
3 files changed, 107 insertions, 2 deletions
diff --git a/sys-devel/gdb/ChangeLog b/sys-devel/gdb/ChangeLog
index ffb58b201e94..cb77539e2a84 100644
--- a/sys-devel/gdb/ChangeLog
+++ b/sys-devel/gdb/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-devel/gdb
-# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.61 2005/03/14 15:29:57 gustavoz Exp $
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.62 2005/04/23 04:50:33 vapier Exp $
+
+*gdb-6.3-r1 (23 Apr 2005)
+
+ 23 Apr 2005; Mike Frysinger <vapier@gentoo.org> +gdb-6.3-r1.ebuild:
+ Grab & use Debians patchset.
14 Mar 2005; Gustavo Zacarias <gustavoz@gentoo.org> gdb-6.3.ebuild:
To ~sparc, this version actually works
diff --git a/sys-devel/gdb/files/digest-gdb-6.3-r1 b/sys-devel/gdb/files/digest-gdb-6.3-r1
new file mode 100644
index 000000000000..081c33419a3e
--- /dev/null
+++ b/sys-devel/gdb/files/digest-gdb-6.3-r1
@@ -0,0 +1,3 @@
+MD5 05b928f41fa5b482e49ca2c24762a0ae gdb-6.3.tar.bz2 13446729
+MD5 f96eec021725e7b4cdc6713ececed89a gdb_6.3-5.diff.gz 149881
+MD5 35e70c29e393433b3847527d808f59c2 gdb_init.txt.bz2 6247
diff --git a/sys-devel/gdb/gdb-6.3-r1.ebuild b/sys-devel/gdb/gdb-6.3-r1.ebuild
new file mode 100644
index 000000000000..9b93aafb5a22
--- /dev/null
+++ b/sys-devel/gdb/gdb-6.3-r1.ebuild
@@ -0,0 +1,97 @@
+# 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-r1.ebuild,v 1.1 2005/04/23 04:50:33 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
+
+DEB_VER=5
+DESCRIPTION="GNU debugger"
+HOMEPAGE="http://sources.redhat.com/gdb/"
+SRC_URI="http://mirrors.rcn.net/pub/sourceware/gdb/releases/${P}.tar.bz2
+ mirror://debian/pool/main/g/gdb/gdb_${PV}-${DEB_VER}.diff.gz
+ mirror://gentoo/gdb_init.txt.bz2"
+#SRC_URI="${SRC_URI} mirror://gentoo/gdb-6.1-hppa-01.patch.bz2"
+
+LICENSE="GPL-2 LGPL-2"
+[[ ${CTARGET} != ${CHOST} ]] \
+ && SLOT="${CTARGET}" \
+ || SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="nls test"
+
+RDEPEND=">=sys-libs/ncurses-5.2-r2"
+DEPEND="${RDEPEND}
+ test? ( dev-util/dejagnu )
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ mv "${WORKDIR}"/gdb_init.txt . || die
+ epatch "${WORKDIR}"/gdb_${PV}-${DEB_VER}.diff
+ for f in $(<debian/patches/series) ; do
+ EPATCH_SINGLE_MSG="Applying Debian's ${f}" \
+ epatch debian/patches/${f}
+ done
+ epatch "${FILESDIR}"/gdb-6.3-uclibc.patch
+ epatch "${FILESDIR}"/gdb-6.3-relative-paths.patch
+ #epatch "${FILESDIR}"/gdb-6.x-crash.patch
+ epatch "${FILESDIR}"/gdb-6.2.1-pass-libdir.patch
+ epatch "${FILESDIR}"/gdb-6.3-scanmem.patch
+
+ strip-linguas -u bfd/po opcodes/po
+}
+
+src_compile() {
+ replace-flags -O? -O2
+ econf $(use_enable nls) || die
+ emake -j1 || die
+}
+
+src_install() {
+ make \
+ prefix="${D}"/usr \
+ mandir="${D}"/usr/share/man \
+ infodir="${D}"/usr/share/info \
+ libdir="${D}"/nukeme includedir="${D}"/nukeme \
+ install || die "install"
+ # The includes and libs are in binutils already
+ rm -r "${D}"/nukeme
+
+ # Don't install docs when building a cross-gdb
+ if [[ ${CTARGET} != ${CHOST} ]] ; then
+ rm -r "${D}"/usr/share
+ return 0
+ fi
+
+ dodoc README
+ docinto gdb
+ dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
+ gdb/NEWS gdb/ChangeLog* gdb/TODO
+ docinto sim
+ dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING
+ docinto mmalloc
+ dodoc mmalloc/MAINTAINERS mmalloc/ChangeLog mmalloc/TODO
+
+ if use x86 ; then
+ dodir /etc/skel/
+ cp "${S}"/gdb_init.txt "${D}"/etc/skel/.gdbinit \
+ || die "install ${D}/etc/skel/.gdbinit"
+ fi
+
+ if ! has noinfo ${FEATURES} ; then
+ make -C "${S}"/gdb/doc \
+ infodir="${D}"/usr/share/info \
+ install-info || die "install doc info"
+ make -C "${S}"/bfd/doc \
+ infodir="${D}"/usr/share/info \
+ install-info || die "install bfd info"
+ fi
+}