# -*- 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                hg-keyring
version             1.4.4
revision            1

categories-prepend  devel
platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         {danchr @danchr} openmaintainer

homepage            https://foss.heptapod.net/mercurial/mercurial_keyring
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, including the macOS \
    Keychain.

checksums           rmd160  c1dedcc3fac938f2adf54591fd23c2876d95cd68 \
                    sha256  1d113955c57e3230957cbe71e8929d97d2c7edc83d16321b7bd95fa13be4f302 \
                    size    26604

python.default_version  313
python.rootname         mercurial_keyring

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

notes               "
To enable the keyring extension, add the following to your ~/.hgrc:

\[extensions\]
mercurial_keyring =
"

depends_build-append \
                    port:py${python.version}-setuptools


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}
}
