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

PortSystem 1.0
PortGroup python24 1.0

name			py-lzma
version			0.0.3
revision		1
categories		python archivers
platforms		darwin
maintainers		nomaintainer
description		Python bindings for the LZMA compression library.
long_description	${description}

homepage		http://www.joachim-bauch.de/projects/python/pylzma/
master_sites	ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/
distname		pylzma-${version}
checksums		md5 312416b2cdf6f4b82ec8fc7a816f74a4

test.run		no
test.dir		${worksrcpath}/tests
test.cmd		"ln -s ../build/lib*/pylzma.so && ln -s ../build/lib*/py7zlib.py . && ${python.bin} testall.py"
test.target

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} LICENSE.txt readme.txt version.txt \
		${destroot}${prefix}/share/doc/${name}
}

