1 # Copyright 1999-2008 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.8.ebuild,v 1.1 2008/07/12 12:21:10 tester Exp $
5 inherit eutils flag-o-matic
7 export CTARGET
=${CTARGET:-${CHOST}}
8 if [[ ${CTARGET} == ${CHOST} ]] ; then
9 if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
10 export CTARGET
=${CATEGORY/cross-}
14 DESCRIPTION
="A graphical interface to the GNU debugger"
15 HOMEPAGE
="http://sourceware.org/insight/"
16 SRC_URI
="ftp://sources.redhat.com/pub/${PN}/releases/${P}-1.tar.bz2"
18 LICENSE
="GPL-2 LGPL-2"
19 [[ ${CTARGET} != ${CHOST} ]] \
20 && SLOT
="${CTARGET}" \
22 KEYWORDS
="~alpha ~amd64 ~ppc ~sparc ~x86"
25 RDEPEND
="sys-libs/ncurses
28 nls? ( sys-devel/gettext )"
35 epatch
"${FILESDIR}"/${PN}-6.6
-DESTDIR.
patch
36 epatch
"${FILESDIR}"/${PN}-6.6
-burn-paths.
patch
39 epatch
"${FILESDIR}"/tkImgGIF.
patch
43 append-flags
-fno-strict-aliasing # tcl code sucks
44 strip-linguas
-u bfd
/po opcodes
/po
50 --datadir=/usr
/share
/${PN} \
56 # the tcl-related subdirs are not parallel safe
57 emake
-j1 DESTDIR
="${D}" install || die
59 # Don't install docs when building a cross-insight
60 if [[ ${CTARGET} == ${CHOST} ]] ; then
61 dodoc gdb
/gdbtk
/{README
,TODO
}
64 # the gui tcl code does not consider any of the configure
65 # options given it ... instead, it requires the path to
66 # be /usr/share/redhat/...
67 mv "${D}"/usr/share/${PN}/redhat "${D}"/usr
/share
/ || die
69 # scrub all the cruft we dont want
73 [[ ${x} != *insight
]] && rm -f ${x}
76 rm -rf usr
/{include
,man
,share
/{info
,locale
,man
}}