# -*- 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
# see http://packages.debian.org/changelogs/pool/main/j/jgraph/current/copyright
http://www.cs.utk.edu/~plank/plank/jgraph/jgraph.html
description A Filter for Plotting Graphs in PostScript
long_description Jgraph is a program that takes the description \
a graph or graphs as input, and produces a \
PostScript file on the standard output. Jgraph \
is ideal for plotting any mixture of scatter \
point graphs, line graphs, and/or bar graphs, \
and embedding the output into LaTeX, or any \
other text processing system that can read \
dist_subdir ${name}/${version}
master_sites http://www.cs.utk.edu/~plank/plank/jgraph/
checksums rmd160 b575acd5fa8f99c8433e81128619a7247881c306 \
sha256 c2d3f6af348ef66bd3b1888730f99b79b00f0d0c58f13d90daacfa0f77f4ee0d \
patchfiles patch-draw.c.diff \
reinplace s|@@CC@@|${configure.cc}| ${worksrcpath}/makefile
# The tarball comes with object files!
file delete ${worksrcpath}/jgraph
file delete ${worksrcpath}/draw.o
file delete ${worksrcpath}/edit.o
file delete ${worksrcpath}/jgraph.o
file delete ${worksrcpath}/list.o
file delete ${worksrcpath}/printline.o
file delete ${worksrcpath}/prio_list.o
file delete ${worksrcpath}/process.o
file delete ${worksrcpath}/show.o
file delete ${worksrcpath}/token.o
# Replace JGRAPH_DIR with the actual directory
reinplace "s,JGRAPH_DIR,${prefix}/share/examples/${name}," ${worksrcpath}/jgraph.1
xinstall -m 0755 -d ${destroot}${prefix}/bin
xinstall -m 0755 ${worksrcpath}/jgraph ${destroot}${prefix}/bin
xinstall -m 0755 -d ${destroot}${prefix}/share/man
xinstall -m 0755 -d ${destroot}${prefix}/share/man/man1
xinstall -m 0644 ${worksrcpath}/jgraph.1 \
${destroot}${prefix}/share/man/man1
xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 0644 ${worksrcpath}/README \
${destroot}${prefix}/share/doc/${name}
xinstall -m 0755 -d ${destroot}${prefix}/share/examples/${name}
xinstall -m 0644 {*}[glob ${worksrcpath}/*.jgr] \
${destroot}${prefix}/share/examples/${name}
livecheck.url ${homepage}
livecheck.regex {The Software \(version (\d+(?:\.\d+)*)\)}