summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
Diffstat (limited to 'lang')
-rw-r--r--lang/wsbasic/DESCR7
-rw-r--r--lang/wsbasic/Makefile23
-rw-r--r--lang/wsbasic/PLIST25
-rw-r--r--lang/wsbasic/distinfo6
-rw-r--r--lang/wsbasic/patches/patch-aa12
5 files changed, 73 insertions, 0 deletions
diff --git a/lang/wsbasic/DESCR b/lang/wsbasic/DESCR
new file mode 100644
index 00000000000..8f9f21f5f77
--- /dev/null
+++ b/lang/wsbasic/DESCR
@@ -0,0 +1,7 @@
+WSBasic is a BASIC interpreter written entirely in C++ without the use
+of lex or yacc. It shows how one can create a compiler or interpreter
+using some simple classes to parse and/or execute script code. It is
+a good way to fully understand how a parser/compiler actually works,
+at least that was the original purpose of this project. Later the
+ability to run shell commands was added just like in bash scripting
+and this gives the project also some nice practical use.
diff --git a/lang/wsbasic/Makefile b/lang/wsbasic/Makefile
new file mode 100644
index 00000000000..43779550840
--- /dev/null
+++ b/lang/wsbasic/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/10/19 03:36:03 minskim Exp $
+
+DISTNAME= wsbasic-1_2_4
+PKGNAME= ${DISTNAME:S/_/./g}
+CATEGORIES= lang
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wsbasic/}
+
+MAINTAINER= geert.hendrickx@ua.ac.be
+HOMEPAGE= http://wsbasic.sourceforge.net/
+COMMENT= Simple BASIC interpreter
+
+SUBST_CLASSES+= interpreter
+SUBST_STAGE.interpreter= pre-install
+SUBST_FILES.interpreter= scripts/*.b
+SUBST_SED.interpreter= -e 's,^\#!\.\./wsbasic,\#!${PREFIX}/bin/wsbasic,'
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/wsbasic ${PREFIX}/bin/
+ ${INSTALL_SCRIPT_DIR} ${PREFIX}/share/wsbasic
+ ${INSTALL_SCRIPT} ${WRKSRC}/scripts/*.b ${PREFIX}/share/wsbasic/
+ ${INSTALL_DATA} ${WRKSRC}/scripts/*.txt ${PREFIX}/share/wsbasic/
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/wsbasic/PLIST b/lang/wsbasic/PLIST
new file mode 100644
index 00000000000..7fa3db594fe
--- /dev/null
+++ b/lang/wsbasic/PLIST
@@ -0,0 +1,25 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/10/19 03:36:03 minskim Exp $
+bin/wsbasic
+share/wsbasic/add.b
+share/wsbasic/argtest.b
+share/wsbasic/assigns.b
+share/wsbasic/changepath.b
+share/wsbasic/datatest.b
+share/wsbasic/dir-foreach.b
+share/wsbasic/dir.b
+share/wsbasic/foreach.b
+share/wsbasic/forloops.b
+share/wsbasic/functions.b
+share/wsbasic/ifs.b
+share/wsbasic/input.b
+share/wsbasic/mail-content.txt
+share/wsbasic/mail-list.txt
+share/wsbasic/mailto.b
+share/wsbasic/modtest.b
+share/wsbasic/post_ip.b
+share/wsbasic/rantest.b
+share/wsbasic/runtest.b
+share/wsbasic/speed2.b
+share/wsbasic/strings.b
+share/wsbasic/while.b
+@dirrm share/wsbasic
diff --git a/lang/wsbasic/distinfo b/lang/wsbasic/distinfo
new file mode 100644
index 00000000000..1f398afa961
--- /dev/null
+++ b/lang/wsbasic/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/10/19 03:36:03 minskim Exp $
+
+SHA1 (wsbasic-1_2_4.tar.gz) = 5470c247fcdf7d3940d51f824d549c40495b60a5
+RMD160 (wsbasic-1_2_4.tar.gz) = 022c80019a5f6c85073d3a7386b51b41ff9285fe
+Size (wsbasic-1_2_4.tar.gz) = 20850 bytes
+SHA1 (patch-aa) = 0758724f05585c357a530b8979e56f6e15584493
diff --git a/lang/wsbasic/patches/patch-aa b/lang/wsbasic/patches/patch-aa
new file mode 100644
index 00000000000..17440f43f34
--- /dev/null
+++ b/lang/wsbasic/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/10/19 03:36:03 minskim Exp $
+
+--- Makefile.orig 2005-01-28 02:40:58.000000000 +0100
++++ Makefile
+@@ -1,5 +1,6 @@
+-CXX = g++
++CXX ?= g++
+ FLAGS = -O2 -Wall #-D_DEBUG_
++FLAGS += $(CXXFLAGS)
+ INSTALL_DIR = /usr/local/bin/
+ RELEASE = 1_2_4
+