/[gentoo-x86]/dev-util/insight/insight-6.8.ebuild
Gentoo

Contents of /dev-util/insight/insight-6.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Mar 6 13:39:07 2012 UTC (2 years, 9 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump to latest. Fixes bug#343189 and bug#342321.

(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)

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 $
4
5 inherit eutils flag-o-matic
6
7 export CTARGET=${CTARGET:-${CHOST}}
8 if [[ ${CTARGET} == ${CHOST} ]] ; then
9 if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
10 export CTARGET=${CATEGORY/cross-}
11 fi
12 fi
13
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}.tar.bz2"
17
18 LICENSE="GPL-2 LGPL-2"
19 [[ ${CTARGET} != ${CHOST} ]] \
20 && SLOT="${CTARGET}" \
21 || SLOT="0"
22 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
23 IUSE="nls"
24
25 RDEPEND="sys-libs/ncurses
26 x11-libs/libX11"
27 DEPEND="${RDEPEND}
28 nls? ( sys-devel/gettext )"
29
30 src_unpack() {
31 unpack ${A}
32 cd "${S}"
33 epatch "${FILESDIR}"/${PN}-6.6-DESTDIR.patch
34 epatch "${FILESDIR}"/${PN}-6.6-burn-paths.patch
35
36 cd "${S}/tk"
37 epatch "${FILESDIR}"/tkImgGIF.patch
38 }
39
40 src_compile() {
41 append-flags -fno-strict-aliasing # tcl code sucks
42 strip-linguas -u bfd/po opcodes/po
43 econf \
44 --disable-werror \
45 $(use_enable nls) \
46 --enable-gdbtk \
47 --disable-tui \
48 --datadir=/usr/share/${PN} \
49 || die
50 emake || die
51 }
52
53 src_install() {
54 # the tcl-related subdirs are not parallel safe
55 emake -j1 DESTDIR="${D}" install || die
56
57 # Don't install docs when building a cross-insight
58 if [[ ${CTARGET} == ${CHOST} ]] ; then
59 dodoc gdb/gdbtk/{README,TODO}
60 fi
61
62 # the gui tcl code does not consider any of the configure
63 # options given it ... instead, it requires the path to
64 # be /usr/share/redhat/...
65 mv "${D}"/usr/share/${PN}/redhat "${D}"/usr/share/ || die
66
67 # scrub all the cruft we dont want
68 local x
69 cd "${D}"/usr/bin
70 for x in * ; do
71 [[ ${x} != *insight ]] && rm -f ${x}
72 done
73 cd "${D}"
74 rm -rf usr/{include,man,share/{info,locale,man}}
75 rm -rf usr/lib*
76 }

  ViewVC Help
Powered by ViewVC 1.1.20