summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-08-24 00:53:49 +0000
committerMike Frysinger <vapier@gentoo.org>2006-08-24 00:53:49 +0000
commitf94b4168527e935b1d5130967586257319e78c92 (patch)
treef2570964821064c0bf2808df5ddf8bab80cdbda9 /sys-devel/gdb
parentold (diff)
downloadgentoo-2-f94b4168527e935b1d5130967586257319e78c92.tar.gz
gentoo-2-f94b4168527e935b1d5130967586257319e78c92.tar.bz2
gentoo-2-f94b4168527e935b1d5130967586257319e78c92.zip
Add patch for gnu hash support from upstream #144851 by Christophe Saout.
(Portage version: 2.1.1_pre5-r3)
Diffstat (limited to 'sys-devel/gdb')
-rw-r--r--sys-devel/gdb/ChangeLog7
-rw-r--r--sys-devel/gdb/files/digest-gdb-6.5-r26
-rw-r--r--sys-devel/gdb/gdb-6.5-r2.ebuild77
3 files changed, 89 insertions, 1 deletions
diff --git a/sys-devel/gdb/ChangeLog b/sys-devel/gdb/ChangeLog
index 591a8fae4b97..ce4cc4aaec24 100644
--- a/sys-devel/gdb/ChangeLog
+++ b/sys-devel/gdb/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-devel/gdb
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.98 2006/07/01 10:39:11 solar Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.99 2006/08/24 00:53:49 vapier Exp $
+
+*gdb-6.5-r2 (24 Aug 2006)
+
+ 24 Aug 2006; Mike Frysinger <vapier@gentoo.org> +gdb-6.5-r2.ebuild:
+ Add patch for gnu hash support from upstream #144851 by Christophe Saout.
01 Jul 2006; <solar@gentoo.org> gdb-6.5-r1.ebuild:
- fix gdbinit file causing errors with recent gdb. bug 97409
diff --git a/sys-devel/gdb/files/digest-gdb-6.5-r2 b/sys-devel/gdb/files/digest-gdb-6.5-r2
new file mode 100644
index 000000000000..5aed0cee37b0
--- /dev/null
+++ b/sys-devel/gdb/files/digest-gdb-6.5-r2
@@ -0,0 +1,6 @@
+MD5 61a52258a86d071463ee2394d28e14f3 gdb-6.5-patches-1.0.tar.bz2 19595
+RMD160 c3cd11a7ad5d29926df8dc30e608a239e5451247 gdb-6.5-patches-1.0.tar.bz2 19595
+SHA256 590f31649dea7004107e6f186f8af6824c5fdbcef779f8eafd34e5983f3e4195 gdb-6.5-patches-1.0.tar.bz2 19595
+MD5 af6c8335230d7604aee0803b1df14f54 gdb-6.5.tar.bz2 14303558
+RMD160 ec5138a833d0f67b3e27fde653f1a80dec79b99f gdb-6.5.tar.bz2 14303558
+SHA256 0011318d9720781d486c835e88b915f90f2c10e7101d648b64dd4739218d3faf gdb-6.5.tar.bz2 14303558
diff --git a/sys-devel/gdb/gdb-6.5-r2.ebuild b/sys-devel/gdb/gdb-6.5-r2.ebuild
new file mode 100644
index 000000000000..436d02a934ce
--- /dev/null
+++ b/sys-devel/gdb/gdb-6.5-r2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-6.5-r2.ebuild,v 1.1 2006/08/24 00:53:49 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
+
+PATCH_VER="1.0"
+DESCRIPTION="GNU debugger"
+HOMEPAGE="http://sources.redhat.com/gdb/"
+SRC_URI="http://ftp.gnu.org/gnu/gdb/${P}.tar.bz2
+ ftp://sources.redhat.com/pub/gdb/releases/${P}.tar.bz2
+ mirror://gentoo/${P}-patches-${PATCH_VER}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2"
+[[ ${CTARGET} != ${CHOST} ]] \
+ && SLOT="${CTARGET}" \
+ || SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd"
+IUSE="nls test vanilla"
+
+RDEPEND=">=sys-libs/ncurses-5.2-r2"
+DEPEND="${RDEPEND}
+ test? ( dev-util/dejagnu )
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ use vanilla || EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
+ strip-linguas -u bfd/po opcodes/po
+}
+
+src_compile() {
+ replace-flags -O? -O2
+ econf \
+ --disable-werror \
+ $(use_enable nls) \
+ || die
+ emake || die
+}
+
+src_test() {
+ make check || ewarn "tests failed"
+}
+
+src_install() {
+ make \
+ DESTDIR="${D}" \
+ libdir=/nukeme includedir=/nukeme \
+ install || die
+ rm -r "${D}"/nukeme || die
+
+ # 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/PROBLEMS
+ docinto sim
+ dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING
+
+ dodoc "${WORKDIR}"/extra/gdbinit.sample
+
+ # Remove shared info pages
+ rm -f "${D}"/usr/share/info/{annotate,bfd,configure,standards}.info*
+}