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