Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (bfa3226846c0650a228170277d9c7301fee13bc8)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (bfa3226846c0650a228170277d9c7301fee13bc8)
  • Date: Wed, 23 Feb 2022 02:15:55 +0000

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

ChangeLog | 3 +++
editors/openvi/BUILD | 1 +
editors/openvi/CONFIGURE | 15 +++++++++++++++
editors/openvi/DEPENDS | 4 ++++
editors/openvi/DETAILS | 26 ++++++++++++++++++++++++++
editors/openvi/HISTORY | 3 +++
editors/openvi/INSTALL | 12 ++++++++++++
editors/openvi/PROVIDES | 3 +++
editors/openvi/profile.d/editor.sh | 10 ++++++++++
9 files changed, 77 insertions(+)

New commits:
commit bfa3226846c0650a228170277d9c7301fee13bc8
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

openvi: new spell, portable OpenBSD vi for UNIX systems

diff --git a/ChangeLog b/ChangeLog
index c0d54f7..09a39b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2022-02-22 Vlad Glagolev <stealth AT sourcemage.org>
+ * editors/openvi: new spell, portable OpenBSD vi for UNIX systems
+
2022-02-16 Treeve Jelbert <treeve AT sourcemage.org>
* KDE5_*: prepare for qt6/6

diff --git a/editors/openvi/BUILD b/editors/openvi/BUILD
new file mode 100755
index 0000000..465478a
--- /dev/null
+++ b/editors/openvi/BUILD
@@ -0,0 +1 @@
+make V=1 OPTLEVEL=
diff --git a/editors/openvi/CONFIGURE b/editors/openvi/CONFIGURE
new file mode 100755
index 0000000..97bff97
--- /dev/null
+++ b/editors/openvi/CONFIGURE
@@ -0,0 +1,15 @@
+config_query OPENVI_SYMLINK "Would you like to have /usr/bin/[vi|ex] as a
symlink to /usr/bin/o[vi|ex]?" n &&
+
+if [ "${OPENVI_SYMLINK}" == "y" ]; then
+ if [ -e /usr/bin/vi ] && `readlink -f "/usr/bin/vi" | grep -Eqv "ovi"`;
then
+ message "${MESSAGE_COLOR}VI is already provided by another vi clone.
Recast it" &&
+ message "with the vi symlink option disabled, then recast
${SPELL}.${DEFAULT_COLOR}" &&
+ OPENVI_SYMLINK="n"
+ fi &&
+
+ if [ -e /usr/bin/ex ] && `readlink -f "/usr/bin/ex" | grep -Eqv "oex"`;
then
+ message "${MESSAGE_COLOR}EX is already provided by another ex clone.
Recast it" &&
+ message "with the ex symlink option disabled, then recast
${SPELL}.${DEFAULT_COLOR}" &&
+ OPENVI_SYMLINK="n"
+ fi
+fi
diff --git a/editors/openvi/DEPENDS b/editors/openvi/DEPENDS
new file mode 100755
index 0000000..5bae89b
--- /dev/null
+++ b/editors/openvi/DEPENDS
@@ -0,0 +1,4 @@
+depends ncurses &&
+
+# required for ovi.recover
+runtime_depends perl
diff --git a/editors/openvi/DETAILS b/editors/openvi/DETAILS
new file mode 100755
index 0000000..773f2f6
--- /dev/null
+++ b/editors/openvi/DETAILS
@@ -0,0 +1,26 @@
+ SPELL=openvi
+ SPELLX=OpenVi
+ VERSION=7.0.12
+ SOURCE=${SPELL}-${VERSION}.tar.gz
+
SOURCE_URL[0]=https://github.com/johnsonjh/${SPELLX}/archive/refs/tags/${VERSION}.tar.gz
+
SOURCE_HASH=sha512:bec5b2827ee798daa11ad15319a186c4de002e4b83d1611370a332e3ff88696b89fc43813e4d546c8d1e4f269a5f4e293e0916e2d9def7836c3b5de24c086095
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELLX}-${VERSION}"
+ DOC_DIRS=""
+ WEB_SITE=https://github.com/johnsonjh/OpenVi
+ ENTERED=20220222
+ LICENSE[0]=BSD
+ KEYWORDS="editors"
+ SHORT="portable OpenBSD vi for UNIX systems"
+cat << EOF
+OpenVi is an enhanced and portable implementation of the Berkeley vi / ex
text
+editor, originally developed by Bill Joy.
+
+OpenVi is a fork of the vi / ex editor included with OpenBSD, which is
derived
+from version 1.79 of the nvi editor originally distributed as part of the
+Fourth Berkeley Software Distribution (4BSD).
+
+The nvi editor was developed by Keith Bostic of the Computer Systems Research
+Group (CSRG) at the University of California, Berkeley, Sven Verdoolaege, and
+other contributors. Nvi itself was derived from Steve Kirkendall's Elvis
+editor.
+EOF
diff --git a/editors/openvi/HISTORY b/editors/openvi/HISTORY
new file mode 100644
index 0000000..68aced9
--- /dev/null
+++ b/editors/openvi/HISTORY
@@ -0,0 +1,3 @@
+2022-02-22 Vlad Glagolev <stealth AT sourcemage.org>
+ * DETAILS, DEPENDS, BUILD, INSTALL, CONFIGURE, PROVIDES, profile.d:
+ created spell, version 7.0.12
diff --git a/editors/openvi/INSTALL b/editors/openvi/INSTALL
new file mode 100755
index 0000000..fd304f0
--- /dev/null
+++ b/editors/openvi/INSTALL
@@ -0,0 +1,12 @@
+make PREFIX="${INSTALL_ROOT}/usr" install &&
+
+if [[ $OPENVI_SYMLINK == y ]]; then
+ ln -vsf "${TRACK_ROOT}/usr/bin/ovi" "${INSTALL_ROOT}/usr/bin/vi" &&
+ ln -vsf "${TRACK_ROOT}/usr/bin/oex" "${INSTALL_ROOT}/usr/bin/ex"
+fi &&
+
+if install_config_file "${SPELL_DIRECTORY}/profile.d/editor.sh" \
+ "${INSTALL_ROOT}/etc/profile.d/editor.sh"; then
+
+ chmod 0755 "${INSTALL_ROOT}/etc/profile.d/editor.sh"
+fi
diff --git a/editors/openvi/PROVIDES b/editors/openvi/PROVIDES
new file mode 100755
index 0000000..3d7b456
--- /dev/null
+++ b/editors/openvi/PROVIDES
@@ -0,0 +1,3 @@
+VI
+EX
+TEXT-EDITOR
diff --git a/editors/openvi/profile.d/editor.sh
b/editors/openvi/profile.d/editor.sh
new file mode 100644
index 0000000..8f7b7f1
--- /dev/null
+++ b/editors/openvi/profile.d/editor.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+# First check if this variable is already set
+# then if not set, check it (maybe), then set it
+
+if [ -z "$EDITOR" ] ; then
+ EDITOR="ovi"
+fi
+
+export EDITOR
+



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (bfa3226846c0650a228170277d9c7301fee13bc8), Vlad Glagolev, 02/22/2022

Archive powered by MHonArc 2.6.24.

Top of Page