Date: Tue, 7 Oct 1997 09:57:07 -0700 (PDT) From: giffunip@asme.org To: freebsd-gnats-submit@FreeBSD.ORG Subject: ports/4721: Minor update to SPICE Message-ID: <199710071657.JAA10429@hub.freebsd.org> Resent-Message-ID: <199710071700.KAA10668@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4721 >Category: ports >Synopsis: Minor update to SPICE >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Oct 7 10:00:01 PDT 1997 >Last-Modified: >Originator: Pedro Giffuni S. >Organization: U. Nacional de Colombia >Release: 2.2.2 R >Environment: >Description: I added the examples, changed the /usr/X11R6 to $(X11BASE) and fixed the minor "uses fgets()" warning. >How-To-Repeat: Please review, as maintainer seemed too busy. >Fix: diff -ruN spice.old/Makefile spice/Makefile --- spice.old/Makefile Mon Aug 18 00:24:51 1997 +++ spice/Makefile Tue Aug 19 00:00:12 1997 @@ -1,35 +1,38 @@ # New ports collection makefile for: spice -# Version required: 3f4 (3f5?) +# Version required: 3f5 # Date created: 26 Mar 96 # Whom: Julian Jenkins <kaveman@magna.com.au> # # $Id: Makefile,v 1.8 1997/01/31 08:23:06 tg Exp $ # -DISTNAME= sp3f4.kit -PKGNAME= spice-3f4 +DISTNAME= sp3f4.kit +PKGNAME= spice-3f5 CATEGORIES= cad MASTER_SITES= ftp://ic.eecs.berkeley.edu/pub/Spice3/ EXTRACT_SUFX= .tar.Z -#PATCH_SITES= ftp://ic.eecs.berkeley.edu/pub/Spice3/3f4patches -#PATCHFILES= grid.patch newcoms.patch spsmp.patch -# documentation in ftp://ic.eecs.berkeley.edu/pub/Spice3/um.3f3.ps MAINTAINER= kaveman@magna.com.au +# documentation in ftp://ic.eecs.berkeley.edu/pub/Spice3/um.3f3.ps + +# These are included as patch-ab +#PATCH_SITES= ftp://ilpsoft.eecs.berkeley.edu/pub/SPICE3F5/ +#PATCHFILES= grid.patch newcoms.patch spsmp.patch + NO_WRKSUBDIR= yes MAN1= sconvert.1 nutmeg.1 spice.1 MAN3= mfb.3 MAN5= mfbcap.5 post-install: - chmod a+rx ${PREFIX}/bin/spice3 ${PREFIX}/bin/nutmeg \ - ${PREFIX}/bin/sconvert ${PREFIX}/bin/help ${PREFIX}/bin/proc2mod \ - ${PREFIX}/bin/multidec strip ${PREFIX}/bin/spice3 ${PREFIX}/bin/nutmeg \ ${PREFIX}/bin/sconvert ${PREFIX}/bin/help ${PREFIX}/bin/proc2mod \ ${PREFIX}/bin/multidec - chmod -R a+rX ${PREFIX}/share/spice +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/examples/spice + ${INSTALL_DATA} ${WRKSRC}/examples/*.cir ${PREFIX}/share/examples/spice +.endif .include <bsd.port.mk> diff -ruN spice.old/files/FreeBSD spice/files/FreeBSD --- spice.old/files/FreeBSD Mon Aug 18 00:24:51 1997 +++ spice/files/FreeBSD Tue Aug 19 20:34:48 1997 @@ -1,9 +1,10 @@ # FreeBSD config exception file +SYS_CFLAGS = -Dbsd MAKE = /usr/bin/make INTERFACE_OPTS = -DWANT_X11 CC = gcc -CC_OPT = -O2 -pipe -Dbsd -CC_OPT_SAFE = -O2 -pipe -Dbsd -LDFLAGS = -L /usr/X11R6/lib -lm -ltermcap -ASM_HACK = < /dev/null +CC_OPT = -O2 -pipe +CC_OPT_SAFE = -O2 -pipe +LDFLAGS = -L$(X11BASE)/lib -lm -ltermcap +ASM_HACK = < /dev/null diff -ruN spice.old/files/Makefile spice/files/Makefile --- spice.old/files/Makefile Mon Aug 18 00:24:51 1997 +++ spice/files/Makefile Tue Aug 19 00:56:19 1997 @@ -9,3 +9,7 @@ install -c -m 644 -o bin -g bin man/man1/nutmeg.1 ${PREFIX}/man/man1/nutmeg.1 install -c -m 644 -o bin -g bin man/man1/spice.1 ${PREFIX}/man/man1/spice.1 install -c -m 644 -o bin -g bin man/man3/mfb.3 ${PREFIX}/man/man3/mfb.3 + chmod a+rx ${PREFIX}/bin/spice3 ${PREFIX}/bin/nutmeg \ + ${PREFIX}/bin/sconvert ${PREFIX}/bin/help ${PREFIX}/bin/proc2mod \ + ${PREFIX}/bin/multidec + chmod -R a+rX ${PREFIX}/share/spice diff -ruN spice.old/patches/patch-aa spice/patches/patch-aa --- spice.old/patches/patch-aa Mon Aug 18 00:24:51 1997 +++ spice/patches/patch-aa Mon Aug 18 20:14:01 1997 @@ -74,7 +74,7 @@ # X_DIR indicates the top of the X11 lib/include hierarchy; it is only # a convenience that is used in the following definitions. -! X_DIR = /usr/X11R6 +! X_DIR = $(X11BASE) # INCX lists the X include directories. This may be different between # MIT X11r5, X11r4, and your vendor's version of X11, though listing diff -ruN spice.old/patches/patch-ab spice/patches/patch-ab --- spice.old/patches/patch-ab Mon Aug 18 00:24:51 1997 +++ spice/patches/patch-ab Mon Aug 18 19:08:17 1997 @@ -1,3 +1,4 @@ +NOTE: This are Berkeley patches for 3F4 *** src/lib/fte/grid.c.orig Sun Apr 25 14:53:11 1993 --- src/lib/fte/grid.c Sat Jan 29 10:47:59 1994 *************** diff -ruN spice.old/patches/patch-ac spice/patches/patch-ac --- spice.old/patches/patch-ac Wed Dec 31 19:00:00 1969 +++ spice/patches/patch-ac Tue Aug 19 17:54:34 1997 @@ -0,0 +1,62 @@ +*** src/bin/sconvert.c.orig Tue Aug 19 17:44:17 1997 +--- src/bin/sconvert.c Tue Aug 19 17:47:11 1997 +*************** +*** 80,98 **** + + case 1: printf("Input file: "); + (void) fflush(stdout); +! (void) gets(buf); + sf = copy(buf); + printf("Input type: "); + (void) fflush(stdout); +! (void) gets(buf); + f = buf[0]; + printf("Output file: "); + (void) fflush(stdout); +! (void) gets(buf); + af = copy(buf); + printf("Output type: "); + (void) fflush(stdout); +! (void) gets(buf); + t = buf[0]; + break; + default: +--- 80,98 ---- + + case 1: printf("Input file: "); + (void) fflush(stdout); +! (void) fgets(buf,256,stdin); + sf = copy(buf); + printf("Input type: "); + (void) fflush(stdout); +! (void) fgets(buf,256,stdin); + f = buf[0]; + printf("Output file: "); + (void) fflush(stdout); +! (void) fgets(buf,256,stdin); + af = copy(buf); + printf("Output type: "); + (void) fflush(stdout); +! (void) fgets(buf,256,stdin); + t = buf[0]; + break; + default: +*** src/lib/fte/inp.c.orig Tue Aug 19 17:38:25 1997 +--- src/lib/fte/inp.c Tue Aug 19 17:33:01 1997 +*************** +*** 666,672 **** + + fprintf(cp_out, "run circuit? "); + fflush(cp_out); +! (void) gets(buf); + if (buf[0] != 'n') { + fprintf(cp_out, "running circuit\n"); + com_run(NULL); +--- 666,672 ---- + + fprintf(cp_out, "run circuit? "); + fflush(cp_out); +! (void) fgets(buf,256,stdin); + if (buf[0] != 'n') { + fprintf(cp_out, "running circuit\n"); + com_run(NULL); diff -ruN spice.old/pkg/COMMENT spice/pkg/COMMENT --- spice.old/pkg/COMMENT Mon Aug 18 00:24:51 1997 +++ spice/pkg/COMMENT Mon Aug 18 19:28:06 1997 @@ -1 +1 @@ -A general-purpose circuit simulator. +Simulation Program for Integrated Circuit Electronics diff -ruN spice.old/pkg/PLIST spice/pkg/PLIST --- spice.old/pkg/PLIST Mon Aug 18 00:24:51 1997 +++ spice/pkg/PLIST Mon Aug 18 01:54:00 1997 @@ -4,6 +4,25 @@ bin/help bin/proc2mod bin/multidec +share/examples/spice/bjtnoise.cir +share/examples/spice/bsim1tst.cir +share/examples/spice/bsim2tst.cir +share/examples/spice/diodisto.cir +share/examples/spice/ltra_1.cir +share/examples/spice/ltra_2.cir +share/examples/spice/ltra_3.cir +share/examples/spice/mixdisto.cir +share/examples/spice/mos6inv.cir +share/examples/spice/mosamp2.cir +share/examples/spice/mosmem.cir +share/examples/spice/pz2.cir +share/examples/spice/pzt.cir +share/examples/spice/rc.cir +share/examples/spice/rca3040.cir +share/examples/spice/resnoise.cir +share/examples/spice/rtlinv.cir +share/examples/spice/schmitt.cir +share/examples/spice/simplepz.cir share/spice/helpdir/spice.txt share/spice/helpdir/spice.idx share/spice/scripts/setplot >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710071657.JAA10429>