# -*- 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                ctags
version             5.8
revision            4
checksums           rmd160  191495869fbfa2f77a9619a4920eba26d02eface \
                    sha256  0e44b45dcabe969e0bbbb11e30c246f81abe5d32012db37395eb57d66e9e99c7 \
                    size    479927

categories          devel
platforms           darwin freebsd
maintainers         nomaintainer

# This port contains two components:
#  - The ctags executable, which is GPL-2.
#  - The readtags library, which is the only part that can be linked to,
#    and is public domain.
# The following license specification avoids license conflicts with
# GPL-2-incompatible ports that link to readtags.
license             {GPL-2 public-domain}

# developer_cmds installs BSD ctags.
conflicts           developer_cmds

description         Reimplementation of ctags(1)

long_description    Exuberant Ctags generates an index (or tag) file of \
                    source language objects in source files that allows \
                    these items to be quickly and easily located by a text \
                    editor or other utility. Alternatively, it can \
                    generate a cross reference file which lists, in \
                    human-readable form, information about the various \
                    objects found in a set of source code files. Supported \
                    languages include: Assembler, AWK, ASP, BETA, \
                    Bourne/Korn/Zsh Shell, C, C++, COBOL, Eiffel, Fortran, \
                    Java, Lisp, Lua, Make, Pascal, Perl, PHP, Python, \
                    REXX, Ruby, S-Lang, Scheme, Tcl, Vim and Yacc.

homepage            http://ctags.sourceforge.net/

master_sites        sourceforge:project/${name}/${name}/${version}/

patchfiles          patch-php.c.diff \
                    implicit.patch \
                    unused_namespace.patch \
                    strcpy_overlap.patch

configure.args      --enable-macro-patterns \
                    --mandir=\\\${prefix}/share/man \
                    --with-readlib

destroot.destdir prefix=${destroot}${prefix}
