# -*- 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-krb5
version             0.7.0
revision            0

categories-append   net security
platforms           {darwin any}
license             MIT
maintainers         {petr @petrrr} openmaintainer

description         Kerberos API bindings for Python
long_description    \
    This library provides Python functions that wraps the Kerberos 5 C API. \
    Due to the complex nature of this API it is highly recommended to use \
    something like python-gssapi which exposes the Kerberos authentication \
    details through GSSAPI.

homepage            https://github.com/jborean93/pykrb5

checksums           rmd160  c8edcdd3492f0f6879c0f10f179b2361fcd32d33 \
                    sha256  6a308f2e17d151c395b24e6aec7bdff6a56fe3627a32042fc86d412398a92ddd \
                    size    235693

python.versions     39 310 311 312 313

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

    post-destroot {
        set dest_doc ${destroot}${prefix}/share/doc/${subport}
        xinstall -d ${dest_doc}
        xinstall -m 0644 -W ${worksrcpath} LICENSE README.md ${dest_doc}
    }
}
