# -*- 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
PortGroup           github 1.0

github.setup        getmail6 getmail6 6.19.05 v
github.tarball_from archive

revision            0
categories          mail python
platforms           {darwin any}
maintainers         {@graywolf wolfsden.cz:~+macports} openmaintainer
license             GPL-2
description         extensible mail retrieval system with POP3, IMAP4, SSL support
long_description    getmail6 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.
supported_archs     noarch

conflicts           getmail

homepage            https://getmail6.org

checksums           rmd160  035682e42e4d7a4d5acfd07e377fbb8dd560da6c \
                    sha256  1b8ae957682f446c4c7103c075605c33c7456a4809788d1b769bd469ee90d38b \
                    size    216019

python.default_version  312

post-destroot {
    foreach mf { getmail getmail_fetch getmail_maildir getmail_mbox getmails } {
        copy ${worksrcpath}/docs/${mf}.1 ${destroot}${prefix}/share/man/man1/
    }

    file mkdir ${destroot}${prefix}/share/doc/getmail/examples
    copy ${worksrcpath}/docs/getmailrc-examples \
        ${destroot}${prefix}/share/doc/getmail/examples/

    xinstall -W ${worksrcpath}/docs configuration.txt documentation.txt \
        ${destroot}${prefix}/share/doc/getmail/
}
