Jgraph version 8.3 - How to Download and Install on Mac OS X
Monday the 23rd of November, 2009

    version 8.3

      View the most recent changes for the jgraph port at: jgraph.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for jgraph.
      The raw portfile for jgraph 8.3 is located here:
      http://jgraph.darwinports.com/dports/graphics/jgraph/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/jgraph


      # -*- 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
      The jgraph Portfile 56055 2009-08-23 23:03:40Z ryandesign macports.org $

      PortSystem 1.0

      Name: jgraph
      Version: 8.3
      Category: graphics
      Homepage: http://www.cs.utk.edu/~plank/plank/jgraph/jgraph.html
      Maintainers: cs.ucsd.edu:s
      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 PostScript
      Platform: darwin
      distname ${name}
      dist_subdir ${name}/${version}
      Master Sites: http://www.cs.utk.edu/~plank/plank/jgraph/
      Checksums: md5 f73fa282f7fe6cf562e08c70da7bfb65 sha1 4ea864f7bca8cf03217fc57a745753092493ddfa rmd160 b575acd5fa8f99c8433e81128619a7247881c306
      Patch Files: patch-jgraph.h.diff patch-list.c.diff patch-makefile.diff patch-token.c.diff

      post-extract {
      # 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
      }

      use_configure no
      use_test no
      destroot {
      xinstall -m 755 -d ${destroot}$prefix/bin
      xinstall -m 755 ${worksrcpath}/jgraph ${destroot}${prefix}/bin
      xinstall -m 755 -d ${destroot}$prefix/share/man
      xinstall -m 755 -d ${destroot}$prefix/share/man/man1
      xinstall -m 644 ${worksrcpath}/jgraph.1 ${destroot}${prefix}/share/man/man1
      xinstall -m 755 -d ${destroot}$prefix/share/doc/${name}
      xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
      xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
      eval xinstall -m 644 [glob ${worksrcpath}/*.jgr] ${destroot}${prefix}/share/examples/${name}
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/jgraph
      % sudo port install jgraph
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching jgraph
      ---> Verifying checksum for jgraph
      ---> Extracting jgraph
      ---> Configuring jgraph
      ---> Building jgraph with target all
      ---> Staging jgraph into destroot
      ---> Installing jgraph
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using jgraph with these commands:
      %  man jgraph
      % apropos jgraph
      % which jgraph
      % locate jgraph

     Where to find more information:

    Darwin Ports



    Lightbox this page.