# -*- 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-xlib
python.rootname     python-xlib
version             0.33
revision            0

categories-append   x11
supported_archs     noarch
platforms           {darwin any}
license             LGPL-2.1+
maintainers         nomaintainer

description         python module for the X protocol
long_description    The Python X Library is intended to be a fully \
                    functional X client library for Python programs. It is \
                    written entirely in Python. This is possible to do \
                    since X client programs communicate with the X server \
                    via the X protocol. The communication takes place over \
                    TCP/IP, Unix sockets, DECnet or any other suitable \
                    streaming network protocol.

checksums           rmd160  4d95bf8174be427c2ded2eef1372bcdd71c9849b \
                    sha256  55af7906a2c75ce6cb280a584776080602444f75815a7aff4d287bb2d7018b32 \
                    size    269068

python.versions     313

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

    depends_lib-append \
                    port:py${python.version}-six

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE \
            CHANGELOG.md TODO ${destroot}${docdir}
        xinstall -m 0644 {*}[glob ${worksrcpath}/examples/*] \
           ${destroot}${docdir}
    }
}
