source: trunk/dports/devel/gdb/Portfile @ 99304

Last change on this file since 99304 was 99304, checked in by jmr@…, 5 years ago

gdb: add zlib dep, set license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 99304 2012-10-31 22:42:34Z jmr@macports.org $
3
4PortSystem      1.0
5PortGroup       muniversal 1.0
6
7name            gdb
8version         7.5
9categories      devel
10license         GPL-3+
11maintainers     dweber openmaintainer
12description     GDB: The GNU Project Debugger
13
14long_description \
15GDB, the GNU Project debugger, allows you to see what is going on 'inside' \
16another program while it executes -- or what another program was doing at the \
17moment it crashed.  GDB can do four main kinds of things (plus other things \
18in support of these) to help you catch bugs in the act: \
19    a) start your program, specifying anything that might affect its behavior, \
20    b) make your program stop on specified conditions, \
21    c) examine what has happened, when your program has stopped, \
22    d) change things in your program, so you can experiment with correcting \
23       the effects of one bug and go on to learn about another. \
24The program being debugged can be written in Ada, C, C++, Objective-C, \
25Pascal (and many other languages). Those programs might be executing on \
26the same machine as GDB (native) or on another machine (remote). GDB \
27can run on most popular UNIX and Microsoft Windows variants.
28
29homepage        http://www.gnu.org/software/gdb/
30platforms       darwin
31supported_archs x86_64 i386
32
33master_sites    gnu
34
35use_bzip2       yes
36
37checksums       sha1    79b61152813e5730fa670c89e5fc3c04b670b02c \
38                rmd160  0eff835dde6e059a6e4e5c63586939fb2e74e4f1 \
39                sha256  d178c45c328369ae4f24f9a0ec53b7d009e2bfa1d41b7027280b24f58ae61932
40
41depends_build   port:gettext port:zlib
42
43configure.args \
44    --infodir=${prefix}/share/info \
45    --mandir=${prefix}/share/man \
46    --with-docdir=${prefix}/share/doc \
47    --program-prefix=g \
48    --disable-werror
49
50post-destroot {
51    system "chgrp procmod ${destroot}${prefix}/bin/ggdb*"
52    system "chmod g+s ${destroot}${prefix}/bin/ggdb*"
53
54    foreach info [glob -tails -directory ${destroot}${prefix}/share/info g*] {
55        move ${destroot}${prefix}/share/info/${info} ${destroot}${prefix}/share/info/g${info}
56    }
57    move ${destroot}${prefix}/share/info/standards.info ${destroot}${prefix}/share/info/ggdb-standards.info
58
59    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
60    foreach binary [glob -tails -directory ${destroot}${prefix}/bin g*] {
61        ln -s ${prefix}/bin/${binary} ${destroot}${prefix}/libexec/gnubin/[string range $binary 1 end]
62    }
63}
64
65livecheck.type  regex
66livecheck.url   http://ftp.gnu.org/gnu/gdb/
67livecheck.regex gdb-(\\d+(?:\\.\\d+)+)\\.tar
Note: See TracBrowser for help on using the repository browser.