# $Id: Portfile 70823 2010-08-22 21:41:11Z singingwolfboy@macports.org $

PortSystem          1.0

name                NERD_tree
version             4.1.0
revision            3
categories          editors
maintainers         singingwolfboy openmaintainer
description         File system explorer for Vim
long_description    \
    The NERD tree is a plugin for Vim that allows you to explore your \
    filesystem and to open files and directories. It presents the filesystem \
    to you in the form of a tree which you manipulate with the keyboard \
    and/or mouse. It also allows you to perform simple filesystem operations. 

homepage            http://www.vim.org/scripts/script.php?script_id=1658
platforms           darwin
master_sites        http://www.vim.org/scripts/download_script.php?src_id=11834&dummy=
distname            ${name}
use_zip             yes

depends_lib         port:vim

checksums           md5     a15fa66b36c3261e598d93dc830398f6 \
                    sha1    27fb1202606dd00c1f3c0b0196af6579845ce159 \
                    rmd160  0864709dab747a94fade6bde13e81e4fd5655c32
                    
extract.mkdir       yes
use_configure       no
build {}
destroot {
    set vim ${destroot}${prefix}/share/vim/vim73/
    xinstall -d ${vim}/doc ${vim}/plugin
    xinstall ${worksrcpath}/doc/${name}.txt ${vim}/doc/
    xinstall ${worksrcpath}/plugin/${name}.vim ${vim}/plugin/
    copy ${worksrcpath}/nerdtree_plugin ${vim}
}
post-activate {
    # rebuild help tags
    system "${prefix}/bin/vim -c \":helptags ${prefix}/share/vim/vim73/doc\" -c \":q\" "
}
