aboutsummaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorMasafumi Max NAKANE <max@FreeBSD.org>1997-01-03 00:37:20 +0000
committerMasafumi Max NAKANE <max@FreeBSD.org>1997-01-03 00:37:20 +0000
commit6a68b60f92eeffd18741444d2f66a6493229529f (patch)
tree6e0f3e66e904a53856b54d94c65c0f99f33d04bf /shells
parent3e08c0b0e2d79f27ff0932d93f7ae52ba6e70f8b (diff)
downloadports-6a68b60f92eeffd18741444d2f66a6493229529f.tar.gz
ports-6a68b60f92eeffd18741444d2f66a6493229529f.zip
Notes
Diffstat (limited to 'shells')
-rw-r--r--shells/scsh/Makefile29
-rw-r--r--shells/scsh/distinfo1
-rw-r--r--shells/scsh/files/patch-aa39
-rw-r--r--shells/scsh/files/patch-ab19
-rw-r--r--shells/scsh/files/patch-ac19
-rw-r--r--shells/scsh/files/patch-ad19
-rw-r--r--shells/scsh/files/patch-ae19
-rw-r--r--shells/scsh/pkg-comment1
-rw-r--r--shells/scsh/pkg-descr84
-rw-r--r--shells/scsh/pkg-plist240
10 files changed, 470 insertions, 0 deletions
diff --git a/shells/scsh/Makefile b/shells/scsh/Makefile
new file mode 100644
index 000000000000..6168d9d205a9
--- /dev/null
+++ b/shells/scsh/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: scsh
+# Version required: 0.4.4
+# Date created: Nov, 11, 1996
+# Whom: cracauer@cons.org "Martin Cracauer"
+#
+# $Id: Makefile,v 1.1 1996/11/28 16:18:38 cracauer Exp $
+#
+
+DISTNAME= scsh-0.4.4
+CATEGORIES= shells lang
+MASTER_SITES= ftp://ftp-swiss.ai.mit.edu/pub/su/scsh/
+
+MAINTAINER= cracauer@cons.org
+
+GNU_CONFIGURE= yes
+
+NO_CDROM= "Wait for next release by the author's request"
+ALL_TARGET= enough
+MAN1= scsh.1
+STRIP=
+
+post-install:
+ @strip ${PREFIX}/bin/scsh
+ (cd ${WRKSRC} ; \
+ ${INSTALL_DATA} README RELEASE NEWS COPYING ${PREFIX}/lib/scsh/doc)
+ ${RM} -f ${PREFIX}/share/doc/scsh
+ ln -fs ${PREFIX}/lib/scsh/doc ${PREFIX}/share/doc/scsh
+
+.include <bsd.port.mk>
diff --git a/shells/scsh/distinfo b/shells/scsh/distinfo
new file mode 100644
index 000000000000..cb6ae8545799
--- /dev/null
+++ b/shells/scsh/distinfo
@@ -0,0 +1 @@
+MD5 (scsh-0.4.4.tar.gz) = 61afe26178d56eb7f17a546fd9954f58
diff --git a/shells/scsh/files/patch-aa b/shells/scsh/files/patch-aa
new file mode 100644
index 000000000000..22f97bee64ee
--- /dev/null
+++ b/shells/scsh/files/patch-aa
@@ -0,0 +1,39 @@
+*** Makefile.in.original Tue Nov 26 14:44:19 1996
+--- Makefile.in Thu Nov 28 15:29:24 1996
+***************
+*** 137,143 ****
+
+ # The following is the first rule and therefore the "make" command's
+ # default target.
+! enough: $(VM) $(IMAGE) script $(LIBCIG) scsh $(LIBSCSH) $(MANPAGE) .notify
+
+ # The developers are curious to know. Don't be concerned if this fails.
+ # You may comment these lines out if you wish to be discourteous.
+--- 137,143 ----
+
+ # The following is the first rule and therefore the "make" command's
+ # default target.
+! enough: $(VM) $(IMAGE) script $(LIBCIG) scsh $(LIBSCSH) $(MANPAGE)
+
+ # The developers are curious to know. Don't be concerned if this fails.
+ # You may comment these lines out if you wish to be discourteous.
+***************
+*** 250,255 ****
+--- 250,256 ----
+ $(RM) -r $(LIB).old
+ if [ -d $(LIB) ] ; then mv $(LIB) $(LIB).old ; fi
+ mkdir $(LIB)
++ mkdir $(LIB)/emacs
+ mkdir $(LIB)/big
+ mkdir $(LIB)/cig
+ mkdir $(LIB)/doc
+***************
+*** 286,291 ****
+--- 287,293 ----
+ $(LIB)/misc $(LIB)/link $(LIB)/vm $(LIB)/doc
+ for f in $(srcdir)/rts/*num.scm; \
+ do $(INSTALL_DATA) $$f $(LIB)/rts/; done
++ for f in $(srcdir)/emacs/*; do $(INSTALL_DATA) $$f $(LIB)/emacs/; done
+ for f in $(srcdir)/env/*.scm; do $(INSTALL_DATA) $$f $(LIB)/env/; done
+ for f in $(srcdir)/big/*.scm; do $(INSTALL_DATA) $$f $(LIB)/big/; done
+ for f in $(srcdir)/opt/*.scm; do $(INSTALL_DATA) $$f $(LIB)/opt/; done
diff --git a/shells/scsh/files/patch-ab b/shells/scsh/files/patch-ab
new file mode 100644
index 000000000000..a75d1e93ac41
--- /dev/null
+++ b/shells/scsh/files/patch-ab
@@ -0,0 +1,19 @@
+*** env/command.scm.original Tue Nov 26 15:59:38 1996
+--- env/command.scm Tue Nov 26 15:59:46 1996
+***************
+*** 546,552 ****
+ ((char=? (string-ref line 0) #\n) #f)
+ (else (loop count)))))))
+
+! (define *y-or-n-eof-count* 100)
+
+ (define (read-line port)
+ (let loop ((l '()))
+--- 546,552 ----
+ ((char=? (string-ref line 0) #\n) #f)
+ (else (loop count)))))))
+
+! (define *y-or-n-eof-count* 0)
+
+ (define (read-line port)
+ (let loop ((l '()))
diff --git a/shells/scsh/files/patch-ac b/shells/scsh/files/patch-ac
new file mode 100644
index 000000000000..42c68f84edeb
--- /dev/null
+++ b/shells/scsh/files/patch-ac
@@ -0,0 +1,19 @@
+*** configure.in.original Tue Nov 26 17:10:41 1996
+--- configure.in Tue Nov 26 17:11:07 1996
+***************
+*** 220,226 ****
+ fi
+
+ AR=${AR-"ar cq"}
+! TMPDIR=${TMPDIR-"/usr/tmp"}
+
+ case "$host" in
+
+--- 220,226 ----
+ fi
+
+ AR=${AR-"ar cq"}
+! TMPDIR=${TMPDIR-"/var/tmp"}
+
+ case "$host" in
+
diff --git a/shells/scsh/files/patch-ad b/shells/scsh/files/patch-ad
new file mode 100644
index 000000000000..57efb8d7d373
--- /dev/null
+++ b/shells/scsh/files/patch-ad
@@ -0,0 +1,19 @@
+*** configure.original Tue Nov 26 17:55:51 1996
+--- configure Tue Nov 26 17:55:58 1996
+***************
+*** 1017,1023 ****
+ fi
+
+ AR=${AR-"ar cq"}
+! TMPDIR=${TMPDIR-"/usr/tmp"}
+
+ case "$host" in
+
+--- 1017,1023 ----
+ fi
+
+ AR=${AR-"ar cq"}
+! TMPDIR=${TMPDIR-"/var/tmp"}
+
+ case "$host" in
+
diff --git a/shells/scsh/files/patch-ae b/shells/scsh/files/patch-ae
new file mode 100644
index 000000000000..f7eec1bab769
--- /dev/null
+++ b/shells/scsh/files/patch-ae
@@ -0,0 +1,19 @@
+*** scsh/scsh.scm.original Tue Nov 26 17:15:00 1996
+--- scsh/scsh.scm Tue Nov 26 17:15:06 1996
+***************
+*** 298,304 ****
+ (list (string-append (car maybe-prefix) ".~a"))))))
+
+ (define *temp-file-template*
+! (make-fluid (string-append "/usr/tmp/" (number->string (pid)) ".~a")))
+
+
+ (define (temp-file-iterate maker . maybe-template)
+--- 298,304 ----
+ (list (string-append (car maybe-prefix) ".~a"))))))
+
+ (define *temp-file-template*
+! (make-fluid (string-append "/var/tmp/" (number->string (pid)) ".~a")))
+
+
+ (define (temp-file-iterate maker . maybe-template)
diff --git a/shells/scsh/pkg-comment b/shells/scsh/pkg-comment
new file mode 100644
index 000000000000..304523714789
--- /dev/null
+++ b/shells/scsh/pkg-comment
@@ -0,0 +1 @@
+A Unix shell embedded into Scheme, with access to all Posix calls
diff --git a/shells/scsh/pkg-descr b/shells/scsh/pkg-descr
new file mode 100644
index 000000000000..225f095e4334
--- /dev/null
+++ b/shells/scsh/pkg-descr
@@ -0,0 +1,84 @@
+Scsh is a Unix shell in that is has significant syntax entensions to
+make writing Unix shell scripts easy (constructing pipelines, setting
+I/O redirection, conditional execution etc.). It also offers access to
+lower-level functionality like all Posix system calls, TCP/IP sockets
+and a full-featured regular expression library. All this is embedded
+into a general-purpose programming language with proper handling of
+quoting, real data types and extensive, syntactically clean control
+constructs.
+
+Scsh is also a full implementation of R4RS Scheme with some
+non-standard behaviour (required for scripting) that shouldn't be a
+problem in practice. As a result, a wide varity of exsting Scheme code
+can be used.
+
+Offered functionality:
+- Scheme special forms to work with Unix commands and command chains
+- the ability to be used to write self-identifying scripts with
+ '#!/usr/local/bin/scsh' as the first line.
+- all Posix system calls including signals, tty and time handling
+- regular expressions, uses the same C library as *BSD, returns a
+ proper structure describing the matches and/or matched substrings.
+- delimited strings, awk-like record/field processing
+- several socket layers
+- A foreign function interface to use other C code, including a tool
+ (cig) to automate integration process.
+- elisp code to run it as a subprocess under emacs
+- On the Scheme side: a module system, basic thread support, optional
+ static linker (compiles images to C, then into an executable).
+
+The underlying Scheme implementation is a virtual machine for compact
+byte code.
+
+Installed Items:
+----------------
+
+Main program name(s): "scsh"
+Manpage(s): scsh(1)
+Info files: <none>
+Other documentation: lib/scsh/doc/ (also linked to share/doc/scsh)
+Learning entry point: lib/scsh/doc/scsh-paper.ps or
+ http://www-swiss.ai.mit.edu/scsh/
+
+General Notes:
+--------------
+
+Changing ${PREFIX} to something other than /usr/local works
+flawlessly, as far as scsh itself is concerned (that means: it will
+run and find everythings it needs). You will have to change the
+initial "#!/usr/local/bin/scsh" line when running shell scripts, of
+course. An additional problem is the location of optional packages
+like slib, these are still expected to be in /usr/local. I looked
+into the sources and all the hardcoded /usr/local I found are in files
+that are installed sourcecode form when scsh is installed
+(i.e. slib-init.scm).
+
+To load slib, install slib into /usr/local/lib/slib and run
+(load "slib-init.scm")
+in scsh. It requires no additional setup (paths or such).
+
+The emacs interface is in the original distribution in emacs/. For
+documentation see doc/user-quide.txt.
+
+Differences between FreeBSD port and generic scsh release:
+----------------------------------------------------------
+
+1) When hitting C-d (end-of-file), scsh asks 100 times for
+confirmation. I changed the default to do this just once. See constant
+*y-or-n-eof-count* in scsh/rw.scm to change it.
+
+2) The original scsh sends a mail to the scsh authors everytime you
+make the package. The FreeBSD port doesn't. The authors of scsh would
+appreciate it if you do a `(cd work/scsh-0.4.4 && make .notify)` after
+you build this package.
+
+3) A symbolic link ${PREFIX}/share/doc/scsh to the documentation is
+created.
+
+4) Some basic description text files from the distribution base dir
+are copied to lib/doc. The emacs directory is copied into
+lib/scsh/emacs. scsh's default is not to install these files.
+
+5) Some /usr/tmp -> /var/tmp
+
+FreeBSD port provided by Martin Cracauer <cracauer@cons.org>
diff --git a/shells/scsh/pkg-plist b/shells/scsh/pkg-plist
new file mode 100644
index 000000000000..f7769fa7c064
--- /dev/null
+++ b/shells/scsh/pkg-plist
@@ -0,0 +1,240 @@
+bin/scsh
+man/man1/scsh.1.gz
+lib/scsh/big/array.scm
+lib/scsh/big/big-util.scm
+lib/scsh/big/bigbit.scm
+lib/scsh/big/compose-cont.scm
+lib/scsh/big/defrecord.scm
+lib/scsh/big/destructure.scm
+lib/scsh/big/dump.scm
+lib/scsh/big/external.scm
+lib/scsh/big/filename.scm
+lib/scsh/big/format.scm
+lib/scsh/big/general-table.scm
+lib/scsh/big/lu-decomp.scm
+lib/scsh/big/new-ports.scm
+lib/scsh/big/pp.scm
+lib/scsh/big/queue.scm
+lib/scsh/big/random.scm
+lib/scsh/big/receive.scm
+lib/scsh/big/search-tree.scm
+lib/scsh/big/sleep.scm
+lib/scsh/big/sort.scm
+lib/scsh/big/thread.scm
+lib/scsh/big/xport.scm
+lib/scsh/cig/cig
+lib/scsh/cig/cig.image
+lib/scsh/cig/libscshvm.a
+lib/scsh/cig/libcig.h
+lib/scsh/doc/COPYING
+lib/scsh/doc/NEWS
+lib/scsh/doc/RELEASE
+lib/scsh/doc/README
+lib/scsh/doc/scsh-manual/awk.tex
+lib/scsh/doc/scsh-manual/changes.tex
+lib/scsh/doc/scsh-manual/decls.tex
+lib/scsh/doc/scsh-manual/front.tex
+lib/scsh/doc/scsh-manual/intro.tex
+lib/scsh/doc/scsh-manual/man.tex
+lib/scsh/doc/scsh-manual/miscprocs.tex
+lib/scsh/doc/scsh-manual/network.tex
+lib/scsh/doc/scsh-manual/procnotation.tex
+lib/scsh/doc/scsh-manual/rdelim.tex
+lib/scsh/doc/scsh-manual/running.tex
+lib/scsh/doc/scsh-manual/strings.tex
+lib/scsh/doc/scsh-manual/syscalls.tex
+lib/scsh/doc/scsh-manual/test.tex
+lib/scsh/doc/scsh-manual/todo.tex
+lib/scsh/doc/scsh-manual/tty.tex
+lib/scsh/doc/scsh-manual/xman.tex
+lib/scsh/doc/big-scheme.txt
+lib/scsh/doc/call-back.txt
+lib/scsh/doc/cheat.txt
+lib/scsh/doc/external.txt
+lib/scsh/doc/hacking.txt
+lib/scsh/doc/install.s48-0.36.txt
+lib/scsh/doc/install.txt
+lib/scsh/doc/no-leaf-env.txt
+lib/scsh/doc/olins-changes.txt
+lib/scsh/doc/package.txt
+lib/scsh/doc/scsh-src-roadmap.txt
+lib/scsh/doc/threads.txt
+lib/scsh/doc/type.txt
+lib/scsh/doc/user-guide.txt
+lib/scsh/doc/code.tex
+lib/scsh/doc/latex-stuff.tex
+lib/scsh/doc/meeting.tex
+lib/scsh/doc/module.tex
+lib/scsh/doc/scsh-paper.tex
+lib/scsh/doc/summary.tex
+lib/scsh/doc/meeting.ps
+lib/scsh/doc/module.ps
+lib/scsh/doc/scsh-manual.ps
+lib/scsh/doc/scsh-paper.ps
+lib/scsh/env/assem.scm
+lib/scsh/env/basic-command.scm
+lib/scsh/env/build.scm
+lib/scsh/env/command.scm
+lib/scsh/env/debug.scm
+lib/scsh/env/debuginfo.scm
+lib/scsh/env/disasm.scm
+lib/scsh/env/disclosers.scm
+lib/scsh/env/dispcond.scm
+lib/scsh/env/flatload.scm
+lib/scsh/env/init-defpackage.scm
+lib/scsh/env/inspect.scm
+lib/scsh/env/jar-assem.scm
+lib/scsh/env/list-interface.scm
+lib/scsh/env/load-package.scm
+lib/scsh/env/more-thread.scm
+lib/scsh/env/pacman.scm
+lib/scsh/env/pedit.scm
+lib/scsh/env/read-command.scm
+lib/scsh/env/shadow.scm
+lib/scsh/env/space.scm
+lib/scsh/env/start.scm
+lib/scsh/env/traverse.scm
+lib/scsh/env/version-info.scm
+lib/scsh/link/data.scm
+lib/scsh/link/generate-c-header.scm
+lib/scsh/link/link.scm
+lib/scsh/link/loadc.scm
+lib/scsh/link/reify.scm
+lib/scsh/link/transport.scm
+lib/scsh/link/write-image.scm
+lib/scsh/misc/annotate.scm
+lib/scsh/misc/argument.scm
+lib/scsh/misc/doodl.scm
+lib/scsh/misc/either.scm
+lib/scsh/misc/getenv.scm
+lib/scsh/misc/hilbert.scm
+lib/scsh/misc/ilength.scm
+lib/scsh/misc/integertostring.scm
+lib/scsh/misc/load-static.scm
+lib/scsh/misc/mail.scm
+lib/scsh/misc/packages.scm
+lib/scsh/misc/psd-s48.scm
+lib/scsh/misc/remote.scm
+lib/scsh/misc/require.scm
+lib/scsh/misc/separate.scm
+lib/scsh/misc/shift-reset.scm
+lib/scsh/misc/sicp.scm
+lib/scsh/misc/slib-init.scm
+lib/scsh/misc/socket.scm
+lib/scsh/misc/static.scm
+lib/scsh/misc/test-doodl.scm
+lib/scsh/opt/analyze.scm
+lib/scsh/opt/expand.scm
+lib/scsh/opt/inline.scm
+lib/scsh/opt/tst.scm
+lib/scsh/scsh/awk.scm
+lib/scsh/scsh/char-set.scm
+lib/scsh/scsh/db.scm
+lib/scsh/scsh/dbm.scm
+lib/scsh/scsh/defrec.scm
+lib/scsh/scsh/ekko.scm
+lib/scsh/scsh/endian.scm
+lib/scsh/scsh/enumconst.scm
+lib/scsh/scsh/fdports.scm
+lib/scsh/scsh/fileinfo.scm
+lib/scsh/scsh/filemtch.scm
+lib/scsh/scsh/filesys.scm
+lib/scsh/scsh/flock.scm
+lib/scsh/scsh/fname.scm
+lib/scsh/scsh/fr.scm
+lib/scsh/scsh/glob.scm
+lib/scsh/scsh/here.scm
+lib/scsh/scsh/jcontrol.scm
+lib/scsh/scsh/jcontrol2.scm
+lib/scsh/scsh/let-opt.scm
+lib/scsh/scsh/meta-arg.scm
+lib/scsh/scsh/ndbm.scm
+lib/scsh/scsh/network.scm
+lib/scsh/scsh/pty.scm
+lib/scsh/scsh/newports.scm
+lib/scsh/scsh/oldtop.scm
+lib/scsh/scsh/procobj.scm
+lib/scsh/scsh/rdelim.scm
+lib/scsh/scsh/re.scm
+lib/scsh/scsh/rw.scm
+lib/scsh/scsh/scsh-condition.scm
+lib/scsh/scsh/scsh-interfaces.scm
+lib/scsh/scsh/scsh-package.scm
+lib/scsh/scsh/scsh-read.scm
+lib/scsh/scsh/scsh-version.scm
+lib/scsh/scsh/scsh.scm
+lib/scsh/scsh/select.scm
+lib/scsh/scsh/sighandlers.scm
+lib/scsh/scsh/startup.scm
+lib/scsh/scsh/static.scm
+lib/scsh/scsh/stringcoll.scm
+lib/scsh/scsh/syntax-helpers.scm
+lib/scsh/scsh/syntax.scm
+lib/scsh/scsh/syscalls.scm
+lib/scsh/scsh/time.scm
+lib/scsh/scsh/top.scm
+lib/scsh/scsh/tty.scm
+lib/scsh/scsh/utilities.scm
+lib/scsh/rts/bignum.scm
+lib/scsh/rts/defenum.scm
+lib/scsh/rts/enum.scm
+lib/scsh/rts/floatnum.scm
+lib/scsh/rts/innum.scm
+lib/scsh/rts/ratnum.scm
+lib/scsh/rts/recnum.scm
+lib/scsh/rts/xnum.scm
+lib/scsh/rts/jar-defrecord.scm
+lib/scsh/vm/arch.scm
+lib/scsh/vm/arith.scm
+lib/scsh/vm/data.scm
+lib/scsh/vm/defenum.scm
+lib/scsh/vm/define-primitive.scm
+lib/scsh/vm/disasm.scm
+lib/scsh/vm/env.scm
+lib/scsh/vm/external.scm
+lib/scsh/vm/gc.scm
+lib/scsh/vm/heap.scm
+lib/scsh/vm/interfaces.scm
+lib/scsh/vm/interp.scm
+lib/scsh/vm/macro-package-defs.scm
+lib/scsh/vm/memory.scm
+lib/scsh/vm/package-defs.scm
+lib/scsh/vm/prescheme.scm
+lib/scsh/vm/prim.scm
+lib/scsh/vm/ps-interface.scm
+lib/scsh/vm/ps-memory.scm
+lib/scsh/vm/ps-package-defs.scm
+lib/scsh/vm/ps-package.scm
+lib/scsh/vm/resume.scm
+lib/scsh/vm/s48-package-defs.scm
+lib/scsh/vm/stack.scm
+lib/scsh/vm/stob.scm
+lib/scsh/vm/struct.scm
+lib/scsh/vm/vm-utilities.scm
+lib/scsh/vm/vmio.scm
+lib/scsh/scshvm
+lib/scsh/scsh.image
+lib/scsh/libscshvm.a
+lib/scsh/emacs/README
+lib/scsh/emacs/cmulisp.el
+lib/scsh/emacs/cmuscheme.el
+lib/scsh/emacs/cmuscheme48.el
+lib/scsh/emacs/cmushell.el
+lib/scsh/emacs/comint.el
+lib/scsh/emacs/jar-hacks.el
+@exec ln -fs %D/lib/scsh/doc %D/share/doc/scsh
+@unexec rm -f %D/share/doc/scsh
+@dirrm lib/scsh/emacs
+@dirrm lib/scsh/big
+@dirrm lib/scsh/cig
+@dirrm lib/scsh/doc/scsh-manual
+@dirrm lib/scsh/doc
+@dirrm lib/scsh/env
+@dirrm lib/scsh/link
+@dirrm lib/scsh/misc
+@dirrm lib/scsh/opt
+@dirrm lib/scsh/scsh
+@dirrm lib/scsh/rts
+@dirrm lib/scsh/vm
+@dirrm lib/scsh
+@unexec echo 'You might check whether to remove %D/lib/scsh.old'