# $Id: Portfile 100886 2012-12-31 05:06:47Z jmr@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-tarfile
version			0.7.5
license			MIT
platforms		darwin freebsd
maintainers		nomaintainer
description		implementation of the tar format as modules for Python
long_description	tarfile is a comprehensive implementation of the tar \
				archive format as a module for the Python Language. It \
				enables read/write access to common tar archives \
				including support for gzip/bzip2 compressed archives. \
				Python 2.4 includes tarfile as part of the Standard \
				Library.

homepage		http://www.gustaebel.de/lars/tarfile/
master_sites	${homepage}
distname		tarfile-${version}
checksums		md5 56b67b2706e27898b2e7434356139701

python.versions	24

if {$subport != $name} {
    test.run		yes
    test.cmd		${python.bin} test_tarfile.py
    test.target
    
    post-destroot	{
        xinstall -m 644 -W ${worksrcpath}/doc lib.css module-tarfile.html \
            tar-examples.html tarfile-objects.html tarinfo-objects.html \
            ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} HISTORY README README.python-2.x \
            TODO ${destroot}${prefix}/share/doc/${subport}
    }
}
