# -*- 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 92574 2012-05-01 17:34:30Z snc@macports.org $

PortSystem 1.0
PortGroup		python 1.0

name			py-serial
version			    2.6
python.versions     25 26 27 31 32
python.default_version  27
categories		python comms
platforms		darwin
maintainers         vercruesse.de:opendarwin.nospam macsforever2000
license             PSF
description		Python Serial Port Extension
long_description	This module incapsulates the access for the serial port. \
				It provides backends for standard Python running on Windows, \
				Linux, BSD (possibly any POSIX compliant system) and Jython. \
				The module named "serial" automatically selects the appropriate \
				backend.
homepage		http://pyserial.sourceforge.net/
master_sites	http://pypi.python.org/packages/source/p/pyserial
distname		pyserial-${version}

checksums           rmd160  a544cb4ac0dad2c7f93855f1db1be102cdb1e9cc \
                    sha256  049dbcda0cd475d3be903e721d60889ee2cc4ec3b62892a81ecef144196413ed

if {${subport} != ${name}} {
    post-destroot {
        xinstall -m 644 -W ${worksrcpath} CHANGES.txt LICENSE.txt README.txt \
            ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath}/examples enhancedserial.py \
            scan.py tcp_serial_redirect.py \
            wxSerialConfigDialog.py wxSerialConfigDialog.wxg \
            wxTerminal.py wxTerminal.wxg \
            ${destroot}${prefix}/share/doc/${subport}/examples
    }
    livecheck.type      none
} else {
    livecheck.url       http://pypi.python.org/pypi/pyserial
    livecheck.regex     pyserial-(\\d+(\\.\\d+)+)
}
