# $Id$

PortSystem 1.0

name            indent
version         2.2.10
license         GPL-3
categories      devel
maintainers     nomaintainer
description     C language source code formatting program
long_description \
    GNU indent changes the appearance of a C program by inserting or    \
    deleting whitespace according to a plethora of options.  Some canned\
    styles of formatting are supported as well.  GNU indent is a        \
    descendant of BSD indent. GNU indent does NOT work for C++, only C.

homepage        http://www.gnu.org/software/indent/
platforms       darwin
master_sites    gnu
checksums       md5 be35ea62705733859fbf8caf816d8959 \
                sha1 20fa8a7a4af6670c3254c8b87020291c3db37ed1 \
                rmd160 66164db3f28ddc9726a56fb184795a335aac34b0

depends_build   port:gperf
depends_lib     port:gettext port:libiconv

post-extract {
    file delete ${worksrcpath}/src/gperf.c
    file delete ${worksrcpath}/src/gperf-cc.c
}

patchfiles      automake.patch \
                patch-man__Makefile.am \
                patch-man__texinfo2man.c \
                patch-src__output.c

use_autoreconf  yes
autoreconf.args -fvi
autoreconf.env  ACLOCAL="aclocal -Iaclocal"

configure.args  --program-prefix=gnu

post-destroot {
    file rename ${destroot}${prefix}/doc ${destroot}${prefix}/share/doc
}