# $Id: Portfile 80758 2011-07-16 22:00:14Z pixilla@macports.org $

PortSystem          1.0
PortGroup           python26 1.0
name                py26-keyring
version             0.5.1
categories-append   devel
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     a2f0dcea7185580c163ef2db1f4fbe0c \
                    sha1    f7b9005313a24c4a00a295efcba4f9b2c1085f26 \
                    rmd160  950eeae68f5aa4605d42e091a24872ff24d7ad4d

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

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

