# -*- 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
# $Id: Portfile 118786 2014-04-11 00:14:11Z sean@macports.org $

PortSystem          1.0
PortGroup           python 1.0
PortGroup           bitbucket 1.0

bitbucket.setup     Mekk mercurial_keyring 0.6.2
name                py-mercurial_keyring

categories-append   devel
license             GPL
maintainers         sean openmaintainer
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  5a5407a680eb93f6ea823fffdd980a78fd856acb \
                    sha256  2b60e0430588043398e84194e6fffb08d83b618e6c1f65b2bd5847f710c6c43d

#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 \
                        bin:hg: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
}
