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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Aug 22 23:23:16 2012 UTC (2 years, 1 month ago) by xmw
Branch: MAIN
Changes since 1.6: +2 -2 lines
ppc stable (bug 414069).

(Portage version: 2.1.11.10/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.1.ebuild,v 1.6 2012/07/29 16:27:39 armin76 Exp $
4
5 EAPI=4
6
7 inherit eutils autotools versionator
8
9 MY_P="${PN}-$(replace_version_separator 2 -)"
10
11 DESCRIPTION="A graphical interface to the GNU debugger"
12 HOMEPAGE="http://sourceware.org/insight/"
13 SRC_URI="ftp://sources.redhat.com/pub/${PN}/releases/${MY_P}a.tar.bz2
14 http://dev.gentooexperimental.org/~scarabeus/${P}-patchset-01.tar.xz"
15
16 LICENSE="GPL-2 LGPL-2"
17 SLOT="0"
18 KEYWORDS="amd64 ppc x86"
19 IUSE="nls"
20
21 RDEPEND="
22 dev-libs/expat
23 dev-tcltk/iwidgets
24 sys-libs/ncurses
25 sys-libs/readline
26 x11-libs/libX11
27 "
28 DEPEND="${RDEPEND}
29 dev-lang/tcl
30 dev-lang/tk
31 dev-tcltk/itcl
32 dev-tcltk/itk
33 sys-devel/bison
34 nls? ( sys-devel/gettext )"
35
36 S="${WORKDIR}/${MY_P}"
37
38 src_prepare() {
39 local location
40
41 EPATCH_FORCE="yes" \
42 EPATCH_SOURCE="${WORKDIR}/patches" \
43 EPATCH_SUFFIX="patch" \
44 epatch
45
46 # remove bundled stuff
47 rm -rf "${S}"/{itcl,tcl,tk,readline} || die
48
49 for location in gdb/gdbtk/plugins libgui; do
50 pushd ${location} > /dev/null
51 eautoreconf
52 popd > /dev/null
53 done
54
55 cd gdb
56 eautoconf
57
58 sed -i \
59 -e 's:tk.h:tkInt.h:g' \
60 -e 's:ITCL_BUILD_LIB_SPEC:ITCL_LIB_SPEC:g' \
61 -e 's:ITK_BUILD_LIB_SPEC:ITK_LIB_SPEC:g' \
62 "${S}/gdb/configure" || die
63 }
64
65 src_configure() {
66 export ac_cv_c_itclh="${EPREFIX}/usr/include/"
67 export ac_cv_c_itkh="${EPREFIX}/usr/include/"
68
69 . "${EPREFIX}/usr/$(get_libdir)/tclConfig.sh"
70 . "${EPREFIX}/usr/$(get_libdir)/tkConfig.sh"
71 . "${EPREFIX}/usr/$(get_libdir)/itclConfig.sh"
72
73 # there will be warning about undefined options
74 # because it is passed only to some subdir configures
75 econf \
76 --disable-static \
77 --with-system-readline \
78 --disable-rpath \
79 --disable-werror \
80 $(use_enable nls) \
81 --enable-gdbtk \
82 --enable-sim \
83 --with-expat \
84 --datadir=/usr/share \
85 --with-tclinclude="${TCL_SRC_DIR}" \
86 --with-tkinclude="${TK_SRC_DIR}"
87 }
88
89 src_install() {
90 # the tcl-related subdirs are not parallel safe
91 emake -j1 DESTDIR="${D}" install
92
93 find "${ED}" -name '*.la' -exec rm -f {} +
94
95 dodoc gdb/gdbtk/{README,TODO}
96
97 # scrub all the cruft we dont want
98 rm -f "${ED}"/usr/bin/{gdb,gdbtui,gdbserver} || die
99 rm -f "${ED}"/usr/$(get_libdir)/*.a || die
100 rm -f "${ED}"/usr/$(get_libdir)/*.sh || die
101 rm -rf "${ED}"/usr/include || die
102 rm -rf "${ED}"/usr/man || die
103 rm -rf "${ED}"/usr/share/{man,info,locale} || die
104
105 # regen pkgIndex.tcl
106 echo "pkg_mkIndex \"${ED}/usr/share/${PN}/gui\"" | tclsh
107 }

  ViewVC Help
Powered by ViewVC 1.1.20