# -*- 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                py-otp
version             1.0
revision            2
categories-append   security
license             GPL
platforms           darwin
supported_archs     noarch
maintainers         nomaintainer
description         RFC2289 implementation for python (one-time password)
long_description    python-otp is a module which implements support for \
                    all requirements, recommendations, and optional \
                    features described in RFC2289. This RFC defines a \
                    standard for the implementation of OTP - one-time \
                    passwords.

homepage            https://labix.org/python-otp/
master_sites        https://labix.org/download/python-otp/
distname            python-otp-${version}
checksums           md5     351380746f9eaa624221e6037736c618 \
                    sha1    abb0c92b790fa4a32c126142aa8a1a9ecfbb5c52 \
                    rmd160  18297d9fd3a30efc034e5e540a320baac44f4619 \
                    sha256  23f48a8310397f6a53cc7a2a40656f3522d8271a7d31883585a7d32ac36d2603 \
                    size    38163

python.versions     27

if {${name} ne ${subport}} {
    post-destroot {
        xinstall -m 0644 -W ${worksrcpath} README rfc2289.txt \
            ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type  none
} else {
    livecheck.url   ${homepage}
    livecheck.type  regex
    livecheck.regex download/python-otp/python-otp-(.+?)${extract.suffix}
}