# -*- 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 76546 2011-02-27 22:13:09Z snc@macports.org $

PortSystem 1.0

PortGroup           python27 1.0

name                py27-serial
version             2.5
categories-append   comms
platforms           darwin
maintainers         snc openmaintainer
license             Python

description         Python Serial Port Extension
long_description    This module incapsulates the access for the serial port. \
                    The module named "serial" automatically selects the appropriate \
                    backend.

homepage            http://pyserial.wiki.sourceforge.net/pySerial
master_sites        sourceforge:pyserial
supported_archs     noarch
distname            pyserial-${version}

checksums           sha1    fd991f9cf9bb02dfb3bd2cb48b582c2216f90031 \
                    rmd160  026c5937d5fba67a72445b5c193a337aa3776505

post-destroot {
    xinstall -m 644 -W ${worksrcpath} CHANGES.txt LICENSE.txt README.txt \
        ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath}/examples enhancedserial.py miniterm.py \
        port_publisher.py port_publisher.sh rfc2217_server.py scan.py tcp_serial_redirect.py \
        wxSerialConfigDialog.py wxSerialConfigDialog.wxg \
        wxTerminal.py wxTerminal.wxg \
        ${destroot}${prefix}/share/doc/${name}/examples
}
