# -*- 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 88822 2012-01-13 00:51:13Z dports@macports.org $

PortSystem 1.0
PortGroup python 1.0

name                    py-gnuplot
version                 1.8
revision                1
categories-append       devel math
license                 LGPL
maintainers             nomaintainer
platforms               darwin
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

python.versions 24 25 26 27

if {$subport != $name} {
    depends_lib-append      port:py${python.version}-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/${subport}
        file copy ${worksrcpath}/doc \
            ${destroot}${prefix}/share/doc/${subport}
    }
}
