# -*- 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

PortSystem          1.0

name                pyxplot
version             0.9.2
revision            29
categories          math science
maintainers         {mps @Schamschula} openmaintainer
license             GPL-3+

description         Pyxplot is a multi-purpose graph plotting tool
long_description    {*}${description}, scientific scripting language, vector graphics \
                    suite, and data processing package. Its interface is designed to \
                    make common tasks – e.g., plotting labelled graphs of data – \
                    accessible via short, simple, intuitive commands.

homepage            http://pyxplot.org.uk
master_sites        ${homepage}/src/
distname            ${name}_${version}

checksums           rmd160  d4eb39acfa22868f28ad93665cec5303bc567c8e \
                    sha256  1c592a0bc77caec445a8d72534471c01d66ca1806309e6c983847c2e0b95e689 \
                    size    4131841

worksrcdir          ${name}-${version}

depends_lib-append  port:cfitsio \
                    port:fftw-3 \
                    port:ghostscript \
                    port:gsl \
                    port:gv \
                    port:ImageMagick \
                    port:libpng \
                    port:python27 \
                    port:readline \
                    port:texlive-bin \
                    port:texlive-latex \
                    port:wget \
                    port:libxml2

patchfiles          patch-configure.diff \
                    patch-Makefile.skel.diff

patchfiles-append   patch-pyxplot-no-crash-ventura.diff

post-patch {
    reinplace "s|USRDIR=/usr/local|USRDIR=${prefix}|g" \
                ${worksrcpath}/Makefile.skel
}

universal_variant   no

build.env           CC=${configure.cc}

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}_(\[0-9.\]+)${extract.suffix}
