# -*- 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
# $Id: Portfile 87757 2011-12-04 09:46:55Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-xlib
version             0.15rc1
categories-append   x11
platforms           darwin
maintainers         nomaintainer
supported_archs     noarch

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.

homepage            http://python-xlib.sourceforge.net/
master_sites        sourceforge:project/python-xlib/python-xlib/${version}
use_bzip2           yes
distname            python-xlib-${version}

checksums           rmd160  31ba07ccc6d793962d444205907a89df0c56b961 \
                    sha256  15f8e93e9d4c04eb11d567e59ed49799e44a1f26df70711d3df2f75b80f97f57

python.versions     24 25 26 27
python.default_version 27


post-destroot {
    if {$subport != $name} {
        xinstall -m 644 -W ${worksrcpath} \
            COPYING NEWS README TODO \
            ${destroot}${prefix}/share/doc/${subport}
        eval xinstall -m 644 [glob ${worksrcpath}/examples/*] \
           ${destroot}${prefix}/share/doc/${subport}/examples
    }
}
