# $Id: Portfile 30249 2007-10-23 02:12:47Z jmpp@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-tarfile
version			0.7.5
categories		python
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

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/${name}
	xinstall -m 644 -W ${worksrcpath} HISTORY README README.python-2.x \
		TODO ${destroot}${prefix}/share/doc/${name}
}
