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

gitlab.instance     https://foss.heptapod.net
gitlab.setup        mercurial mercurial_keyring 1.3.1

name                py-${name}

categories-append   devel
platforms           darwin
supported_archs     noarch
license             BSD
maintainers         nomaintainer

description         Mercurial extension used to securely save passwords
long_description \
    mercurial_keyring is a Mercurial extension used to securely save HTTP and \
    SMTP authentication passwords in password databases (Gnome Keyring, KDE \
    KWallet, OSXKeyChain, specific solutions for Win32 and command line). This \
    extension uses and wraps services of the keyring library.

checksums           rmd160  281bcd19171ab0e3832087161046d6d023c1a04d \
                    sha256  2d17b3eeef284b026e927232e97dd82db6b0630896bf2ca432023379580d5310 \
                    size    19273

python.versions     27 37 38 39

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

    depends_run-append \
                    port:py${python.version}-keyring \
                    port:py${python.version}-mercurial_extension_utils \
                    port:mercurial

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst HISTORY.rst \
            LICENSE.txt README-devel.rst ${destroot}${docdir}
    }

    livecheck.type      none
}
