# -*- 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
PortGroup           github 1.0

github.setup        FSX misaka 2.1.1 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
name                py-misaka

license             MIT
maintainers         nomaintainer

description         A CFFI binding for Hoedown, a markdown parsing library
long_description    {*}${description}

checksums           rmd160  09591655c650baa7185a25918dd339796bf77aae \
                    sha256  d3432c8cf318a4fe841a67b4a6697398c4bfe22c056895019ec90aecf4bd7586 \
                    size    112723

python.versions     312

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

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} THANKS README.rst \
            LICENSE.txt ${destroot}${docdir}
    }
}
