blob: 4e1e1a00f7dc5a883903d0d575b5dbed6e3551ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit toolchain-funcs
KEYWORDS="~x86"
DESCRIPTION="Assembly level debugger"
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
}
|