summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorsommerfeld <sommerfeld>1999-06-21 15:05:24 +0000
committersommerfeld <sommerfeld>1999-06-21 15:05:24 +0000
commit14c43a46c039cb61744db90ada46ad65cfb329e9 (patch)
tree83f7c16c201ee4909135ed39a14aaa6d4fed096e /misc
parent17c10982d8bda3994102a9d588bde0a3341fe1b0 (diff)
downloadpkgsrc-14c43a46c039cb61744db90ada46ad65cfb329e9.tar.gz
Package for sc-6.21, a simple spreadsheet calculator from the old
comp.sources.unix archive.
Diffstat (limited to 'misc')
-rw-r--r--misc/sc/Makefile14
-rw-r--r--misc/sc/files/md53
-rw-r--r--misc/sc/patches/patch-aa137
-rw-r--r--misc/sc/patches/patch-ab18
-rw-r--r--misc/sc/patches/patch-ac31
-rw-r--r--misc/sc/pkg/COMMENT1
-rw-r--r--misc/sc/pkg/DESCR7
-rw-r--r--misc/sc/pkg/PLIST8
8 files changed, 219 insertions, 0 deletions
diff --git a/misc/sc/Makefile b/misc/sc/Makefile
new file mode 100644
index 00000000000..d95ea27ffda
--- /dev/null
+++ b/misc/sc/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 1999/06/21 15:05:24 sommerfeld Exp $
+# FreeBSD Id: Makefile,v 1.1.1.1 1998/08/10 00:20:29 steve Exp
+
+DISTNAME= sc-6.21
+CATEGORIES= math
+MASTER_SITES= ftp://gatekeeper.dec.com/pub/misc/
+EXTRACT_SUFX= .tar.Z
+
+MAINTAINER= eric@fox.phoenix.az.us
+
+NO_WRKSUBDIR= yes
+
+.include "../../mk/bsd.pkg.mk"
+
diff --git a/misc/sc/files/md5 b/misc/sc/files/md5
new file mode 100644
index 00000000000..df4d7626f6d
--- /dev/null
+++ b/misc/sc/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1 1999/06/21 15:05:25 sommerfeld Exp $
+
+MD5 (sc-6.21.tar.Z) = 8fe8886f0139036717ba09f2fdcb2de7
diff --git a/misc/sc/patches/patch-aa b/misc/sc/patches/patch-aa
new file mode 100644
index 00000000000..6031bb828e6
--- /dev/null
+++ b/misc/sc/patches/patch-aa
@@ -0,0 +1,137 @@
+--- Makefile.orig Mon May 11 11:43:33 1992
++++ Makefile Sun Jun 20 23:06:49 1999
+@@ -18,18 +18,18 @@
+
+ # This is where the install step puts it.
+ #EXDIR=/site/bin
+-EXDIR=/usr/local/bin
++EXDIR=${PREFIX}/bin
+
+ # This is where the man page goes.
+-#MANDIR=/usr/local/src/man/man1 # reno
+-#MANEXT=1 # reno
+-MANDIR=/usr/man/manl
+-MANEXT=l
++MANDIR=${PREFIX}/man/man1 # reno
++MANEXT=1 # reno
++#MANDIR=/usr/man/manl
++#MANEXT=l
+ MANMODE=644
+
+ # This is where the library file (tutorial) goes.
+ #LIBDIR=/usr/local/share/$(name) # reno
+-LIBDIR=/usr/local/lib/$(name)
++LIBDIR=${PREFIX}/share/$(name)
+
+ # Set SIMPLE for lex.c if you don't want arrow keys or lex.c blows up
+ SIMPLE=
+@@ -47,8 +47,8 @@
+
+ # Set INTERNATIONAL if you need 8 bit characters. You should
+ # not set this if you are running 5.3.0. I think it is OK in 5.3.1.
+-#INTERNATIONAL=-DINTERNATIONAL
+-INTERNATIONAL=
++INTERNATIONAL=-DINTERNATIONAL
++#INTERNATIONAL=
+
+ # Set SIGVOID if signal routines are type void.
+ # use: SIGVOID=-DSIGVOID for:
+@@ -67,30 +67,30 @@
+ # Set RINT= on/with (they have rint):
+ # SunOS 4.0.3c compiler
+ # BSD4.4 (reno)
+-#RINT=
+-RINT=-DRINT
++RINT=
++#RINT=-DRINT
+
+ # Set RE_COMP if you have the re_comp/re_exec regular expression routines
+ # (most BSD based systems do).
+-#RE_COMP=-DRE_COMP
+-RE_COMP=
++RE_COMP=-DRE_COMP
++#RE_COMP=
+
+ # Set REGCMP if you have the regcmp/regex regular expression routines
+ # (most System V based systems do)
+-REGCMP=-DREGCMP
++#REGCMP=-DREGCMP
+ #REGCMP=
+
+ # This is the name of a pager like "more".
+ # "pg" may be appropriate for SYSV.
+-DFLT_PAGER=-DDFLT_PAGER=\"less\"
+-#DFLT_PAGER=-DDFLT_PAGER=\"more\" # generic && reno
++#DFLT_PAGER=-DDFLT_PAGER=\"less\"
++DFLT_PAGER=-DDFLT_PAGER=\"more\" # generic && reno
+
+ # this is the name to save back ups in
+ SAVE=-DSAVENAME=\"$(NAME).SAVE\"
+
+ # path to crypt, do not define if you don't have crypt
+ # most systems
+-CRYPT=-DCRYPT_PATH=\"/bin/crypt\"
++#CRYPT=-DCRYPT_PATH=\"/bin/crypt\"
+ # BSD
+ #CRYPT=-DCRYPT_PATH=\"/usr/bin/crypt\"
+ # other people?
+@@ -133,8 +133,8 @@
+ # noticing the rows become 2, 3, 40, 41, 42... (etc).
+ # Known systems/terminfos w/ curses problems:
+ # {Esix Rev. D+, AT&T SysV3.2.1}:at386-m,xterm, HP-UX7.0:(not sure)
+-IDLOKISBAD=-DIDLOKBAD
+-#IDLOKISBAD=
++#IDLOKISBAD=-DIDLOKBAD
++IDLOKISBAD=
+
+ # If you don't have idlok() in your curses define NOIDLOK
+ NO_IDLOK=
+@@ -149,17 +149,17 @@
+ # IF you have problems w/ your yacc try bison, Berkeley yacc, or
+ # some other yacc. Some systems don't allow you to
+ # increase the number of terminals (mostly AT&T), SCO's does though.
+-#YACC=yacc
++YACC=yacc
+ # NOTE: Do not use with bison 1.16! Get a new version....
+-YACC=bison -y
++#YACC=bison -y
+
+ # MS-DOS needs y_tab instead of the normal y.tab
+ #YTAB=y_tab
+ YTAB=y.tab
+
+ # Command to use to make temporary copies of some source files.
+-LN=ln
+-#LN=ln -s
++#LN=ln
++LN=ln -s
+ #LN=cp
+
+ #### SYSTEM DEFINES ####
+@@ -178,11 +178,11 @@
+ #CFLAGS= -DSYSV2 -g -pipe -traditional
+
+ # Use this for system V.3
+-CFLAGS= -DSYSV3 -O
+-LDFLAGS= -s
++#CFLAGS= -O -DSYSV3
++#LDFLAGS= -s
+ #CFLAGS= -DSYSV3 -g
+ #LDFLAGS= -g
+-LIB=-lm -lcurses -lPW
++LIB=
+ # with gcc also use:
+ #CC=gcc
+ #CFLAGS= -DSYSV3 -O -pipe -traditional
+@@ -221,9 +221,9 @@
+ #CFLAGS= -O -DBSD42 -pipe
+
+ # Use this for BSD 4.3
+-#CFLAGS= -O -DBSD43
++CFLAGS += -DBSD43
+ #LDFLAGS=
+-#LIB=-lm -lcurses -ltermcap
++LIB=-lm -lcurses -ltermcap -lcompat
+
+ # Use this for SunOS 4.X if you have the System V package installed.
+ # This will link with the System V curses which is preferable to the
diff --git a/misc/sc/patches/patch-ab b/misc/sc/patches/patch-ab
new file mode 100644
index 00000000000..9a2120b7e8c
--- /dev/null
+++ b/misc/sc/patches/patch-ab
@@ -0,0 +1,18 @@
+$NetBSD: patch-ab,v 1.1 1999/06/21 15:05:25 sommerfeld Exp $
+
+--- lex.c.orig Mon May 11 20:43:36 1992
++++ lex.c Thu Jul 30 20:26:51 1998
+@@ -384,11 +384,11 @@
+ ctl('z'), 0
+ };
+
+-void
++int
+ charout(c)
+ int c;
+ {
+- (void)putchar(c);
++ return putchar(c);
+ }
+
+ void
diff --git a/misc/sc/patches/patch-ac b/misc/sc/patches/patch-ac
new file mode 100644
index 00000000000..b41b36b1bf3
--- /dev/null
+++ b/misc/sc/patches/patch-ac
@@ -0,0 +1,31 @@
+$NetBSD: patch-ac,v 1.1 1999/06/21 15:05:25 sommerfeld Exp $
+
+--- interp.c.orig Mon May 11 13:43:36 1992
++++ interp.c Tue Apr 20 18:55:25 1999
+@@ -476,7 +476,7 @@
+ dodts(mo, day, yr)
+ int mo, day, yr;
+ {
+- long trial;
++ time_t trial;
+ register struct tm *tp;
+ register int i;
+ register long jdate;
+@@ -551,15 +551,13 @@
+ int which;
+ double when;
+ {
+- long time();
+-
+ static long t_cache;
+ static struct tm tm_cache;
+ struct tm *tp;
+- long tloc;
++ time_t tloc;
+
+ if (which == NOW)
+- return (double)time((long *)0);
++ return (double)time(NULL);
+
+ tloc = (long)when;
+
diff --git a/misc/sc/pkg/COMMENT b/misc/sc/pkg/COMMENT
new file mode 100644
index 00000000000..3b075cb0b33
--- /dev/null
+++ b/misc/sc/pkg/COMMENT
@@ -0,0 +1 @@
+A curses-based spreadsheet program.
diff --git a/misc/sc/pkg/DESCR b/misc/sc/pkg/DESCR
new file mode 100644
index 00000000000..d0ed9f7ad3c
--- /dev/null
+++ b/misc/sc/pkg/DESCR
@@ -0,0 +1,7 @@
+The spreadsheet calculator sc is based on rectangular tables much like
+a financial spreadsheet. When invoked it presents you with a table
+organized as rows and columns of cells. If invoked without a file
+argument, the table is initially empty. Each cell may have associated
+with it a numeric value, a label string, and/or an expression (formula)
+which evaluates to a numeric value or label string, often based on other
+cell values.
diff --git a/misc/sc/pkg/PLIST b/misc/sc/pkg/PLIST
new file mode 100644
index 00000000000..a45027b336c
--- /dev/null
+++ b/misc/sc/pkg/PLIST
@@ -0,0 +1,8 @@
+bin/sc
+bin/scqref
+bin/psc
+man/man1/sc.1
+man/man1/psc.1
+share/sc/tutorial.sc
+@dirrm share/sc
+