summaryrefslogtreecommitdiff
path: root/lang/bwbasic
diff options
context:
space:
mode:
authorpooka <pooka>2000-02-15 19:43:22 +0000
committerpooka <pooka>2000-02-15 19:43:22 +0000
commit3ef6ac0dbce40ca8e0983640c772953d8f2c9820 (patch)
tree48adbe01af752de57da05140baf50c3424e97268 /lang/bwbasic
parent08a42ef202f9c5ab3040aeea12ca224af37de22b (diff)
downloadpkgsrc-3ef6ac0dbce40ca8e0983640c772953d8f2c9820.tar.gz
The Bywater Basic interpreter 2.20
Diffstat (limited to 'lang/bwbasic')
-rw-r--r--lang/bwbasic/Makefile38
-rw-r--r--lang/bwbasic/files/md55
-rw-r--r--lang/bwbasic/files/patch-sum4
-rw-r--r--lang/bwbasic/patches/patch-aa18
-rw-r--r--lang/bwbasic/patches/patch-ac118
-rw-r--r--lang/bwbasic/pkg/COMMENT1
-rw-r--r--lang/bwbasic/pkg/DESCR17
-rw-r--r--lang/bwbasic/pkg/PLIST48
8 files changed, 249 insertions, 0 deletions
diff --git a/lang/bwbasic/Makefile b/lang/bwbasic/Makefile
new file mode 100644
index 00000000000..b3c586c9614
--- /dev/null
+++ b/lang/bwbasic/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/02/15 19:43:22 pooka Exp $
+
+DISTNAME= bwbasic-2.20
+CATEGORIES= lang
+MASTER_SITES= ftp://ftp.rahul.net/pub/rhn/
+DISTFILES= bwbasic-2.20.tar.Z \
+ bwb-2.20-patch01.tar.Z.uu.txt bwb-2.20-patch02.tar.Z.uu.txt
+
+MAINTAINER= jspath@bcpl.net
+
+GNU_CONFIGURE= yes
+EXTRACT_ONLY= bwbasic-2.20.tar.Z
+
+# The patches come in a totally bizarre format; we have to
+# uudecode them, unpack the resulting tarfile, and then replace
+# some of the original files.
+# Make a manual page from the doc file.
+
+pre-patch:
+ ${MKDIR} ${WRKSRC}/tmp
+ cd ${WRKSRC}/tmp ; \
+ uudecode ${DISTDIR}/bwb-2.20-patch01.tar.Z.uu.txt ; \
+ ${GTAR} -xzf bwb-2.20-patch01.tar.Z ; \
+ ${MV} bwb-2.20-patch01/* ${WRKSRC}
+ cd ${WRKSRC}/tmp ; \
+ uudecode ${DISTDIR}/bwb-2.20-patch02.tar.Z.uu.txt ; \
+ ${GTAR} -xzf bwb-2.20-patch02.tar.Z ; \
+ ${MV} bwb-2.20-patch02/* ${WRKSRC}
+ ${RM} -rf ${WRKSRC}/tmp
+ ${CP} -pf ${WRKSRC}/bwbasic.doc ${WRKSRC}/bwbasic.1
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/bwbasic
+ ${INSTALL_DATA} ${WRKSRC}/bwbasic.doc ${PREFIX}/share/bwbasic/
+ ${CP} -r ${WRKSRC}/bwbtest ${PREFIX}/share/bwbasic/
+ ${INSTALL_MAN} ${WRKSRC}/bwbasic.1 ${PREFIX}/man/man1/bwbasic.1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/bwbasic/files/md5 b/lang/bwbasic/files/md5
new file mode 100644
index 00000000000..59851115254
--- /dev/null
+++ b/lang/bwbasic/files/md5
@@ -0,0 +1,5 @@
+$NetBSD: md5,v 1.1.1.1 2000/02/15 19:43:22 pooka Exp $
+
+MD5 (bwbasic-2.20.tar.Z) = 21fb5e2fb95db515aa2282312d35f88d
+MD5 (bwb-2.20-patch01.tar.Z.uu.txt) = 70f2098727f498f827814173315aa107
+MD5 (bwb-2.20-patch02.tar.Z.uu.txt) = 23292b19750812f358c08fd09282a09c
diff --git a/lang/bwbasic/files/patch-sum b/lang/bwbasic/files/patch-sum
new file mode 100644
index 00000000000..d11d8dbd070
--- /dev/null
+++ b/lang/bwbasic/files/patch-sum
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/02/15 19:43:22 pooka Exp $
+
+MD5 (patch-aa) = c2df3654141a2a512a3c0b4ec869db6d
+MD5 (patch-ac) = 65b2e419333374cb7b5ca69b7bcf9a69
diff --git a/lang/bwbasic/patches/patch-aa b/lang/bwbasic/patches/patch-aa
new file mode 100644
index 00000000000..5161bdd6606
--- /dev/null
+++ b/lang/bwbasic/patches/patch-aa
@@ -0,0 +1,18 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/02/15 19:43:22 pooka Exp $
+
+--- Makefile.in.orig Sat Nov 25 14:32:18 1995
++++ Makefile.in Sun Feb 6 16:12:49 2000
+@@ -16,9 +16,10 @@
+
+ DEFS = @DEFS@
+
+-# Revised by JBV
+-#CFLAGS = -O
+-CFLAGS = -g -ansi
++# Re-revised by MJS
++CFLAGS ?= -O
++CFLAGS += -ansi
++#CFLAGS = -g -ansi
+
+ # Revised by JBV
+ #LDFLAGS = -s
diff --git a/lang/bwbasic/patches/patch-ac b/lang/bwbasic/patches/patch-ac
new file mode 100644
index 00000000000..803687bef6c
--- /dev/null
+++ b/lang/bwbasic/patches/patch-ac
@@ -0,0 +1,118 @@
+$NetBSD: patch-ac,v 1.1.1.1 2000/02/15 19:43:22 pooka Exp $
+
+--- bwbasic.doc Tue Oct 12 19:30:12 1993
++++ bwbasic.1 Fri Feb 11 22:42:36 2000
+@@ -1,33 +1,10 @@
+-
+-
+-
+-
+- Bywater BASIC Interpreter/Shell, version 2.10
+- ---------------------------------------------
+-
+- Copyright (c) 1993, Ted A. Campbell
+- for bwBASIC version 2.10, 11 October 1993
+-
+-
+-CONTENTS:
+-
+- 1. DESCRIPTION
+- 2. TERMS OF USE
+- 3. QUICK REFERENCE LIST OF COMMANDS AND FUNCTIONS
+- 4. GENERAL NOTES ON USAGE
+- 5. EXPANDED REFERENCE FOR COMMANDS AND FUNCTIONS
+- 6. PREDEFINED VARIABLES
+- 7. UNIMPLEMENTED COMMANDS AND FUNCTIONS
+- and AGENDA FOR DEVELOPMENT
+- 8. THE STORY OF BYWATER BASIC
+- 9. COMMUNICATIONS
+-
+- The author wishes to express his thanks to Mr. David MacKenzie,
+- who assisted in the development Unix installation and configuration
+- for this version.
+-
+-
+-1. DESCRIPTION
++.Dd October 11, 1993
++.Dt bwBASIC 1
++.Os
++.Sh NAME
++.Nm bwBASIC
++.Nd BASIC Interpreter/Shell, version 2.10
++.Sh SYNOPSIS
+
+ The Bywater BASIC Interpreter (bwBASIC) implements a large
+ superset of the ANSI Standard for Minimal BASIC (X3.60-1978)
+@@ -60,7 +37,7 @@
+ offer further shell-processing capabilities.
+
+
+-2. TERMS OF USE:
++.Sh TERMS OF USE
+
+ This version of Bywater BASIC is released under the terms of the
+ GNU General Public License (GPL), which is distributed with this
+@@ -71,7 +48,7 @@
+ for information on which you should contact the author.
+
+
+-3. QUICK REFERENCE LIST OF COMMANDS AND FUNCTIONS
++.Sh QUICK REFERENCE LIST OF COMMANDS AND FUNCTIONS
+
+ Be aware that many of these commands and functions will not be
+ available unless you have set certain flags in the header files
+@@ -199,7 +176,7 @@
+ WRITE [# device-number,] element [, element ]....
+
+
+-4. GENERAL NOTES ON USAGE:
++.Sh GENERAL NOTES ON USAGE
+
+ 4.a. Interactive Environment
+
+@@ -305,7 +282,7 @@
+ aliases to allow Microsoft-style programs to be run.
+
+
+-5. EXPANDED REFERENCE FOR COMMANDS AND FUNCTIONS
++.Sh EXPANDED REFERENCE FOR COMMANDS AND FUNCTIONS
+
+ The "Dependencies" listed in the folowing reference materials
+ refers to flags that must be set to TRUE in bwbasic.h for the
+@@ -1636,7 +1613,7 @@
+ ------------------------------------------
+
+
+-6. PREDEFINED VARIABLES
++.Sh PREDEFINED VARIABLES
+
+ BWB.EDITOR$
+ BWB.FILES$
+@@ -1669,7 +1646,7 @@
+ (specifically CLS, LOCATE, and INKEY$) may be available.
+
+
+-7. UNIMPLEMENTED COMMANDS AND FUNCTIONS, and AGENDA FOR DEVELOPMENT
++.Sh UNIMPLEMENTED COMMANDS AND FUNCTIONS, and AGENDA FOR DEVELOPMENT
+
+ There are some items not implemented that have been so long
+ a part of standard BASICs that their absence will seem surprising.
+@@ -1853,7 +1830,7 @@
+ ZONEWIDTH
+
+
+-8. THE STORY OF BYWATER BASIC
++.Sh THE STORY OF BYWATER BASIC
+
+ This program was originally begun in 1982 by my grandmother, Mrs.
+ Verda Spell of Beaumont, TX. She was writing the program using
+@@ -1873,9 +1850,3 @@
+ bag and eventually managed to have it all copied over to a PC
+ diskette. I have revised it slightly prior to this release. You
+ should know, though, that I myself am an historian, not a programmer.
+-
+-
+-9. COMMUNICATIONS:
+-
+- email: tcamp@delphi.com
+-
diff --git a/lang/bwbasic/pkg/COMMENT b/lang/bwbasic/pkg/COMMENT
new file mode 100644
index 00000000000..2aeed10015d
--- /dev/null
+++ b/lang/bwbasic/pkg/COMMENT
@@ -0,0 +1 @@
+The Bywater Basic interpreter
diff --git a/lang/bwbasic/pkg/DESCR b/lang/bwbasic/pkg/DESCR
new file mode 100644
index 00000000000..e177c971e54
--- /dev/null
+++ b/lang/bwbasic/pkg/DESCR
@@ -0,0 +1,17 @@
+The Bywater BASIC Interpreter (bwBASIC) implements a large superset
+of the ANSI Standard for Minimal BASIC (X3.60-1978) and a significant
+subset of the ANSI Standard for Full BASIC (X3.113-1987) in C. It also
+offers shell programming facilities as an extension of BASIC. bwBASIC
+seeks to be as portable as possible.
+
+Originally written by Ted A. Campbell, and released under the GPL. It
+was posted to comp.sources.misc, volume 40. It was hosted for a while at
+ftp.eng.umd.edu.
+
+Patched by Jon B. Volkoff.
+Version 2.20 was released 25 November 1995
+Patch 1: 15 March 1996
+Patch 2: 11 October 1997
+
+Patch 2 includes new files for UNIX ncurses interface, compliments of
+L.C. Benschop, Eindhoven, The Netherlands.
diff --git a/lang/bwbasic/pkg/PLIST b/lang/bwbasic/pkg/PLIST
new file mode 100644
index 00000000000..5e004e84bc8
--- /dev/null
+++ b/lang/bwbasic/pkg/PLIST
@@ -0,0 +1,48 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/02/15 19:43:22 pooka Exp $
+bin/bwbasic
+man/man1/bwbasic.1
+share/bwbasic/bwbasic.doc
+share/bwbasic/bwbtest/abs.bas
+share/bwbasic/bwbtest/assign.bas
+share/bwbasic/bwbtest/callfunc.bas
+share/bwbasic/bwbtest/callsub.bas
+share/bwbasic/bwbtest/chain1.bas
+share/bwbasic/bwbtest/chain2.bas
+share/bwbasic/bwbtest/dataread.bas
+share/bwbasic/bwbtest/deffn.bas
+share/bwbasic/bwbtest/dim.bas
+share/bwbasic/bwbtest/doloop.bas
+share/bwbasic/bwbtest/dowhile.bas
+share/bwbasic/bwbtest/elseif.bas
+share/bwbasic/bwbtest/end.bas
+share/bwbasic/bwbtest/err.bas
+share/bwbasic/bwbtest/fncallfn.bas
+share/bwbasic/bwbtest/fornext.bas
+share/bwbasic/bwbtest/function.bas
+share/bwbasic/bwbtest/gosub.bas
+share/bwbasic/bwbtest/gotolabl.bas
+share/bwbasic/bwbtest/ifline.bas
+share/bwbasic/bwbtest/index.txt
+share/bwbasic/bwbtest/input.bas
+share/bwbasic/bwbtest/lof.bas
+share/bwbasic/bwbtest/loopuntl.bas
+share/bwbasic/bwbtest/main.bas
+share/bwbasic/bwbtest/mlifthen.bas
+share/bwbasic/bwbtest/on.bas
+share/bwbasic/bwbtest/onerr.bas
+share/bwbasic/bwbtest/onerrlbl.bas
+share/bwbasic/bwbtest/ongosub.bas
+share/bwbasic/bwbtest/opentest.bas
+share/bwbasic/bwbtest/option.bas
+share/bwbasic/bwbtest/pascaltr.bas
+share/bwbasic/bwbtest/putget.bas
+share/bwbasic/bwbtest/random.bas
+share/bwbasic/bwbtest/selcase.bas
+share/bwbasic/bwbtest/snglfunc.bas
+share/bwbasic/bwbtest/stop.bas
+share/bwbasic/bwbtest/term.bas
+share/bwbasic/bwbtest/whilwend.bas
+share/bwbasic/bwbtest/width.bas
+share/bwbasic/bwbtest/writeinp.bas
+@dirrm share/bwbasic/bwbtest
+@dirrm share/bwbasic