# $Id: Portfile,v 1.3 2006/04/14 10:04:54 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-pexpect
version			2.0
categories		python
platforms		darwin
maintainers		mww@opendarwin.org
description		python module for better controlling other applications
long_description	Pexpect makes Python a better tool for controlling \
				other applications. It is a pure Python module for \
				spawning child applications, controlling them and \
				responding to expected patterns in their output. \
				Pexpect works like Don Libes Expect. Pexpect allows \
				your script to spawn a child application and control \
				it as if a human were typing commands.

homepage		http://pexpect.sourceforge.net/
master_sites	sourceforge:pexpect
distfiles		pexpect-${version}.tgz \
				pexpect-${version}-examples.tgz
checksums		pexpect-${version}.tgz sha1 34f041dfbf288da7d56a3d7994fd1502a7137cda \
				pexpect-${version}-examples.tgz sha1 71f5d3b1eef924a1b6bf41caec70690f451e2078

worksrcdir		pexpect-${version}

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} README \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${workpath}/examples bd_client.py bd_serv.py \
		bd_client_web.py chess.py chess2.py chess3.py fix_cvs_files.py \
		ftp.py monitor.py passmass.py python.py ssh_session.py \
		ssh_tunnel.py sshls.py uptime.py \
		${destroot}${prefix}/share/doc/${name}/examples
}
