# $Id: Portfile 66108 2010-04-06 04:20:44Z jmr@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name                    py-gnuplot
version                 1.8
categories-append       devel math
maintainers             nomaintainer
platforms               darwin
if {[info exists supported_archs]} {
    supported_archs noarch
}
description             A Python interface to the gnuplot plotting program.
long_description        Gnuplot.py is a Python package that allows you to \
                        create graphs from within Python using the gnuplot \
                        plotting program.

homepage                http://gnuplot-py.sourceforge.net/
master_sites            sourceforge:gnuplot-py
distname                gnuplot-py-${version}
checksums               md5     abd6f571e7aec68ae7db90a5217cd5b1 \
                        sha1    1fab2850cd1881f4ede1f7978a8746af2aff9bb2 \
                        rmd160  0a06385a38e8b34d60d95e37b5d0a13dc682d520

depends_lib-append      port:py-numpy
depends_run             port:gnuplot

post-destroot {
        xinstall -m 644 -W ${worksrcpath} \
                ANNOUNCE.txt CREDITS.txt FAQ.txt Gnuplot.html \
                LICENSE.txt NEWS.txt README.txt TODO.txt \
                ${destroot}/${prefix}/share/doc/${name}
        file copy ${worksrcpath}/doc \
                ${destroot}/${prefix}/share/doc/${name}
}

