summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/debug/debug-0.0.21.ebuild')
-rw-r--r--dev-util/debug/debug-0.0.21.ebuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-util/debug/debug-0.0.21.ebuild b/dev-util/debug/debug-0.0.21.ebuild
new file mode 100644
index 000000000..0fa2dda9f
--- /dev/null
+++ b/dev-util/debug/debug-0.0.21.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit toolchain-funcs
+
+KEYWORDS="~x86"
+
+DESCRIPTION="A debugger that disassembles executables, has breakpoints, steps into and trace over, including a builtin single line assembler."
+HOMEPAGE="http://www.modest-proposals.com/Furball.htm"
+SRC_URI="http://www.modest-proposals.com/binary/${P}.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="ncurses readline"
+
+DEPEND="ncurses? ( sys-libs/ncurses )
+ readline? ( sys-libs/readline )"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i \
+ -e 's/ald/debug/g' \
+ -e 's#$(BINDIR)#$(DESTDIR)/$(BINDIR)#' \
+ -e 's#$(MANDIR)#$(DESTDIR)/$(MANDIR)#' \
+ -e 's/\($(INSTALL_BIN)\)/\1 -D /' \
+ -e 's/\($(INSTALL_DATA)\)/\1 -D /' \
+ -e 's/-s//' \
+ Makefile.in || die "sed failed"
+}
+
+src_compile() {
+ CC=$(tc-getCC) econf \
+ $(use_enable ncurses curses) \
+ $(use_enable readline) \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc ChangeLog README
+}