Ticket #56552: ngspice-geom.diff

File ngspice-geom.diff, 1.9 KB (added by DanielO (Daniel O'Connor), 6 years ago)
  • ngspice/Portfile

    diff -Nur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/science/ngspice/Portfile ngspice/Portfile
    old new  
    44
    55name            ngspice
    66version         27
     7revision        1
    78license         BSD
    89categories      science cad
    910maintainers     {@mguthaus ucsc.edu:mrg+openram} openmaintainer
     
    2324
    2425set docdir      ${prefix}/share/doc/${name}
    2526
     27patchfiles      patch-graph-geometry.diff
     28
    2629if {${name} eq ${subport}} {
    2730    depends_lib         port:ncurses \
    2831                        port:libedit \
  • ngspice/files/patch-graph-geometry.diff

    diff -Nur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/science/ngspice/files/patch-graph-geometry.diff ngspice/files/patch-graph-geometry.diff
    old new  
     1--- ./src/frontend/plotting/x11.c.orig  2018-05-29 11:24:33.000000000 +0930
     2+++ ./src/frontend/plotting/x11.c       2018-05-29 11:42:23.000000000 +0930
     3@@ -129,8 +129,8 @@
     4     XGCValues gcvalues;
     5 
     6     /* grrr, Xtk forced contortions */
     7-    char *argv[2];
     8-    int argc = 2;
     9+    char *argv[4];
     10+    int argc = 4;
     11 
     12     if (cp_getvar("display", CP_STRING, buf)) {
     13         displayname = buf;
     14@@ -145,10 +145,10 @@
     15 
     16     argv[0] = "ngspice";
     17     argv[1] = displayname;
     18-/*
     19   argv[2] = "-geometry";
     20-  argv[3] = "=1x1+2+2";
     21-*/
     22+  argv[3] = getenv("GEOMETRY");
     23+  if (argv[3] == NULL)
     24+    argv[3] = "=800x600";
     25 
     26     /* initialize X toolkit */
     27     toplevel = XtInitialize("ngspice", "Nutmeg", NULL, 0, &argc, argv);