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

PortSystem          1.0

name                cscope
version             15.9
revision            2
categories          devel
platforms           darwin freebsd
maintainers         nomaintainer
license             BSD

description         development tool for browsing source code

long_description    Cscope is a developer's tool for browsing source code. \
                    It has an impeccable Unix pedigree, having been \
                    originally developed at Bell Labs back in the days of \
                    the PDP-11. Cscope was part of the official AT&T Unix \
                    distribution for many years, and has been used to \
                    manage projects involving 20 million lines of code.

homepage            http://cscope.sourceforge.net/
master_sites        sourceforge:project/${name}/${name}/v${version}

checksums           rmd160  afea7d56e0536bfe02fcd647a510ae022100c88d \
                    sha256  c5505ae075a871a9cd8d9801859b0ff1c09782075df281c72c23e72115d9f159 \
                    size    613948

depends_build       port:bison

depends_lib         port:flex \
                    port:ncurses

patchfiles          patch-symlink-not-found-fix.diff

configure.args      --mandir=${prefix}/share/man \
                    --with-ncurses=${prefix} \
                    ac_cv_prog_gnome1=no \
                    ac_cv_prog_gnome2=no

post-destroot {
    xinstall -d ${destroot}${prefix}/share/emacs/site-lisp
    xinstall -m 0644 ${worksrcpath}/contrib/xcscope/xcscope.el \
        ${destroot}${prefix}/share/emacs/site-lisp/
}
