summaryrefslogtreecommitdiffstats
path: root/shell-term-fm
diff options
context:
space:
mode:
authorVlad Glagolev2019-05-01 19:52:06 +0000
committerVlad Glagolev2019-05-01 19:52:06 +0000
commitc3019ad886bee58e06128d3ed972ba4418c143b9 (patch)
tree1f0cadc834bb64fbcdf6dc58b32ae321e5f02374 /shell-term-fm
parent9e88c1698ad1c9db12f3bea7825c34f9c0c802b8 (diff)
oksh: new spell, portable OpenBSD ksh
Diffstat (limited to 'shell-term-fm')
-rwxr-xr-xshell-term-fm/oksh/BUILD7
-rwxr-xr-xshell-term-fm/oksh/CONFIGURE7
-rwxr-xr-xshell-term-fm/oksh/DEPENDS4
-rwxr-xr-xshell-term-fm/oksh/DETAILS17
-rw-r--r--shell-term-fm/oksh/HISTORY3
-rwxr-xr-xshell-term-fm/oksh/INSTALL4
-rwxr-xr-xshell-term-fm/oksh/PROVIDES1
7 files changed, 43 insertions, 0 deletions
diff --git a/shell-term-fm/oksh/BUILD b/shell-term-fm/oksh/BUILD
new file mode 100755
index 0000000000..0554ca6e98
--- /dev/null
+++ b/shell-term-fm/oksh/BUILD
@@ -0,0 +1,7 @@
+OPTS="${OKSH_OPTS} ${OPTS}" &&
+
+./configure --prefix="${INSTALL_ROOT}" \
+ --mandir="${INSTALL_ROOT}/usr/share/man" \
+ ${OPTS} &&
+
+make
diff --git a/shell-term-fm/oksh/CONFIGURE b/shell-term-fm/oksh/CONFIGURE
new file mode 100755
index 0000000000..c508fffa17
--- /dev/null
+++ b/shell-term-fm/oksh/CONFIGURE
@@ -0,0 +1,7 @@
+config_query_option OKSH_OPTS "Install executable as ksh?" n \
+ "--enable-ksh" \
+ "--disable-ksh" &&
+
+config_query_option OKSH_OPTS "Statically link executables?" n \
+ "--enable-static" \
+ "--disable-static"
diff --git a/shell-term-fm/oksh/DEPENDS b/shell-term-fm/oksh/DEPENDS
new file mode 100755
index 0000000000..180fa09233
--- /dev/null
+++ b/shell-term-fm/oksh/DEPENDS
@@ -0,0 +1,4 @@
+optional_depends ncurses \
+ "--enable-curses" \
+ "--disable-curses" \
+ "to use curses library for screen clear"
diff --git a/shell-term-fm/oksh/DETAILS b/shell-term-fm/oksh/DETAILS
new file mode 100755
index 0000000000..dc9509f019
--- /dev/null
+++ b/shell-term-fm/oksh/DETAILS
@@ -0,0 +1,17 @@
+ SPELL=oksh
+ VERSION=6.5
+ SOURCE=${SPELL}-${VERSION}.tar.gz
+ SOURCE_URL[0]=https://github.com/ibara/${SPELL}/releases/download/${SPELL}-${VERSION}/${SOURCE}
+ SOURCE_HASH=sha512:ea6da8d6a8e9f238f1b58a0d2b0e723455c56f2bb566747b51d32f25223217f0eaf88e666b5f686e14d3ac711ef6f6e1c47fafe0ad3b661d85072cdc17551c3e
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ DOCS="CONTRIBUTORS LEGAL NOTES PROJECTS ${DOCS}"
+ WEB_SITE=https://github.com/ibara/oksh
+ ENTERED=20190501
+ LICENSE[0]=PD
+ LICENSE[1]=BSD
+ LICENSE[2]=ISC
+ KEYWORDS="shell"
+ SHORT="portable OpenBSD ksh"
+cat << EOF
+oksh is a portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh).
+EOF
diff --git a/shell-term-fm/oksh/HISTORY b/shell-term-fm/oksh/HISTORY
new file mode 100644
index 0000000000..f076d6d013
--- /dev/null
+++ b/shell-term-fm/oksh/HISTORY
@@ -0,0 +1,3 @@
+2019-05-01 Vlad Glagolev <stealth@sourcemage.org>
+ * DETAILS, DEPENDS, BUILD, CONFIGURE, INSTALL, PROVIDES: created spell,
+ version 6.5
diff --git a/shell-term-fm/oksh/INSTALL b/shell-term-fm/oksh/INSTALL
new file mode 100755
index 0000000000..297f47aba2
--- /dev/null
+++ b/shell-term-fm/oksh/INSTALL
@@ -0,0 +1,4 @@
+default_install &&
+
+install_config_file "${SOURCE_DIRECTORY}/profile" \
+ "${INSTALL_ROOT}/etc/profile"
diff --git a/shell-term-fm/oksh/PROVIDES b/shell-term-fm/oksh/PROVIDES
new file mode 100755
index 0000000000..679c12abfa
--- /dev/null
+++ b/shell-term-fm/oksh/PROVIDES
@@ -0,0 +1 @@
+SHELL