Magellan Linux

Contents of /trunk/todo/gdb/gdb-6.7.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2308 - (show annotations) (download)
Thu Jul 9 19:34:39 2009 UTC (15 years, 4 months ago) by niro
File size: 1574 byte(s)
-moved to 'todo'
1 # $Header: /magellan-cvs/smage/gdb/gdb-6.7.1-r1.smage2,v 1.2 2008/03/31 11:08:04 niro Exp $
2
3 PNAME="gdb"
4 PVER="6.7.1"
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.18
14 >= sys-libs/ncurses-5.6
15 >= sys-libs/readline-5.2"
16
17 SRCFILE="${PNAME}-${PVER}.tar.bz2"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude mtools
21
22 SRC_URI=(
23 gnu://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 mirror://${PNAME}/gdb_init.txt
26 mirror://${PNAME}/gdb-6.6-security-errata-20050610.patch
27 mirror://${PNAME}/gdb-${PVER}-dwarf-stack-overflow.patch
28 mirror://${PNAME}/gdb-${PVER}-deleted-children.patch
29 )
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34 cd ${SRCDIR}
35
36 mpatch gdb-6.6-security-errata-20050610.patch || die
37 mpatch gdb-${PVER}-dwarf-stack-overflow.patch || die
38 mpatch gdb-${PVER}-deleted-children.patch || die
39 }
40
41 src_compile()
42 {
43 cd ${SRCDIR}
44
45 mconfigure --disable-werror --enable-nls --with-system-readline || die
46 mmake || die
47 }
48
49 src_install()
50 {
51 cd ${SRCDIR}
52
53 # needed directories
54 minstalldir /etc/skel || die
55
56 mmake DESTDIR=${BINDIR} install || die
57
58 minstallfile -s gdb_init.txt /etc/skel/.gdbinit || die
59
60 # this stuff comes already with binutils
61 rm -f ${BINDIR}/usr/$(mlibdir)/libbfd.* || die
62 rm -f ${BINDIR}/usr/$(mlibdir)/libiberty.* || die
63 rm -f ${BINDIR}/usr/$(mlibdir)/libopcodes.* || die
64 rm -f ${BINDIR}/usr/share/info/{bfd,configure,standards}.info* || die
65 rm -r ${BINDIR}/usr/share/locale || die
66 rm -r ${BINDIR}/usr/include || die
67 }

Properties

Name Value
svn:keywords Id