# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 107561 2013-07-03 00:39:39Z sean@macports.org $

PortSystem          1.0
PortGroup           github 1.0
PortGroup           elisp 1.0

github.setup        djcb mu 0.99 v
version             0.9.9
revision            1
license             GPL-3
categories          mail
maintainers         sean openmaintainer
description         Command-line tools to index and search email (aka maildir-utils)
long_description \
   mu is a set of command-line tools for Linux/Unix that enable you to \
   quickly find the e-mails you are looking for. First, a tool called \
   mu-index fills a database with information about all your e-mails. After \
   that, you can easily search for them, using mu-find and its dedicated \
   query language.

platforms           darwin

homepage            http://www.djcbsoftware.nl/code/mu/

checksums           rmd160  6ff6a01469c997cad295706074f7e6c94755317a \
                    sha256  df0b3132dbda502a8db148fc4fa76982a8e37a30c782846368c185dddc25b161

depends_build       port:pkgconfig
depends_lib         port:gmime port:xapian-core

use_autoreconf      yes
configure.args      --with-gui=none --disable-mu4e --disable-webkit --disable-guile

variant emacs description {Build with emacs bindings} {
    depends_lib-append    path:${emacs_binary}:${emacs_binary_provider}
    configure.env-append  EMACS=${emacs_binary}
    configure.args-delete --disable-mu4e
    configure.args-append --enable-mu4e
}

subport mu-devel {
    github.setup    djcb mu 59666a7edac3
    name            mu-devel
    version         0.9.9.0.99
    revision        4

    checksums       rmd160  a1b9303e9d88e3631f5c00753340f0bcd22a6be8 \
                    sha256  2d260c2ecda312426d80a24651aa5f8fb0e89a66983a9ddc0f1907df7781b4d4
}
