# $Id: Portfile 87033 2011-11-08 10:03:21Z and.damore@macports.org $

PortSystem          1.0
PortGroup           python 1.0
name                py-keyring
version             0.6.2
license             PSF
maintainers         and.damore openmaintainer
description         Python interface to access the system keyring service
long_description \
    The Python keyring lib provides a easy way to access the system keyring \
    service from python. It can be used in any application that needs safe \
    password storage. The OSXKeychain keyring service supports the Keychain \
    service in Mac OS X.

platforms           darwin

homepage            http://pypi.python.org/pypi/keyring
master_sites        http://pypi.python.org/packages/source/k/keyring
distname            keyring-${version}

checksums           md5     b21b5783c375fc09abdc060b4edc062f \
                    sha1    a8a964c73ce96a19f30d9aa9a47d2feab948022c \
                    rmd160  c49fb3c0baa190c798d25e78f392b273cd771540

#broken with python 3.1 and 3.2
python.versions     24 25 26 27
python.default_version  27

if {${subport} != ${name}} {
    post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport} \
                          ${destroot}${prefix}/share/examples/${subport}
        xinstall -m 644 -W ${worksrcpath} CONTRIBUTORS.txt CHANGES.txt README \
            ${destroot}${prefix}/share/doc/${subport}
        eval file copy [glob ${worksrcpath}/demo/*] \
            ${destroot}${prefix}/share/examples/${subport}
    }
}

livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     "keyring-(\\d+(?:\\.\\d+)*)${extract.suffix}"

