diff -Nur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/science/ngspice/Portfile ngspice/Portfile
old
|
new
|
|
4 | 4 | |
5 | 5 | name ngspice |
6 | 6 | version 27 |
| 7 | revision 1 |
7 | 8 | license BSD |
8 | 9 | categories science cad |
9 | 10 | maintainers {@mguthaus ucsc.edu:mrg+openram} openmaintainer |
… |
… |
|
23 | 24 | |
24 | 25 | set docdir ${prefix}/share/doc/${name} |
25 | 26 | |
| 27 | patchfiles patch-graph-geometry.diff |
| 28 | |
26 | 29 | if {${name} eq ${subport}} { |
27 | 30 | depends_lib port:ncurses \ |
28 | 31 | port:libedit \ |
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); |