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

Last change on this file since 81846 was 81846, checked in by raimue@…, 6 years ago

devel/gdb:
Add livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 81846 2011-08-05 20:17:29Z raimue@macports.org $
3
4PortSystem      1.0
5
6name            gdb
7version         7.3
8categories      devel
9maintainers     dweber openmaintainer
10description     GDB: The GNU Project Debugger
11
12long_description \
13GDB, the GNU Project debugger, allows you to see what is going on 'inside' \
14another program while it executes -- or what another program was doing at the \
15moment it crashed.  GDB can do four main kinds of things (plus other things \
16in support of these) to help you catch bugs in the act: \
17    a) start your program, specifying anything that might affect its behavior, \
18    b) make your program stop on specified conditions, \
19    c) examine what has happened, when your program has stopped, \
20    d) change things in your program, so you can experiment with correcting \
21       the effects of one bug and go on to learn about another. \
22The program being debugged can be written in Ada, C, C++, Objective-C, \
23Pascal (and many other languages). Those programs might be executing on \
24the same machine as GDB (native) or on another machine (remote). GDB \
25can run on most popular UNIX and Microsoft Windows variants.
26
27homepage        http://www.gnu.org/software/gdb/
28platforms       darwin
29
30master_sites    gnu
31
32use_bzip2       yes
33
34checksums       sha1    fefd90275d6decdca00c5c29c533e2ef3d439664 \
35                rmd160  3df9a15e2d276f4f7f30e5d2a7d86a8c63f30a34
36
37depends_build   port:gettext
38
39
40if {${configure.build_arch} == "ppc" || ${configure.build_arch} == "ppc64"} {
41    notes "${name} does not support building on ${configure.build_arch}."
42    pre-fetch {
43        ui_error "${name} does not support building on ${configure.build_arch}."
44        return -code error "Unsupported architecture."
45    }
46}
47
48configure.args-append \
49    --infodir=${prefix}/share/info \
50    --mandir=${prefix}/share/man \
51    --with-docdir=${prefix}/share/doc \
52    --program-prefix=g
53
54configure.cflags-append     -I${prefix}/include
55configure.cxxflags-append   -I${prefix}/include
56
57post-destroot {
58    system "chgrp procmod ${destroot}${prefix}/bin/ggdb*"
59    system "chmod g+s ${destroot}${prefix}/bin/ggdb*"
60
61    foreach info [glob -tails -directory ${destroot}${prefix}/share/info g*] {
62        move ${destroot}${prefix}/share/info/${info} ${destroot}${prefix}/share/info/g${info}
63    }
64    move ${destroot}${prefix}/share/info/standards.info ${destroot}${prefix}/share/info/ggdb-standards.info
65
66    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
67    foreach binary [glob -tails -directory ${destroot}${prefix}/bin g*] {
68        ln -s ${prefix}/bin/${binary} ${destroot}${prefix}/libexec/gnubin/[string range $binary 1 end]
69    }
70}
71
72livecheck.type  regex
73livecheck.url   http://ftp.gnu.org/gnu/gdb/
74livecheck.regex gdb-(\\d+(?:\\.\\d+)+)\\.tar
Note: See TracBrowser for help on using the repository browser.