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

name                getmail
version             5.16
revision            0
categories          mail python
platforms           {darwin any}
maintainers         nomaintainer
license             GPL-2
description         extensible mail retrieval system with POP3, IMAP4, SSL support
long_description    getmail version 5 is a flexible, extensible mail retrieval \
                    system with support for POP3, IMAP4, SSL variants of both, \
                    maildirs, mboxrd files, external MDAs, arbitrary message \
                    filtering, single-user and domain-mailboxes, and many \
                    other useful features.
# getmail does not contain binary code
supported_archs     noarch

conflicts           getmail6

homepage            https://pyropus.ca./software/getmail/
master_sites        ${homepage}old-versions/ \
                    https://fossies.org/linux/misc/

checksums           rmd160  67f0c9bf0ffaa01683135b1d40a1725848bd9dec \
                    sha256  6ae8f8eaef9abc465050c3b64e55a31afbdcd4c6edf3197b5b59bbd56ca667fa \
                    size    180577
dist_subdir         ${name}
patchfiles          patch-setup.py.diff

python.default_version  27

post-destroot {
    foreach manfile [glob -tails -directory ${destroot}${python.prefix}/share/man/man1 *] {
        file rename ${destroot}${python.prefix}/share/man/man1/${manfile} \
            ${destroot}${prefix}/share/man/man1/${manfile}
    }
    delete ${destroot}${prefix}/share/doc/${name}
    move ${destroot}${python.prefix}/share/doc/${name} \
        ${destroot}${prefix}/share/doc
}

livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}
