# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python26 1.0

name			py26-pyx
version			0.10
categories		python
platforms		darwin
maintainers		stechert
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 e8a9219192daff9fd8eb479d5987cbc7e37b0188

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
}

livecheck.type   sourceforge
livecheck.name pyx
