Ticket #16503: Portfile

File Portfile, 2.6 KB (added by stevecheckoway (Stephen Checkoway), 16 years ago)
Line 
1# -*- 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
2# $Id$
3PortSystem          1.0
4name                jgraph
5version             8.3
6categories          graphics
7homepage \
8    http://www.cs.utk.edu/~plank/plank/jgraph/jgraph.html
9maintainers         cs.ucsd.edu:s
10description         A Filter for Plotting Graphs in Postscript
11long_description    Jgraph is a program that takes the description \
12                    a graph or graphs as input, and produces a \
13                    postscript file on the standard output. Jgraph \
14                    is ideal for plotting any mixture of scatter \
15                    point graphs, line graphs, and/or bar graphs, \
16                    and embedding the output into LaTeX, or any \
17                    other text processing system that can read \
18                    postscript
19platforms           darwin
20distname            ${name}
21dist_subdir         ${name}/${version}
22master_sites        http://www.cs.utk.edu/~plank/plank/jgraph/
23checksums           md5 f73fa282f7fe6cf562e08c70da7bfb65 \
24                    sha1 4ea864f7bca8cf03217fc57a745753092493ddfa \
25                    rmd160 b575acd5fa8f99c8433e81128619a7247881c306
26patchfiles          patch-jgraph.h.diff \
27                    patch-list.c.diff \
28                    patch-makefile.diff \
29                    patch-token.c.diff
30
31post-extract {
32    # The tarball comes with object files!
33    file delete ${worksrcpath}/jgraph
34    file delete ${worksrcpath}/draw.o
35    file delete ${worksrcpath}/edit.o
36    file delete ${worksrcpath}/jgraph.o
37    file delete ${worksrcpath}/list.o
38    file delete ${worksrcpath}/printline.o
39    file delete ${worksrcpath}/prio_list.o
40    file delete ${worksrcpath}/process.o
41    file delete ${worksrcpath}/show.o
42    file delete ${worksrcpath}/token.o
43    # Replace JGRAPH_DIR with the actual directory
44    reinplace "s,JGRAPH_DIR,${prefix}/share/examples/${name}," ${worksrcpath}/jgraph.1
45}
46
47use_configure no
48use_test no
49destroot {
50    xinstall -m 755 -d ${destroot}$prefix/bin
51    xinstall -m 755 ${worksrcpath}/jgraph ${destroot}${prefix}/bin
52    xinstall -m 755 -d ${destroot}$prefix/share/man
53    xinstall -m 755 -d ${destroot}$prefix/share/man/man1
54    xinstall -m 644 ${worksrcpath}/jgraph.1 \
55        ${destroot}${prefix}/share/man/man1
56    xinstall -m 755 -d ${destroot}$prefix/share/doc/${name}
57    xinstall -m 644 ${worksrcpath}/README \
58        ${destroot}${prefix}/share/doc/${name}
59    xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
60    eval xinstall -m 644 [glob ${worksrcpath}/*.jgr] \
61        ${destroot}${prefix}/share/examples/${name}
62}