[46580] trunk/dports/science/ng-spice

macsforever2000 at macports.org macsforever2000 at macports.org
Sat Feb 7 13:07:18 PST 2009


Revision: 46580
          http://trac.macports.org/changeset/46580
Author:   macsforever2000 at macports.org
Date:     2009-02-07 13:07:16 -0800 (Sat, 07 Feb 2009)
Log Message:
-----------
Updated to version rework-18. (#18208)

Modified Paths:
--------------
    trunk/dports/science/ng-spice/Portfile

Added Paths:
-----------
    trunk/dports/science/ng-spice/files/
    trunk/dports/science/ng-spice/files/patch-autogen.sh.diff
    trunk/dports/science/ng-spice/files/patch-hpgl.c.diff
    trunk/dports/science/ng-spice/files/patch-numparam.h.diff
    trunk/dports/science/ng-spice/files/patch-postsc.c.diff
    trunk/dports/science/ng-spice/files/patch-runcoms.c.diff
    trunk/dports/science/ng-spice/files/patch-runcoms2.c.diff
    trunk/dports/science/ng-spice/files/patch-spicenum.c.diff

Modified: trunk/dports/science/ng-spice/Portfile
===================================================================
--- trunk/dports/science/ng-spice/Portfile	2009-02-07 19:52:07 UTC (rev 46579)
+++ trunk/dports/science/ng-spice/Portfile	2009-02-07 21:07:16 UTC (rev 46580)
@@ -2,18 +2,39 @@
 
 PortSystem 1.0
 name             ng-spice
-version          rework-15c
+version          rework-18
 categories       science
 maintainers      nomaintainer
 description      Circuit simulator based on Spice 3f5
 long_description \
-    ${description}
+                 Ngspice is a mixed-level/mixed-signal circuit simulator. Its \
+                 code is based on three open source software packages: Spice3f5, \
+                 Cider1b1 and Xspice. Ngspice is part of gEDA project, a full \
+                 GPL'd suite of Electronic Design Automation tools. \
+                 Note: this port does not compile the Cider and Xspice modules.
 homepage         http://ngspice.sourceforge.net/
 platforms        darwin
 
 master_sites     sourceforge:ngspice
-checksums        md5 55157484b65073e981ad7c7baf6d4101
 
-worksrcdir       ${name}-rework-15
+depends_build    port:libtool
 
-configure.args   --mandir=${prefix}/share/man --infodir=${prefix}/share/info
+checksums        md5 3ab09b939939f7d0fb8cc9d8c77ead71 \
+                 sha1 fd97cf87e164ad5b9f8ff8c73cfcef4480c4047e \
+                 rmd160 e123c97060ce427ff11e6859b61dbd471ebf0cf9
+
+patchfiles       patch-autogen.sh.diff \
+                 patch-postsc.c.diff \
+                 patch-hpgl.c.diff \
+                 patch-runcoms.c.diff \
+                 patch-runcoms2.c.diff \
+                 patch-numparam.h.diff \
+                 patch-spicenum.c.diff
+
+pre-configure {
+	system "cd ${worksrcpath} && ./autogen.sh"
+}
+configure.args   --mandir=${prefix}/share/man \
+                 --infodir=${prefix}/share/info \
+                 --with-editline=yes \
+                 --enable-x

Added: trunk/dports/science/ng-spice/files/patch-autogen.sh.diff
===================================================================
--- trunk/dports/science/ng-spice/files/patch-autogen.sh.diff	                        (rev 0)
+++ trunk/dports/science/ng-spice/files/patch-autogen.sh.diff	2009-02-07 21:07:16 UTC (rev 46580)
@@ -0,0 +1,20 @@
+--- autogen.sh.orig	2007-12-15 08:41:48.000000000 -0500
++++ autogen.sh	2009-01-24 20:32:15.000000000 -0500
+@@ -53,7 +53,7 @@
+ 	DIE=1
+         }
+ 
+-(libtoolize --version) < /dev/null > /dev/null 2>&1 || {
++(glibtoolize --version) < /dev/null > /dev/null 2>&1 || {
+ 	echo
+ 	echo "You must have libtool installed to compile $PROJECT."
+ 	echo "See http://www.gnu.org/software/libtool/"
+@@ -160,7 +160,7 @@
+ fi
+ 
+ echo "Running libtoolize"
+-libtoolize --copy --force
++glibtoolize --copy --force
+ if [ $? -ne 0 ];then  echo "libtoolize failed"; exit 1 ; fi
+ 
+ echo "Running aclocal $ACLOCAL_FLAGS"

Added: trunk/dports/science/ng-spice/files/patch-hpgl.c.diff
===================================================================
--- trunk/dports/science/ng-spice/files/patch-hpgl.c.diff	                        (rev 0)
+++ trunk/dports/science/ng-spice/files/patch-hpgl.c.diff	2009-02-07 21:07:16 UTC (rev 46580)
@@ -0,0 +1,11 @@
+--- src/frontend/hpgl.c.orig	2005-05-30 16:28:30.000000000 -0400
++++ src/frontend/hpgl.c	2009-01-25 00:12:14.000000000 -0500
+@@ -75,7 +75,7 @@
+                 };
+ 
+ static FILE *plotfile;
+-char psfont[128], psfontsize[32], psscale[32];
++static char psfont[128], psfontsize[32], psscale[32];
+ static int fontwidth  = FONTWIDTH;
+ static int fontheight = FONTHEIGHT;
+ static int   jgmult      = 10;

Added: trunk/dports/science/ng-spice/files/patch-numparam.h.diff
===================================================================
--- trunk/dports/science/ng-spice/files/patch-numparam.h.diff	                        (rev 0)
+++ trunk/dports/science/ng-spice/files/patch-numparam.h.diff	2009-02-07 21:07:16 UTC (rev 46580)
@@ -0,0 +1,11 @@
+--- src/frontend/numparam/numparam.h.orig	2009-01-25 18:34:50.000000000 -0500
++++ src/frontend/numparam/numparam.h	2009-01-25 18:35:16.000000000 -0500
+@@ -77,6 +77,6 @@
+  char getidtype( tdico *d, char * s);
+  int attrib( tdico *dico, char * t, char op );
+ 
+-char *nupa_inst_name;
+-tdico *inst_dico;
++extern char *nupa_inst_name;
++extern tdico *inst_dico;
+  

Added: trunk/dports/science/ng-spice/files/patch-postsc.c.diff
===================================================================
--- trunk/dports/science/ng-spice/files/patch-postsc.c.diff	                        (rev 0)
+++ trunk/dports/science/ng-spice/files/patch-postsc.c.diff	2009-02-07 21:07:16 UTC (rev 46580)
@@ -0,0 +1,11 @@
+--- src/frontend/postsc.c.orig	2005-05-30 16:28:30.000000000 -0400
++++ src/frontend/postsc.c	2009-01-25 00:12:33.000000000 -0500
+@@ -59,7 +59,7 @@
+ 		};
+ 
+ static FILE *plotfile;
+-char psfont[128], psfontsize[32], psscale[32], pscolor[32];
++static char psfont[128], psfontsize[32], psscale[32], pscolor[32];
+ static int fontsize   = FONTSIZE;
+ static int fontwidth  = FONTWIDTH;
+ static int fontheight = FONTHEIGHT;

Added: trunk/dports/science/ng-spice/files/patch-runcoms.c.diff
===================================================================
--- trunk/dports/science/ng-spice/files/patch-runcoms.c.diff	                        (rev 0)
+++ trunk/dports/science/ng-spice/files/patch-runcoms.c.diff	2009-02-07 21:07:16 UTC (rev 46580)
@@ -0,0 +1,11 @@
+--- src/frontend/runcoms.c.orig	2008-09-21 18:18:10.000000000 -0400
++++ src/frontend/runcoms.c	2009-01-25 18:16:14.000000000 -0500
+@@ -41,7 +41,7 @@
+ FILE *rawfileFp;
+ bool rawfileBinary;
+ #define RAWBUF_SIZE 32768
+-char rawfileBuf[RAWBUF_SIZE];
++static char rawfileBuf[RAWBUF_SIZE];
+ /*To tell resume the rawfile name saj*/
+ char *last_used_rawfile = NULL;
+ /*end saj */

Added: trunk/dports/science/ng-spice/files/patch-runcoms2.c.diff
===================================================================
--- trunk/dports/science/ng-spice/files/patch-runcoms2.c.diff	                        (rev 0)
+++ trunk/dports/science/ng-spice/files/patch-runcoms2.c.diff	2009-02-07 21:07:16 UTC (rev 46580)
@@ -0,0 +1,11 @@
+--- src/frontend/runcoms2.c.orig	2007-12-29 16:11:12.000000000 -0500
++++ src/frontend/runcoms2.c	2009-01-25 18:16:51.000000000 -0500
+@@ -25,7 +25,7 @@
+ #include "inpdefs.h"
+ 
+ #define RAWBUF_SIZE 32768
+-char rawfileBuf[RAWBUF_SIZE];
++static char rawfileBuf[RAWBUF_SIZE];
+ 
+ /* Continue a simulation. If there is non in progress, this is the
+  * equivalent of "run".

Added: trunk/dports/science/ng-spice/files/patch-spicenum.c.diff
===================================================================
--- trunk/dports/science/ng-spice/files/patch-spicenum.c.diff	                        (rev 0)
+++ trunk/dports/science/ng-spice/files/patch-spicenum.c.diff	2009-02-07 21:07:16 UTC (rev 46580)
@@ -0,0 +1,12 @@
+--- src/frontend/numparam/spicenum.c.orig	2009-01-25 18:30:35.000000000 -0500
++++ src/frontend/numparam/spicenum.c	2009-01-25 18:38:15.000000000 -0500
+@@ -27,6 +27,9 @@
+ #include "numparam.h"
+ #include "ngspice.h"
+ 
++char *nupa_inst_name;
++tdico *inst_dico;
++
+ extern void txfree (void *ptr);
+ 
+ /* Uncomment this line to allow debug tracing */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090207/261ed24b/attachment.html>


More information about the macports-changes mailing list