# -*- 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.8.0
revision            0

categories-append   net security
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  fce1ccb3af0f5bd0f60eab298a44bb76a9e3c31c \
                    sha256  daaf580cf563a2435cc889d4a0692e02c5788e1eb91f0246d56114cf4f08ba1c \
                    size    235540

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    patchfiles      patch-cython-pyprojec.toml.diff

    depends_build-append \
                    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}
    }
}
