# $Id: Portfile,v 1.2 2004/12/31 14:29:06 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-lzma
version			0.0.3
revision		1
categories		python archivers
platforms		darwin
maintainers		mww@opendarwin.org
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}
}

