# $Id: Portfile 36283 2008-04-25 13:35:43Z jmr@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-pyx
version			0.9
revision		1
categories		python
platforms		darwin
maintainers		nomaintainer
description		PyX is a TeX/LaTeX interface for Python
long_description	PyX is a Python package for the creation of \
			    encapsulated PostScript figures. It provides both an \
			    abstraction of PostScript and a TeX/LaTeX interface. \
			    Complex tasks like 2d and 3d plots in \
			    publication-ready quality are built out of these \
			    primitives.

homepage		http://pyx.sourceforge.net
master_sites		sourceforge:pyx
distname		PyX-${version}
checksums		sha1 79daf941f0ad36126471567879aaf6f94d21ccc4

depends_lib-append	bin:tex:texlive

post-destroot {
	xinstall -m 644 -W ${worksrcpath} AUTHORS CHANGES INSTALL LICENSE \
		README ${destroot}${prefix}/share/doc/${name}
	file delete -force ${destroot}/etc

	# fix the paths that were calculated
	reinplace "s|${destroot}||g" ${destroot}${python.pkgd}/pyx/siteconfig.py
	reinplace "s|/etc|${prefix}/etc|g" ${destroot}${python.pkgd}/pyx/siteconfig.py
}
