# -*- 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-chm
python.rootname     pychm
version             0.8.6
revision            0

categories-append   textproc
maintainers         nomaintainer
license             GPL-2+

description         PyCHM is a set of Python bindings for Jed Wing's chmlib.
long_description    {*}${description}
homepage            https://github.com/dottedmag/pychm/

checksums           rmd160  65654bc059a20166f0501f59b59f66626d330ec7 \
                    sha256  26606fec1e30cf7506c7afa943460c31e8dac87f35b7f178f437574d654cf672 \
                    size    19562

python.versions     312

if {${name} ne ${subport}} {
    depends_lib-append  port:chmlib

    build.env       CFLAGS=-I${prefix}/include \
                    LDFLAGS=-L${prefix}/lib

    post-destroot {
        xinstall -m 0644 -W ${worksrcpath} COPYING LICENSE NEWS README \
            ${destroot}${prefix}/share/doc/${subport}
    }
}
