# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $

PortSystem 1.0

PortGroup		python24 1.0
name			py-serial
version			2.2
revision		1
categories		python comms
platforms		darwin
maintainers		vercruesse.de:opendarwin.nospam
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	sourceforge:pyserial
distname		pyserial-${version}
use_zip			yes
checksums		md5 14e774b7b6e5aa52820f0590d3b8c4d9

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