# -*- 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 100441 2012-12-12 14:08:55Z jmr@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-pyx
version			0.12.1
revision        3
license			GPL-2+
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    9e5e9c3235055a50565d94cfc02e758b61b01222

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
    }

}
