[39881] trunk/dports/graphics

ryandesign at macports.org ryandesign at macports.org
Wed Sep 10 11:33:54 PDT 2008


Revision: 39881
          http://trac.macports.org/changeset/39881
Author:   ryandesign at macports.org
Date:     2008-09-10 11:33:53 -0700 (Wed, 10 Sep 2008)
Log Message:
-----------
jgraph: new port, version 8.3; closes #16503

Added Paths:
-----------
    trunk/dports/graphics/jgraph/
    trunk/dports/graphics/jgraph/Portfile
    trunk/dports/graphics/jgraph/files/
    trunk/dports/graphics/jgraph/files/patch-jgraph.h.diff
    trunk/dports/graphics/jgraph/files/patch-list.c.diff
    trunk/dports/graphics/jgraph/files/patch-makefile.diff
    trunk/dports/graphics/jgraph/files/patch-token.c.diff

Added: trunk/dports/graphics/jgraph/Portfile
===================================================================
--- trunk/dports/graphics/jgraph/Portfile	                        (rev 0)
+++ trunk/dports/graphics/jgraph/Portfile	2008-09-10 18:33:53 UTC (rev 39881)
@@ -0,0 +1,64 @@
+# -*- 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$
+
+PortSystem          1.0
+
+name                jgraph
+version             8.3
+categories          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
+platforms           darwin
+distname            ${name}
+dist_subdir         ${name}/${version}
+master_sites        http://www.cs.utk.edu/~plank/plank/jgraph/
+checksums           md5 f73fa282f7fe6cf562e08c70da7bfb65 \
+                    sha1 4ea864f7bca8cf03217fc57a745753092493ddfa \
+                    rmd160 b575acd5fa8f99c8433e81128619a7247881c306
+patchfiles          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}
+}


Property changes on: trunk/dports/graphics/jgraph/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/graphics/jgraph/files/patch-jgraph.h.diff
===================================================================
--- trunk/dports/graphics/jgraph/files/patch-jgraph.h.diff	                        (rev 0)
+++ trunk/dports/graphics/jgraph/files/patch-jgraph.h.diff	2008-09-10 18:33:53 UTC (rev 39881)
@@ -0,0 +1,10 @@
+--- jgraph.h.orig	2008-09-09 19:25:48.000000000 -0700
++++ jgraph.h	2008-09-09 19:06:47.000000000 -0700
+@@ -9,6 +9,7 @@
+ #include "prio_list.h"
+ #ifdef LCC
+ #include <stdlib.h>
++#include <string.h>
+ #endif
+ 
+ #define PPI 120

Added: trunk/dports/graphics/jgraph/files/patch-list.c.diff
===================================================================
--- trunk/dports/graphics/jgraph/files/patch-list.c.diff	                        (rev 0)
+++ trunk/dports/graphics/jgraph/files/patch-list.c.diff	2008-09-10 18:33:53 UTC (rev 39881)
@@ -0,0 +1,10 @@
+--- list.c.orig	2008-09-09 19:25:59.000000000 -0700
++++ list.c	2008-09-09 19:07:37.000000000 -0700
+@@ -6,6 +6,7 @@
+  */
+ 
+ #include <stdio.h>    /* Basic includes and definitions */
++#include <stdlib.h>
+ #include "list.h"
+ 
+ #define boolean int

Added: trunk/dports/graphics/jgraph/files/patch-makefile.diff
===================================================================
--- trunk/dports/graphics/jgraph/files/patch-makefile.diff	                        (rev 0)
+++ trunk/dports/graphics/jgraph/files/patch-makefile.diff	2008-09-10 18:33:53 UTC (rev 39881)
@@ -0,0 +1,11 @@
+--- makefile.orig	2008-09-09 19:26:44.000000000 -0700
++++ makefile	2008-09-09 19:08:06.000000000 -0700
+@@ -6,7 +6,7 @@
+ # Also, before installing, you should change the string "JGRAPH_DIR" in 
+ # jgraph.1 to be the directory containing the example jgraphs.
+ 
+-CC = gcc -LCC
++CC = gcc -DLCC -O3
+ 
+ OBJS = draw.o \
+ 		edit.o \

Added: trunk/dports/graphics/jgraph/files/patch-token.c.diff
===================================================================
--- trunk/dports/graphics/jgraph/files/patch-token.c.diff	                        (rev 0)
+++ trunk/dports/graphics/jgraph/files/patch-token.c.diff	2008-09-10 18:33:53 UTC (rev 39881)
@@ -0,0 +1,10 @@
+--- token.c.orig	2008-09-09 19:26:17.000000000 -0700
++++ token.c	2008-09-09 19:07:18.000000000 -0700
+@@ -10,6 +10,7 @@
+ 
+ #ifdef LCC 
+ #include <stdlib.h>
++#include <string.h>
+ #endif
+ 
+ #ifdef VMS 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080910/9c5f3271/attachment.html 


More information about the macports-changes mailing list