| 1 |
# Copyright 1999-2007 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/insight/insight-6.5.ebuild,v 1.9 2007/07/22 07:24:10 graaff Exp $
|
| 4 |
|
| 5 |
inherit eutils
|
| 6 |
|
| 7 |
IUSE="nls"
|
| 8 |
|
| 9 |
DESCRIPTION="A graphical interface to the GNU debugger"
|
| 10 |
HOMEPAGE="http://sourceware.org/insight/"
|
| 11 |
LICENSE="GPL-2 LGPL-2"
|
| 12 |
RDEPEND="sys-libs/ncurses
|
| 13 |
x11-libs/libX11"
|
| 14 |
DEPEND="x11-libs/libXt
|
| 15 |
x11-libs/libX11
|
| 16 |
nls? ( sys-devel/gettext )
|
| 17 |
sys-libs/ncurses"
|
| 18 |
|
| 19 |
SLOT="0"
|
| 20 |
KEYWORDS="alpha amd64 ppc sparc x86"
|
| 21 |
SRC_URI="ftp://sources.redhat.com/pub/${PN}/releases/${P}.tar.bz2"
|
| 22 |
|
| 23 |
INSIGHTDIR="/opt/insight"
|
| 24 |
|
| 25 |
src_unpack() {
|
| 26 |
unpack ${A}
|
| 27 |
cd ${S}
|
| 28 |
# sed -i -e "s/relid'/relid/" {tcl,tk}/unix/configure
|
| 29 |
}
|
| 30 |
|
| 31 |
src_compile() {
|
| 32 |
local myconf
|
| 33 |
myconf="$(use_enable nls)"
|
| 34 |
|
| 35 |
strip-linguas -i bfd/po opcodes/po
|
| 36 |
|
| 37 |
./configure --prefix="${INSIGHTDIR}" \
|
| 38 |
--mandir="${D}${INSIGHTDIR}/share/man" \
|
| 39 |
--infodir="${D}${INSIGHTDIR}/share/info" \
|
| 40 |
${myconf} || die
|
| 41 |
emake || die
|
| 42 |
}
|
| 43 |
|
| 44 |
src_install () {
|
| 45 |
make \
|
| 46 |
prefix="${D}${INSIGHTDIR}" \
|
| 47 |
mandir="${D}${INSIGHTDIR}/share/man" \
|
| 48 |
infodir="${D}${INSIGHTDIR}/share/info" \
|
| 49 |
install || die
|
| 50 |
doenvd "${FILESDIR}/99insight"
|
| 51 |
}
|