# $Id: Portfile 75530 2011-01-29 00:50:57Z vinc17@macports.org $

PortSystem 1.0

name                mairix
version             0.22
categories          mail
platforms           darwin
maintainers         vinc17 openmaintainer
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     6c6aaca19c2b2de3bf567b856705ce1a \
                    sha1    35cfc16a144a601fbd3c9212c7bf1815addf05f6 \
                    rmd160  5a7d0341bd5de2d5c70d989b63bb21f80d71791c
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}"
}
