# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 88881 2012-01-14 13:01:44Z phw@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-pyx
version			0.11.1
revision        3
categories		python
python.versions 24 25 26 27

platforms		darwin
maintainers		phw openmaintainer
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    c1849e140d326d528fa5f21068693889392f4ecb


if {${name} != ${subport}} {

    depends_lib-append	bin:tex:texlive

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

}
