# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem          1.0

name                tree
version             1.5.2.2
categories          sysutils
platforms           darwin
maintainers         simon openmaintainer
description         display tree-view of directories with optional color/HTML output
long_description    Tree is a simple utility that displays a tree-view of \
                    directories and files. It has options to use ANSI color \
                    escape-sequences or ASCII graphic characters, and can \
                    also output in HTML format.  Tree was written by Steve \
                    Baker for Linux.

homepage            http://mama.indstate.edu/users/ice/tree/
master_sites        freebsd \
                    ftp://mama.indstate.edu/linux/tree/ \
                    ftp://mama.indstate.edu/linux/tree/old/
checksums           md5 a7731a898e2c0d7e422a57a84ffbb06c \
                    sha1 ebc99e61fb0e5d118b7f126072e7ec90166667d5 \
                    rmd160 4cafe08178b76e479ef8f91ace4d26dd173c787c
extract.suffix      .tgz

patchfiles          patch-caseinsensitive.diff \
                    patch-Makefile.diff

use_configure       no

destroot.args       BINDIR=${destroot}${prefix}/bin \
                    MANDIR=${destroot}${prefix}/share/man/man1

post-destroot {
    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} README CHANGES LICENSE \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
