From 2943ea67f0a624149f762278b021b8c622314172 Mon Sep 17 00:00:00 2001 From: brad Date: Fri, 11 Jun 1999 14:44:22 +0000 Subject: [PATCH] add rc port; Markus Friedl - rc is a command interpreter and programming language similar to sh(1). It is based on the AT&T Plan 9 shell of the same name. --- plan9/rc/Makefile | 36 ++++++++++++++++++++++++++++++++++++ plan9/rc/files/md5 | 6 ++++++ plan9/rc/pkg/COMMENT | 1 + plan9/rc/pkg/DESCR | 8 ++++++++ plan9/rc/pkg/PLIST | 7 +++++++ 5 files changed, 58 insertions(+) create mode 100644 plan9/rc/Makefile create mode 100644 plan9/rc/files/md5 create mode 100644 plan9/rc/pkg/COMMENT create mode 100644 plan9/rc/pkg/DESCR create mode 100644 plan9/rc/pkg/PLIST diff --git a/plan9/rc/Makefile b/plan9/rc/Makefile new file mode 100644 index 00000000000..9cf411d67ea --- /dev/null +++ b/plan9/rc/Makefile @@ -0,0 +1,36 @@ +# $OpenBSD: Makefile,v 1.1.1.1 1999/06/11 14:44:22 brad Exp $ + +DISTNAME= rc-1.6 +CATEGORIES= plan9 shells +MAINTAINER= markus.friedl@informatik.uni-erlangen.de +MASTER_SITES= http://www.star.le.ac.uk/~tjg/rc/release/ \ + ftp://ftp.sys.toronto.edu/pub/rc/ + +SEPARATE_BUILD= concurrent +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --with-history + +pre-fetch pre-build pre-install: +.if !defined(WITH_READLINE) && !defined(WITH_EDITLINE) +.if !defined(NO_WARNINGS) + @${ECHO} '*******************************************************' + @${ECHO} '* Note that you can build rc using the readline or *' + @${ECHO} '* editline library (emacs style command line editing) *' + @${ECHO} '* by setting the shell variable WITH_READLINE or *' + @${ECHO} '* WITH_EDITLINE to yes *' + @${ECHO} '*******************************************************' +.endif +.elif defined(WITH_READLINE) && ${WITH_READLINE}==yes +CONFIGURE_ARGS+= --with-readline +.elif defined(WITH_EDITLINE) && ${WITH_EDITLINE}==yes +EDITLINE= ${WRKSRC}/../editline/ +DISTFILES= ${DISTNAME}.tar.gz editline-1.5.tar.gz +MASTER_SITES+= http://www.star.le.ac.uk/~tjg/rc/misc/ +CONFIGURE_ARGS+= --with-editline +CONFIGURE_ENV+= LIBS="-L${EDITLINE}" +pre-configure: + @${ECHO_MSG} "===> Compiling editline" + (cd ${EDITLINE} && ${MAKE}) +.endif + +.include diff --git a/plan9/rc/files/md5 b/plan9/rc/files/md5 new file mode 100644 index 00000000000..a0747b8f3dc --- /dev/null +++ b/plan9/rc/files/md5 @@ -0,0 +1,6 @@ +MD5 (editline-1.5.tar.gz) = c0b9355a84efad07e23b2d5dce745522 +MD5 (rc-1.6.tar.gz) = 3b56f0e47e8496ea0363ebc202bcac23 +RMD160 (editline-1.5.tar.gz) = b343f870fc7ec7e4853a17675b253402f6c35aab +RMD160 (rc-1.6.tar.gz) = 766453e1d55f44de94c690959aee1dc8d8a77365 +SHA1 (editline-1.5.tar.gz) = c4c0569a18cdd03185887a7b78fcfbbd12865c45 +SHA1 (rc-1.6.tar.gz) = e223c5f3a34aa836034cc033751c276ff05fcc8e diff --git a/plan9/rc/pkg/COMMENT b/plan9/rc/pkg/COMMENT new file mode 100644 index 00000000000..2350b15b1aa --- /dev/null +++ b/plan9/rc/pkg/COMMENT @@ -0,0 +1 @@ +shell (clone of plan9 shell) diff --git a/plan9/rc/pkg/DESCR b/plan9/rc/pkg/DESCR new file mode 100644 index 00000000000..93bbcd2c4a5 --- /dev/null +++ b/plan9/rc/pkg/DESCR @@ -0,0 +1,8 @@ +rc is a command interpreter and programming language similar to +sh(1). It is based on the AT&T Plan 9 shell of the same name. + +The shell offers a C-like syntax (much more so than the C shell), +and a powerful mechanism for manipulating variables. It is reasonably +small and reasonably fast, especially when compared to contemporary +shells. Its use is intended to be interactive, but the language +lends itself well to scripts. diff --git a/plan9/rc/pkg/PLIST b/plan9/rc/pkg/PLIST new file mode 100644 index 00000000000..6fee07ac149 --- /dev/null +++ b/plan9/rc/pkg/PLIST @@ -0,0 +1,7 @@ +bin/rc +bin/- +bin/-- +bin/-p +bin/--p +man/man1/rc.1 +man/man1/history.1