# $Id: Portfile 57483 2009-09-11 15:31:13Z macsforever2000@macports.org $

PortSystem 1.0

PortGroup		python26 1.0
name			py26-serial
version			2.4
categories-append	comms
platforms		darwin
maintainers		macsforever2000
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.wiki.sourceforge.net/pySerial
master_sites		sourceforge:pyserial
distname		pyserial-${version}
checksums		md5 eec19df59fd75ba5a136992897f8e468 \
			sha1 9536434736aa92da17fd05eed260efd3864ff9bd \
			rmd160 c794cbc4bf006628e28a91c975bf897994dec095

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 \
		scan.py tcp_serial_redirect.py test.py test_advanced.py \
		wxSerialConfigDialog.py wxSerialConfigDialog.wxg \
		wxTerminal.py wxTerminal.wxg \
		${destroot}${prefix}/share/doc/${name}/examples
}
