diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-08-08 05:43:58 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-08-08 05:43:58 +0000 |
commit | 5aa8d75a664a3d84d15f97328ee8d4ac78a3ae3e (patch) | |
tree | 26655e727e9d9f2aaf678d3517319b67fae5b8b3 /sys-devel/gdb/gdb-7.4.50.20120710.ebuild | |
parent | update gcc snapshots (diff) | |
download | toolchain-5aa8d75a664a3d84d15f97328ee8d4ac78a3ae3e.tar.gz toolchain-5aa8d75a664a3d84d15f97328ee8d4ac78a3ae3e.tar.bz2 toolchain-5aa8d75a664a3d84d15f97328ee8d4ac78a3ae3e.zip |
update gdb snapshots
Diffstat (limited to 'sys-devel/gdb/gdb-7.4.50.20120710.ebuild')
-rw-r--r-- | sys-devel/gdb/gdb-7.4.50.20120710.ebuild | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/sys-devel/gdb/gdb-7.4.50.20120710.ebuild b/sys-devel/gdb/gdb-7.4.50.20120710.ebuild new file mode 100644 index 0000000..617672c --- /dev/null +++ b/sys-devel/gdb/gdb-7.4.50.20120710.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-6.6.ebuild,v 1.1 2006/12/19 06:30:37 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="ftp://sources.redhat.com/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.bz2" + +LICENSE="GPL-2 LGPL-2" +[[ ${CTARGET} != ${CHOST} ]] \ + && SLOT="${CTARGET}" \ + || SLOT="${PV}" +KEYWORDS="" +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}" + strip-linguas -u bfd/po opcodes/po +} + +src_compile() { + econf \ + --program-suffix=-${PV} \ + --disable-werror \ + $(use_enable nls) \ + || die + emake || die +} + +src_test() { + make check || ewarn "tests failed" +} + +src_install() { + emake \ + DESTDIR="${D}" \ + libdir=/nukeme includedir=/nukeme \ + install || die + rm -r "${D}"/nukeme || die + + if [[ ${CTARGET} != ${CHOST} ]] ; then + # Don't install docs when building a cross-gdb + rm -r "${D}"/usr/share + return 0 + else + # Fix collisions with release gdb + rm -r "${D}"/usr/share/{info,locale} + 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* +} |