# -*- 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        python-xlib python-xlib 0.26
revision            0
name                py-xlib

categories-append   x11
platforms           darwin
supported_archs     noarch
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  5004524c6c685902559520a4f26957cb4ceaf1f9 \
                    sha256  2319373e3b22738454ba9351952ecb27d07770d70deee9affc3eebd0de47d073 \
                    size    261297

python.versions     27 37 38

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}
    }

    livecheck.type  none
}
