# $Id: Portfile 88158 2011-12-21 00:33:31Z vinc17@macports.org $

PortSystem 1.0

name                mairix
version             0.23
categories          mail
platforms           darwin
maintainers         nomaintainer
description         Email index and search tool
long_description    mairix is a program for indexing and searching email \
                    messages stored in Maildir, MH or mbox folders.      \
                    Indexing is fast. It runs incrementally on new       \
                    messages - any particular message only gets scanned  \
                    once in the lifetime of the index file. The search   \
                    mode populates a "virtual" maildir (or MH) folder    \
                    with symlinks which point to the real messages. This \
                    folder can be opened as usual in your mail program.  \
                    The search mode is very fast. Indexing and searching \
                    works on the basis of words. The index file tabulates\
                    which words occur in which parts (particular headers \
                    + body) of which messages.
homepage            http://www.rc0.org.uk/mairix/
master_sites        sourceforge
checksums           md5     732cf94e05c779ff1ce4a9e9eb19ab44 \
                    sha1    1621d60db5fb76453e48b98d12ca86b4a68ea1de \
                    rmd160  34fecc88db4e7396f806bbb4b863437f8b2567ef
depends_lib         port:zlib port:bzip2

configure.args      --mandir=${prefix}/share/man \
                    --enable-gzip-mbox --enable-bzip-mbox

pre-destroot {
    file mkdir "${destroot}${prefix}/share/doc/${name}"
    xinstall -m 644 -v -W ${worksrcpath} ACKNOWLEDGEMENTS COPYING NEWS README \
      "${destroot}${prefix}/share/doc/${name}"
}
