summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-04-08 00:06:23 +0000
committerMike Frysinger <vapier@gentoo.org>2005-04-08 00:06:23 +0000
commitb59d23625cf8355cac4feacf901a7d3128013d4f (patch)
tree3a80f07f96aeda20e35738d62a1164629e1edfb3 /sys-devel/gdb
parent- mark x86 stable (diff)
downloadgentoo-2-b59d23625cf8355cac4feacf901a7d3128013d4f.tar.gz
gentoo-2-b59d23625cf8355cac4feacf901a7d3128013d4f.tar.bz2
gentoo-2-b59d23625cf8355cac4feacf901a7d3128013d4f.zip
Finish cross-gdb support thanks to Scott Price #88169.
(Portage version: 2.0.51.19)
Diffstat (limited to 'sys-devel/gdb')
-rw-r--r--sys-devel/gdb/gdb-6.3.ebuild25
1 files changed, 10 insertions, 15 deletions
diff --git a/sys-devel/gdb/gdb-6.3.ebuild b/sys-devel/gdb/gdb-6.3.ebuild
index 54fad69dfb42..e70c99ddaf48 100644
--- a/sys-devel/gdb/gdb-6.3.ebuild
+++ b/sys-devel/gdb/gdb-6.3.ebuild
@@ -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/sys-devel/gdb/gdb-6.3.ebuild,v 1.8 2005/04/07 22:31:26 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-6.3.ebuild,v 1.9 2005/04/08 00:06:23 vapier Exp $
inherit flag-o-matic eutils
@@ -53,9 +53,17 @@ src_install() {
make \
prefix="${D}"/usr \
mandir="${D}"/usr/share/man \
- libdir="${D}"/usr/$(get_libdir) \
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
@@ -80,17 +88,4 @@ src_install() {
infodir="${D}"/usr/share/info \
install-info || die "install bfd info"
fi
-
- # These includes and libs are in binutils already
- rm -f "${D}"/usr/lib/libbfd.*
- rm -f "${D}"/usr/lib/libiberty.*
- rm -f "${D}"/usr/lib/libopcodes.*
- rm -f "${D}"/usr/share/info/{bfd,configure,standards}.info*
- rm -r "${D}"/usr/share/locale
- rm -r "${D}"/usr/include
-
- # Dont bother including docs with a cross gdb
- if [[ ${CTARGET} != ${CHOST} ]] ; then
- rm -r "${D}"/usr/share/{man,info,doc}
- fi
}