# -*- 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 89681 2012-02-06 18:54:41Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-pexpect
set real_name       pexpect
version             2.4
categories          python
platforms           darwin
maintainers         nomaintainer

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://${real_name}.sourceforge.net/
master_sites        http://pypi.python.org/packages/source/p/${real_name} \
                    sourceforge:${real_name}
distname            ${real_name}-${version}

checksums           md5     fe82d69be19ec96d3a6650af947d5665 \
                    sha1    3e24584ef1aa51f7610d5077a608e49d2724c7ae \
                    rmd160  070693d9c82aaa44f1bd9cd9dfffa7643393b6de

worksrcdir          ${real_name}-${version}

universal_variant   no

python.versions     24 25 26 27

if {$subport != $name} {
    post-destroot {
        set docdir ${destroot}${prefix}/share/doc/${subport}
        xinstall -d ${docdir}
        xinstall -m 644 -W ${worksrcpath} README ${docdir}
    }
    livecheck.type  none
} else {
    livecheck.regex {pexpect Release (\d+(?:\.\d+)*) released}
}
