Magellan Linux

Contents of /branches/magellan-next/extras/gdb/gdb-7.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6677 - (show annotations) (download)
Wed Sep 15 14:50:01 2010 UTC (13 years, 8 months ago) by niro
File size: 1261 byte(s)
auto added: ver bump to 7.2-r1
1 # $Id$
2
3 PNAME="gdb"
4 PVER="7.2"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-dev"
8 STATE="unstable"
9
10 DESCRIPTION="GDB: The GNU Project Debugger."
11 HOMEPAGE="http://www.gnu.org/software/gdb/"
12
13 DEPEND=">= sys-dev/binutils-2.20
14 >= sys-libs/ncurses-5.7
15 >= sys-libs/readline-6.1
16 >= dev-libs/expat-2
17 >= dev-lang/python-2.7"
18
19 SDEPEND=">= sys-dev/gettext-0.18"
20
21 SRCFILE="${PNAME}-${PVER}.tar.bz2"
22 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
23
24 sminclude mbuild mtools
25
26 SRC_URI=(
27 gnu://${PNAME}/${SRCFILE}
28 mirror://${PNAME}/${SRCFILE}
29 )
30
31 UP2DATE="updatecmd_gnu ${PNAME}"
32
33 src_compile()
34 {
35 cd ${SRCDIR}
36
37 mconfigure \
38 --with-system-gdbinit=/etc/gdb/gdbinit \
39 --disable-werror \
40 --enable-nls \
41 --enable-64-bit-bfd \
42 --with-system-readline \
43 --with-expat \
44 --with-python \
45 || die
46
47 mmake || die
48 }
49
50 src_install()
51 {
52 cd ${SRCDIR}
53 mmake DESTDIR=${BINDIR} install || die
54
55 minstalldir /etc/gdb || die
56 memptyfile /etc/gdb/gdbinit || die
57
58 # this stuff comes already with binutils
59 rm -f ${BINDIR}/usr/$(mlibdir)/libbfd.* || die
60 rm -f ${BINDIR}/usr/$(mlibdir)/libiberty.* || die
61 rm -f ${BINDIR}/usr/$(mlibdir)/libopcodes.* || die
62 rm -f ${BINDIR}/usr/share/info/{bfd,configure,standards}.info* || die
63 rm -r ${BINDIR}/usr/share/locale || die
64 rm -r ${BINDIR}/usr/include || die
65 }