# -*- 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-xkcdpass
version             1.19.4
revision            0

description         A flexible and scriptable password generator which generates strong \
                    passphrases, inspired by XKCD 936
long_description    {*}${description}

homepage            https://github.com/redacted/XKCD-password-generator

categories          python security
license             BSD
maintainers         {amake @amake} openmaintainer

checksums           rmd160  d8d22558fffc05b4ca7858e35f9583a4312aff4a \
                    sha256  2935d54b482d19bcb54656bda01cbbec9ee41ffd42d235a52705fd95cab70fd7 \
                    size    2572291

python.versions     37 38 39 310 311

if {${name} ne ${subport}} {
    depends_build-append \
        port:py${python.version}-setuptools

    post-destroot {
        xinstall -m 0755 -d ${destroot}${python.prefix}/share/man/man1
        xinstall -m 0644 ${worksrcpath}/xkcdpass.1 ${destroot}${python.prefix}/share/man/man1
        system "gzip -9vf ${destroot}${python.prefix}/share/man/man1/xkcdpass.1"
    }

    test.run        yes
}
