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

bitbucket.setup     Mekk mercurial_keyring 1.2.1
name                py-mercurial_keyring

categories-append   devel
license             GPL
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.

platforms           darwin

checksums           rmd160  694e31a5b9c1832ad042105ef2181f0e986e77af \
                    sha256  c9502d469593c584d38a9001fabff6287c5fce1154aa003cb4a57769ddeeead9 \
                    size    20104

#not supporting 3x because py-keyring is broken on python 3.x
python.versions     27

if {${name} ne ${subport}} {
    depends_run         port:py${python.version}-keyring \
                        port:py${python.version}-mercurial_extension_utils \
                        port:mercurial

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

    post-destroot {
       xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
       xinstall -m 644 -W ${worksrcpath} README.txt \
          ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type      none
}