Magellan Linux

Annotation of /branches/R11-unstable/extras/gdb/gdb-7.7.1-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32790 - (hide annotations) (download)
Mon Apr 29 13:40:49 2019 UTC (5 years, 1 month ago) by niro
File size: 1273 byte(s)
-release branches/R11-unstable
1 niro 27288 # $Id$
2    
3     PNAME="gdb"
4     PVER="7.7.1"
5     PBUILD="r3"
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.25
13     >= sys-libs/ncurses-6.0
14     >= sys-libs/readline-6.3
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     msetfeature "!check" # some test randomly fail
26    
27     SRC_URI=(
28     gnu://${PNAME}/${SRCFILE}
29     mirror://${PNAME}/${SRCFILE}
30     )
31    
32     UP2DATE="updatecmd_gnu ${PNAME}"
33    
34     src_compile()
35     {
36     cd ${SRCDIR}
37    
38     mconfigure \
39     --with-system-gdbinit=/etc/gdb/gdbinit \
40     --enable-nls \
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     mdelete /usr/$(mlibdir)/libbfd.\* || die
59     #mdelete /usr/$(mlibdir)/libiberty.\* || die
60     mdelete /usr/$(mlibdir)/libopcodes.\* || die
61     mdelete /usr/share/info/{bfd,configure,standards}.info\* || die
62     mdelete -r /usr/share/locale || die
63     # keep /usr/include/gdb directory
64     mdelete /usr/include/\*.h || die
65     }