# -*- 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.20.0
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

platforms           {darwin any}
supported_archs     noarch
categories          python security
license             BSD
maintainers         {amake @amake} openmaintainer

checksums           rmd160  73e6bfd0142e92c51cac8d6f08f1fb9b3448881a \
                    sha256  b5abfd7d2b59cdda59f937fb22210ac4649ad0d2e09e1f87bfe74a54e23ad18a \
                    size    2722027

python.versions     39 310 311 312

if {${name} ne ${subport}} {
    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
}
