# -*- 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
# $Id$

PortSystem          1.0

name                global
version             6.5.5
categories          devel
platforms           darwin
maintainers         sean openmaintainer
description         source code tag system
license             GPL-3+

long_description    GNU GLOBAL is a source code tag system that works the \
                    same way across diverse environments. You can locate a \
                    specified object in the source files and move there \
                    easily. It is useful for hacking a large project \
                    containing many subdirectories, many #ifdef and many \
                    main() functions. It is similar to ctags or etags but \
                    is different from them at the point of independence of \
                    any editor.

homepage            http://www.gnu.org/software/global/
master_sites        gnu

checksums           rmd160  528a17f87478b107754d32e16ec99de21736173e \
                    sha256  bc5b42a2c58d1570ff6b6acf7479c3e1609fe0ec8b44e5baa5290dc47148cf7b

depends_lib         port:libtool \
                    port:ncurses

configure.args      --infodir=${prefix}/share/info \
                    --mandir=${prefix}/share/man

test.run            yes
test.target         check

# we always build .so (and not always .la) so let's use .so.
post-destroot {
    reinplace "s,\\.la,.so,g" ${destroot}${prefix}/share/gtags/gtags.conf
}

livecheck.type      regex
livecheck.url       http://ftp.gnu.org/gnu/${name}/?C=M&O=D
livecheck.regex     ${name}-(\\d+\\.\\d+(?:\\.\\d+)?)