Contents of /trunk/extras/gdb/gdb-7.6-r1.smage2
Parent Directory | Revision Log
Revision 17468 -
(show annotations)
(download)
Mon Jun 17 11:58:25 2013 UTC (11 years, 3 months ago) by niro
File size: 1218 byte(s)
Mon Jun 17 11:58:25 2013 UTC (11 years, 3 months ago) by niro
File size: 1218 byte(s)
-added dejagnu dep for src_check
1 | # $Id$ |
2 | |
3 | PNAME="gdb" |
4 | PVER="7.6" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="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.23 |
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 | >= dev-util/dejagnu-1.5" |
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 | --enable-nls \ |
40 | --with-system-readline \ |
41 | --with-expat \ |
42 | --with-python \ |
43 | || die |
44 | |
45 | mmake || die |
46 | } |
47 | |
48 | src_install() |
49 | { |
50 | cd ${SRCDIR} |
51 | mmake DESTDIR=${BINDIR} install || die |
52 | |
53 | minstalldir /etc/gdb || die |
54 | memptyfile /etc/gdb/gdbinit || die |
55 | |
56 | # this stuff comes already with binutils |
57 | rm -f ${BINDIR}/usr/$(mlibdir)/libbfd.* || die |
58 | rm -f ${BINDIR}/usr/$(mlibdir)/libiberty.* || die |
59 | rm -f ${BINDIR}/usr/$(mlibdir)/libopcodes.* || die |
60 | rm -f ${BINDIR}/usr/share/info/{bfd,configure,standards}.info* || die |
61 | rm -r ${BINDIR}/usr/share/locale || die |
62 | rm -r ${BINDIR}/usr/include || die |
63 | } |