# $Id$

PortSystem 1.0

name                cscope
version             15.8a
revision            1
categories          devel
platforms           darwin freebsd
maintainers         mww openmaintainer
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
checksums           rmd160  9536de3b7bdf6dd355dd9c28308457692c9a0b9f \
                    sha256  eb736ac40d5abebe8fa46820c7a8eccc8a17966a9a5f70375367b77177874d1e

patchfiles          patch-constants.h

depends_lib         port:ncurses

configure.args      --mandir=${prefix}/share/man --with-flex --with-ncurses=${prefix}

post-destroot    {
    system "strip ${destroot}${prefix}/bin/cscope"

    # Install Emacs xcscope package
    xinstall -d ${destroot}${prefix}/share/emacs/site-lisp
    xinstall -m 644 ${worksrcpath}/contrib/xcscope/xcscope.el \
        ${destroot}${prefix}/share/emacs/site-lisp/
}