# -*- 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

PortSystem          1.0
PortGroup           github 1.0
PortGroup           python 1.0

github.setup        OfflineIMAP offlineimap 7.2.1 v
categories          mail python
platforms           darwin
license             {GPL-2+ OpenSSLException}
maintainers         nomaintainer
supported_archs     noarch

description         IMAP/Maildir synchronization and reader support
long_description    OfflineIMAP is a tool to simplify your e-mail reading. \
                    With OfflineIMAP, you can: \
                    - Read the same mailbox from multiple computers, and \
                      have your changes (deletions, etc.) be automatically \
                      reflected on all computers \
                    - Use various mail clients to read a single mail box \
                    - Read mail while offline (on a laptop) and have all \
                      changes synchronized when you get connected again \
                    - Read IMAP mail with mail readers that do not support \
                      IMAP \
                    - Use SSL (secure connections) to read IMAP mail even \
                      if your reader doesn't support SSL \
                    - Synchronize your mail using a completely safe and \
                      fault-tolerant algorithm. (At least I think it is!) \
                    - Customize which mailboxes to synchronize with regular \
                      expressions or lists \
                    - Synchronize your mail two to four times faster than \
                      with other tools or other mail readers' internal IMAP \
                      support \
                    In short, OfflineIMAP is a tool to let you read mail \
                    how YOU want to.

homepage            http://offlineimap.org/

checksums           rmd160  ae800a7f9b817b76ec36f18622d880b278e11ad0 \
                    sha256  3f3f142392456b38b02fcf505e737bfe5057ccc9e3f31c7d674e65be05faea1b \
                    size    720398

python.default_version 27

depends_build       port:py${python.version}-docutils \
                    port:py${python.version}-sphinx \
                    port:asciidoc \
                    port:docbook-xsl-nons

depends_lib         port:py${python.version}-six

post-build {
    system -W ${worksrcpath} "PATH='${python.prefix}/bin:$env(PATH)' make docs"
}

post-destroot {
    xinstall -m 644 -W ${worksrcpath} \
        COPYING Changelog.md \
        ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 ${worksrcpath}/offlineimap.conf \
        ${destroot}${prefix}/etc/offlineimap.conf.sample
    xinstall -m 644 ${worksrcpath}/offlineimap.conf.minimal \
        ${destroot}${prefix}/etc/offlineimap.conf.minimal.sample
}

github.livecheck.regex  {([^"-]+)}