Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (aa2cbba7f32a8475c3a4175862592ebf059caf9b)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Pavel Vinogradov <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (aa2cbba7f32a8475c3a4175862592ebf059caf9b)
  • Date: Tue, 31 Jan 2023 01:36:48 +0000

GIT changes to master grimoire by Pavel Vinogradov <public AT sourcemage.org>:

ChangeLog | 3 +++
editors/helix/BUILD | 4 ++++
editors/helix/DEPENDS | 1 +
editors/helix/DETAILS | 14 ++++++++++++++
editors/helix/FINAL | 12 ++++++++++++
editors/helix/HISTORY | 4 ++++
editors/helix/INSTALL | 16 ++++++++++++++++
editors/helix/PRE_BUILD | 9 +++++++++
editors/helix/helix.sh | 3 +++
9 files changed, 66 insertions(+)

New commits:
commit aa2cbba7f32a8475c3a4175862592ebf059caf9b
Author: Pavel Vinogradov <public AT sourcemage.org>
Commit: Pavel Vinogradov <public AT sourcemage.org>

editors/helix: new spell, a post-modern modal text editor

diff --git a/ChangeLog b/ChangeLog
index 35f1b99..16b493a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2023-01-30 Pavel Vinogradov <public AT sourcemage.org>
+ * editors/helix: new spell, a post-modern modal text editor
+
2023-01-29 Treeve Jelbert <treeve AT sourcemage.org>
* KDE_VERSIONS: add KF5_VERSION for use in kf5-only/*
* rename polkit-qt5 to polkit-qt-1
diff --git a/editors/helix/BUILD b/editors/helix/BUILD
new file mode 100755
index 0000000..6109048
--- /dev/null
+++ b/editors/helix/BUILD
@@ -0,0 +1,4 @@
+export CARGO_HOME="${SOURCE_DIRECTORY}/cargo_home" &&
+
+cargo fetch --locked --target "${BUILD/-pc-/-unknown-}" &&
+cargo build --frozen --release
diff --git a/editors/helix/DEPENDS b/editors/helix/DEPENDS
new file mode 100755
index 0000000..7dbdea4
--- /dev/null
+++ b/editors/helix/DEPENDS
@@ -0,0 +1 @@
+depends rust
diff --git a/editors/helix/DETAILS b/editors/helix/DETAILS
new file mode 100755
index 0000000..310a6f8
--- /dev/null
+++ b/editors/helix/DETAILS
@@ -0,0 +1,14 @@
+ SPELL="helix"
+ VERSION="22.12"
+
SOURCE_HASH="sha512:0493378bf4df07144d910feafcb94e51a13c5e51f64ecc26d8c025872bbe81d71254879077b3f5586061aa22ef5b17578b9bf539bfcbb2dfde0be6ca5fd58021"
+ SOURCE="${SPELL}-${VERSION}-source.tar.xz"
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+
SOURCE_URL[0]="https://github.com/${SPELL}-editor/${SPELL}/releases/download/${VERSION}/${SOURCE}";
+ WEB_SITE="https://helix-editor.com/";
+ LICENSE[0]="MPL"
+ ENTERED="20230130"
+ KEYWORDS="editors"
+ SHORT="post-modern modal text editor"
+cat << EOF
+A Kakoune / Neovim inspired editor, written in Rust.
+EOF
diff --git a/editors/helix/FINAL b/editors/helix/FINAL
new file mode 100755
index 0000000..3f7e1ed
--- /dev/null
+++ b/editors/helix/FINAL
@@ -0,0 +1,12 @@
+chmod 755 "${INSTALL_ROOT}/usr/bin/${SPELL}" &&
+chmod 755 "${INSTALL_ROOT}/usr/lib/${SPELL}/hx" &&
+
+local runtime_dir="${INSTALL_ROOT}/var/lib/${SPELL}/runtime" &&
+find "$runtime_dir/grammars" -type f -name '*.so' -exec chmod 755 {} \; &&
+chmod 644 "$runtime_dir/tutor" &&
+
+chmod 644 "${INSTALL_ROOT}/usr/share/bash-completion/completions/${SPELL}" &&
+chmod 644
"${INSTALL_ROOT}/usr/share/fish/vendor_completions.d/${SPELL}.fish" &&
+chmod 644 "${INSTALL_ROOT}/usr/share/zsh/site-functions/_${SPELL}" &&
+chmod 644 "${INSTALL_ROOT}/usr/share/applications/${SPELL}.desktop" &&
+chmod 644 "${INSTALL_ROOT}/usr/share/icons/hicolor/256x256/apps/${SPELL}.png"
diff --git a/editors/helix/HISTORY b/editors/helix/HISTORY
new file mode 100644
index 0000000..7232b1b
--- /dev/null
+++ b/editors/helix/HISTORY
@@ -0,0 +1,4 @@
+2023-01-30 Pavel Vinogradov <public AT sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, FINAL, INSTALL, PRE_BUILD, helix.sh:
+ created the spell, version 22.12
+
diff --git a/editors/helix/INSTALL b/editors/helix/INSTALL
new file mode 100755
index 0000000..8cbda71
--- /dev/null
+++ b/editors/helix/INSTALL
@@ -0,0 +1,16 @@
+install -D "${SPELL}.sh" "${INSTALL_ROOT}/usr/bin/${SPELL}" &&
+install -D "target/release/hx" "${INSTALL_ROOT}/usr/lib/${SPELL}/hx" &&
+
+local runtime_dir="${INSTALL_ROOT}/var/lib/${SPELL}/runtime" &&
+mkdir -p "$runtime_dir/grammars" &&
+cp -r "runtime/queries" "$runtime_dir" &&
+cp -r "runtime/themes" "$runtime_dir" &&
+find "runtime/grammars" -type f -name '*.so' -exec install -D {} -t
"$runtime_dir/grammars" \; &&
+install -D runtime/tutor -t "$runtime_dir" &&
+ln -s "${TRACK_ROOT}/var/lib/${SPELL}/runtime"
"${INSTALL_ROOT}/usr/lib/${SPELL}/runtime" &&
+
+install -D "contrib/completion/hx.bash"
"${INSTALL_ROOT}/usr/share/bash-completion/completions/${SPELL}" &&
+install -D "contrib/completion/hx.fish"
"${INSTALL_ROOT}/usr/share/fish/vendor_completions.d/${SPELL}.fish" &&
+install -D "contrib/completion/hx.zsh"
"${INSTALL_ROOT}/usr/share/zsh/site-functions/_${SPELL}" &&
+install -D "contrib/Helix.desktop"
"${INSTALL_ROOT}/usr/share/applications/${SPELL}.desktop" &&
+install -D "contrib/${SPELL}.png" -t
"${INSTALL_ROOT}/usr/share/icons/hicolor/256x256/apps"
diff --git a/editors/helix/PRE_BUILD b/editors/helix/PRE_BUILD
new file mode 100755
index 0000000..5179f14
--- /dev/null
+++ b/editors/helix/PRE_BUILD
@@ -0,0 +1,9 @@
+mk_source_dir "${SOURCE_DIRECTORY}" &&
+cd "${SOURCE_DIRECTORY}" &&
+unpack_file &&
+
+sed -i "s|hx|helix|g" contrib/completion/hx.* &&
+sed -i 's|hx|helix|g' contrib/Helix.desktop &&
+
+cp "${SCRIPT_DIRECTORY}/${SPELL}.sh" "${SPELL}.sh" &&
+sed -e "s;/var;${INSTALL_ROOT}&;" -e "s;/usr;${INSTALL_ROOT}&;" -i
"${SPELL}.sh"
diff --git a/editors/helix/helix.sh b/editors/helix/helix.sh
new file mode 100755
index 0000000..b831c6e
--- /dev/null
+++ b/editors/helix/helix.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+
+HELIX_RUNTIME=/var/lib/helix/runtime exec /usr/lib/helix/hx "$@"



  • [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (aa2cbba7f32a8475c3a4175862592ebf059caf9b), Pavel Vinogradov, 01/30/2023

Archive powered by MHonArc 2.6.24.

Top of Page