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

PortSystem 1.0
PortGroup python24 1.0

name			py-ana
version			0.9.2
categories		python
platforms		darwin
maintainers		nomaintainer
description		python module for using Apache Xalan XSLT engine
long_description	Pyana is a extension module that allows Python \
				programs to interface with the Apache Software \
				Foundation's Xalan XSLT transformation engine.

homepage		http://pyana.sourceforge.net/
master_sites	sourceforge:pyana
distname		Pyana-${version}
checksums		md5 5981a9d42ba0531fe8509ec89b3ab967

depends_lib-append	lib:libxalan-c:xalanc \
				lib:libxerces-c:xercesc

build.env		XALANCROOT='${prefix}' \
				XERCESCROOT='${prefix}'

destroot.env	${build.env}

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} LICENSE.txt Readme.txt \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath}/Examples zip_resolver_example.py \
		helloworld.py input_example.py measure_compressability.py \
		simple_callbacks.py top_level_arguments.py check_links.py \
		transformer_example.py ${destroot}${prefix}/share/doc/${name}/examples
}
