# -*- 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 78753 2011-05-21 14:00:08Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python27 1.0

name			py27-pyx
version			0.10
revision		1
categories		python
platforms		darwin
maintainers		nomaintainer
supported_archs	noarch

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

patchfiles      setup.py.diff
post-patch {
    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/setup.py
}

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

	# only register sample config file to the port
	move ${destroot}${prefix}/etc/pyxrc ${destroot}${prefix}/etc/pyxrc.sample
}

livecheck.type   sourceforge
livecheck.name pyx
