Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] helix: update to 22.05
@ 2022-05-28 16:55 tranzystorek-io
  2022-05-28 16:57 ` [PR PATCH] [Updated] " tranzystorek-io
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: tranzystorek-io @ 2022-05-28 16:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1242 bytes --]

There is a new pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages helix
https://github.com/void-linux/void-packages/pull/37332

helix: update to 22.05
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37332.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-helix-37332.patch --]
[-- Type: text/x-diff, Size: 6435 bytes --]

From d3cc5b59ed25352cdf96da6da5a5f1feeff8bbbd Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Sat, 28 May 2022 18:53:51 +0200
Subject: [PATCH] helix: update to 22.05

---
 ...g-the-format-ident-Rust-feature-1881.patch | 104 ------------------
 srcpkgs/helix/template                        |  13 ++-
 2 files changed, 10 insertions(+), 107 deletions(-)
 delete mode 100644 srcpkgs/helix/patches/0001-Avoid-using-the-format-ident-Rust-feature-1881.patch

diff --git a/srcpkgs/helix/patches/0001-Avoid-using-the-format-ident-Rust-feature-1881.patch b/srcpkgs/helix/patches/0001-Avoid-using-the-format-ident-Rust-feature-1881.patch
deleted file mode 100644
index 73eafa91cc1b..000000000000
--- a/srcpkgs/helix/patches/0001-Avoid-using-the-format-ident-Rust-feature-1881.patch
+++ /dev/null
@@ -1,104 +0,0 @@
-From f2dd3d446914ec0953cd7e056d430fc3b959e75d Mon Sep 17 00:00:00 2001
-From: Marcin Puc <tranzystorek.io@protonmail.com>
-Date: Wed, 30 Mar 2022 02:08:30 +0200
-Subject: [PATCH] Avoid using the format ident Rust feature (#1881)
-
----
- helix-loader/src/grammar.rs      | 14 +++++++++-----
- helix-term/src/commands/typed.rs |  4 ++--
- helix-term/src/health.rs         |  9 +++++----
- 3 files changed, 16 insertions(+), 11 deletions(-)
-
-diff --git a/helix-loader/src/grammar.rs b/helix-loader/src/grammar.rs
-index 299a06bf..f0c5ea28 100644
---- a/helix-loader/src/grammar.rs
-+++ b/helix-loader/src/grammar.rs
-@@ -63,12 +63,12 @@ pub fn get_language(name: &str) -> Result<Language> {
-     library_path.set_extension(DYLIB_EXTENSION);
- 
-     let library = unsafe { Library::new(&library_path) }
--        .with_context(|| format!("Error opening dynamic library {library_path:?}"))?;
-+        .with_context(|| format!("Error opening dynamic library {:?}", library_path))?;
-     let language_fn_name = format!("tree_sitter_{}", name.replace('-', "_"));
-     let language = unsafe {
-         let language_fn: Symbol<unsafe extern "C" fn() -> Language> = library
-             .get(language_fn_name.as_bytes())
--            .with_context(|| format!("Failed to load symbol {language_fn_name}"))?;
-+            .with_context(|| format!("Failed to load symbol {}", language_fn_name))?;
-         language_fn()
-     };
-     std::mem::forget(library);
-@@ -133,7 +133,7 @@ where
-     // TODO: print all failures instead of the first one found.
-     rx.iter()
-         .find(|result| result.is_err())
--        .map(|err| err.with_context(|| format!("Failed to {action} some grammar(s)")))
-+        .map(|err| err.with_context(|| format!("Failed to {} some grammar(s)", action)))
-         .unwrap_or(Ok(()))
- }
- 
-@@ -238,12 +238,16 @@ fn build_grammar(grammar: GrammarConfiguration) -> Result<()> {
-     };
- 
-     let grammar_dir_entries = grammar_dir.read_dir().with_context(|| {
--        format!("Failed to read directory {grammar_dir:?}. Did you use 'hx --grammar fetch'?")
-+        format!(
-+            "Failed to read directory {:?}. Did you use 'hx --grammar fetch'?",
-+            grammar_dir
-+        )
-     })?;
- 
-     if grammar_dir_entries.count() == 0 {
-         return Err(anyhow!(
--            "Directory {grammar_dir:?} is empty. Did you use 'hx --grammar fetch'?"
-+            "Directory {:?} is empty. Did you use 'hx --grammar fetch'?",
-+            grammar_dir
-         ));
-     };
- 
-diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs
-index 8b7f481b..c921f85b 100644
---- a/helix-term/src/commands/typed.rs
-+++ b/helix-term/src/commands/typed.rs
-@@ -891,8 +891,8 @@ fn setting(
-     }
-     let (key, arg) = (&args[0].to_lowercase(), &args[1]);
- 
--    let key_error = || anyhow::anyhow!("Unknown key `{key}`");
--    let field_error = |_| anyhow::anyhow!("Could not parse field `{arg}`");
-+    let key_error = || anyhow::anyhow!("Unknown key `{}`", key);
-+    let field_error = |_| anyhow::anyhow!("Could not parse field `{}`", arg);
- 
-     let mut config = serde_json::to_value(&cx.editor.config().clone()).unwrap();
-     let pointer = format!("/{}", key.replace('.', "/"));
-diff --git a/helix-term/src/health.rs b/helix-term/src/health.rs
-index f13d35f0..2a02e118 100644
---- a/helix-term/src/health.rs
-+++ b/helix-term/src/health.rs
-@@ -89,10 +89,11 @@ pub fn languages_all() {
- 
-     let column = |item: &str, color: Color| {
-         let data = format!(
--            "{:column_width$}",
-+            "{:width$}",
-             item.get(..column_width - 2)
--                .map(|s| format!("{s}…"))
--                .unwrap_or_else(|| item.to_string())
-+                .map(|s| format!("{}…", s))
-+                .unwrap_or_else(|| item.to_string()),
-+            width = column_width,
-         )
-         .stylize()
-         .with(color);
-@@ -158,7 +159,7 @@ pub fn language(lang_str: String) {
-     {
-         Some(l) => l,
-         None => {
--            let msg = format!("Language '{lang_str}' not found");
-+            let msg = format!("Language '{}' not found", lang_str);
-             println!("{}", msg.red());
-             let suggestions: Vec<&str> = syn_loader_conf
-                 .language
--- 
-2.35.1
-
diff --git a/srcpkgs/helix/template b/srcpkgs/helix/template
index b454cc8fa87c..765d55d142ef 100644
--- a/srcpkgs/helix/template
+++ b/srcpkgs/helix/template
@@ -1,7 +1,7 @@
 # Template file for 'helix'
 pkgname=helix
-version=22.03
-revision=2
+version=22.05
+revision=1
 build_style=cargo
 make_install_args="--path helix-term"
 hostmakedepends="git"
@@ -11,7 +11,7 @@ license="MPL-2.0"
 homepage="https://helix-editor.com/"
 changelog="https://github.com/helix-editor/helix/blob/master/CHANGELOG.md"
 distfiles="https://github.com/helix-editor/helix/archive/${version}.tar.gz"
-checksum=a21f4d7b6390930a89b59567909ad7c613a1eeeafc813167ff7bc3be603997f4
+checksum=722237abb209d6a3683877dff039b198fffe0d37cc607f4fc8c05febcfd7e24e
 
 # skip problematic doctests on i686
 case "$XBPS_TARGET_MACHINE" in
@@ -29,6 +29,13 @@ post_install() {
 	rm runtime/themes/README.md
 	rm -rf runtime/grammars/sources
 
+	for shell in bash zsh fish; do
+		vcompletion contrib/completion/hx.${shell} ${shell} hx
+	done
+
+	vinstall contrib/Helix.desktop 644 /usr/share/applications
+	vinstall contrib/helix.png 644 usr/share/icons/hicolor/128x128/apps
+
 	vmkdir usr/lib/helix
 	mv ${DESTDIR}/usr/bin/hx ${DESTDIR}/usr/lib/helix/
 	vcopy runtime usr/lib/helix

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Updated] helix: update to 22.05
  2022-05-28 16:55 [PR PATCH] helix: update to 22.05 tranzystorek-io
@ 2022-05-28 16:57 ` tranzystorek-io
  2022-05-28 17:09 ` tranzystorek-io
  2022-05-29  8:00 ` [PR PATCH] [Merged]: " paper42
  2 siblings, 0 replies; 4+ messages in thread
From: tranzystorek-io @ 2022-05-28 16:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1247 bytes --]

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages helix
https://github.com/void-linux/void-packages/pull/37332

helix: update to 22.05
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37332.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-helix-37332.patch --]
[-- Type: text/x-diff, Size: 6435 bytes --]

From dc3a28375e209cf88856c27f313d95697a66932e Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Sat, 28 May 2022 18:53:51 +0200
Subject: [PATCH] helix: update to 22.05

---
 ...g-the-format-ident-Rust-feature-1881.patch | 104 ------------------
 srcpkgs/helix/template                        |  13 ++-
 2 files changed, 10 insertions(+), 107 deletions(-)
 delete mode 100644 srcpkgs/helix/patches/0001-Avoid-using-the-format-ident-Rust-feature-1881.patch

diff --git a/srcpkgs/helix/patches/0001-Avoid-using-the-format-ident-Rust-feature-1881.patch b/srcpkgs/helix/patches/0001-Avoid-using-the-format-ident-Rust-feature-1881.patch
deleted file mode 100644
index 73eafa91cc1b..000000000000
--- a/srcpkgs/helix/patches/0001-Avoid-using-the-format-ident-Rust-feature-1881.patch
+++ /dev/null
@@ -1,104 +0,0 @@
-From f2dd3d446914ec0953cd7e056d430fc3b959e75d Mon Sep 17 00:00:00 2001
-From: Marcin Puc <tranzystorek.io@protonmail.com>
-Date: Wed, 30 Mar 2022 02:08:30 +0200
-Subject: [PATCH] Avoid using the format ident Rust feature (#1881)
-
----
- helix-loader/src/grammar.rs      | 14 +++++++++-----
- helix-term/src/commands/typed.rs |  4 ++--
- helix-term/src/health.rs         |  9 +++++----
- 3 files changed, 16 insertions(+), 11 deletions(-)
-
-diff --git a/helix-loader/src/grammar.rs b/helix-loader/src/grammar.rs
-index 299a06bf..f0c5ea28 100644
---- a/helix-loader/src/grammar.rs
-+++ b/helix-loader/src/grammar.rs
-@@ -63,12 +63,12 @@ pub fn get_language(name: &str) -> Result<Language> {
-     library_path.set_extension(DYLIB_EXTENSION);
- 
-     let library = unsafe { Library::new(&library_path) }
--        .with_context(|| format!("Error opening dynamic library {library_path:?}"))?;
-+        .with_context(|| format!("Error opening dynamic library {:?}", library_path))?;
-     let language_fn_name = format!("tree_sitter_{}", name.replace('-', "_"));
-     let language = unsafe {
-         let language_fn: Symbol<unsafe extern "C" fn() -> Language> = library
-             .get(language_fn_name.as_bytes())
--            .with_context(|| format!("Failed to load symbol {language_fn_name}"))?;
-+            .with_context(|| format!("Failed to load symbol {}", language_fn_name))?;
-         language_fn()
-     };
-     std::mem::forget(library);
-@@ -133,7 +133,7 @@ where
-     // TODO: print all failures instead of the first one found.
-     rx.iter()
-         .find(|result| result.is_err())
--        .map(|err| err.with_context(|| format!("Failed to {action} some grammar(s)")))
-+        .map(|err| err.with_context(|| format!("Failed to {} some grammar(s)", action)))
-         .unwrap_or(Ok(()))
- }
- 
-@@ -238,12 +238,16 @@ fn build_grammar(grammar: GrammarConfiguration) -> Result<()> {
-     };
- 
-     let grammar_dir_entries = grammar_dir.read_dir().with_context(|| {
--        format!("Failed to read directory {grammar_dir:?}. Did you use 'hx --grammar fetch'?")
-+        format!(
-+            "Failed to read directory {:?}. Did you use 'hx --grammar fetch'?",
-+            grammar_dir
-+        )
-     })?;
- 
-     if grammar_dir_entries.count() == 0 {
-         return Err(anyhow!(
--            "Directory {grammar_dir:?} is empty. Did you use 'hx --grammar fetch'?"
-+            "Directory {:?} is empty. Did you use 'hx --grammar fetch'?",
-+            grammar_dir
-         ));
-     };
- 
-diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs
-index 8b7f481b..c921f85b 100644
---- a/helix-term/src/commands/typed.rs
-+++ b/helix-term/src/commands/typed.rs
-@@ -891,8 +891,8 @@ fn setting(
-     }
-     let (key, arg) = (&args[0].to_lowercase(), &args[1]);
- 
--    let key_error = || anyhow::anyhow!("Unknown key `{key}`");
--    let field_error = |_| anyhow::anyhow!("Could not parse field `{arg}`");
-+    let key_error = || anyhow::anyhow!("Unknown key `{}`", key);
-+    let field_error = |_| anyhow::anyhow!("Could not parse field `{}`", arg);
- 
-     let mut config = serde_json::to_value(&cx.editor.config().clone()).unwrap();
-     let pointer = format!("/{}", key.replace('.', "/"));
-diff --git a/helix-term/src/health.rs b/helix-term/src/health.rs
-index f13d35f0..2a02e118 100644
---- a/helix-term/src/health.rs
-+++ b/helix-term/src/health.rs
-@@ -89,10 +89,11 @@ pub fn languages_all() {
- 
-     let column = |item: &str, color: Color| {
-         let data = format!(
--            "{:column_width$}",
-+            "{:width$}",
-             item.get(..column_width - 2)
--                .map(|s| format!("{s}…"))
--                .unwrap_or_else(|| item.to_string())
-+                .map(|s| format!("{}…", s))
-+                .unwrap_or_else(|| item.to_string()),
-+            width = column_width,
-         )
-         .stylize()
-         .with(color);
-@@ -158,7 +159,7 @@ pub fn language(lang_str: String) {
-     {
-         Some(l) => l,
-         None => {
--            let msg = format!("Language '{lang_str}' not found");
-+            let msg = format!("Language '{}' not found", lang_str);
-             println!("{}", msg.red());
-             let suggestions: Vec<&str> = syn_loader_conf
-                 .language
--- 
-2.35.1
-
diff --git a/srcpkgs/helix/template b/srcpkgs/helix/template
index b454cc8fa87c..1b9a844c6bd1 100644
--- a/srcpkgs/helix/template
+++ b/srcpkgs/helix/template
@@ -1,7 +1,7 @@
 # Template file for 'helix'
 pkgname=helix
-version=22.03
-revision=2
+version=22.05
+revision=1
 build_style=cargo
 make_install_args="--path helix-term"
 hostmakedepends="git"
@@ -11,7 +11,7 @@ license="MPL-2.0"
 homepage="https://helix-editor.com/"
 changelog="https://github.com/helix-editor/helix/blob/master/CHANGELOG.md"
 distfiles="https://github.com/helix-editor/helix/archive/${version}.tar.gz"
-checksum=a21f4d7b6390930a89b59567909ad7c613a1eeeafc813167ff7bc3be603997f4
+checksum=96603cf5504bbd7ebeee1867d65356cccaa2877f697da50c0ad3789a3eb287e4
 
 # skip problematic doctests on i686
 case "$XBPS_TARGET_MACHINE" in
@@ -29,6 +29,13 @@ post_install() {
 	rm runtime/themes/README.md
 	rm -rf runtime/grammars/sources
 
+	for shell in bash zsh fish; do
+		vcompletion contrib/completion/hx.${shell} ${shell} hx
+	done
+
+	vinstall contrib/Helix.desktop 644 /usr/share/applications
+	vinstall contrib/helix.png 644 usr/share/icons/hicolor/128x128/apps
+
 	vmkdir usr/lib/helix
 	mv ${DESTDIR}/usr/bin/hx ${DESTDIR}/usr/lib/helix/
 	vcopy runtime usr/lib/helix

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Updated] helix: update to 22.05
  2022-05-28 16:55 [PR PATCH] helix: update to 22.05 tranzystorek-io
  2022-05-28 16:57 ` [PR PATCH] [Updated] " tranzystorek-io
@ 2022-05-28 17:09 ` tranzystorek-io
  2022-05-29  8:00 ` [PR PATCH] [Merged]: " paper42
  2 siblings, 0 replies; 4+ messages in thread
From: tranzystorek-io @ 2022-05-28 17:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1247 bytes --]

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages helix
https://github.com/void-linux/void-packages/pull/37332

helix: update to 22.05
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37332.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-helix-37332.patch --]
[-- Type: text/x-diff, Size: 6434 bytes --]

From ae2c4c4f48455a7b2f42e05f09e95a725877c3d3 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Sat, 28 May 2022 18:53:51 +0200
Subject: [PATCH] helix: update to 22.05

---
 ...g-the-format-ident-Rust-feature-1881.patch | 104 ------------------
 srcpkgs/helix/template                        |  13 ++-
 2 files changed, 10 insertions(+), 107 deletions(-)
 delete mode 100644 srcpkgs/helix/patches/0001-Avoid-using-the-format-ident-Rust-feature-1881.patch

diff --git a/srcpkgs/helix/patches/0001-Avoid-using-the-format-ident-Rust-feature-1881.patch b/srcpkgs/helix/patches/0001-Avoid-using-the-format-ident-Rust-feature-1881.patch
deleted file mode 100644
index 73eafa91cc1b..000000000000
--- a/srcpkgs/helix/patches/0001-Avoid-using-the-format-ident-Rust-feature-1881.patch
+++ /dev/null
@@ -1,104 +0,0 @@
-From f2dd3d446914ec0953cd7e056d430fc3b959e75d Mon Sep 17 00:00:00 2001
-From: Marcin Puc <tranzystorek.io@protonmail.com>
-Date: Wed, 30 Mar 2022 02:08:30 +0200
-Subject: [PATCH] Avoid using the format ident Rust feature (#1881)
-
----
- helix-loader/src/grammar.rs      | 14 +++++++++-----
- helix-term/src/commands/typed.rs |  4 ++--
- helix-term/src/health.rs         |  9 +++++----
- 3 files changed, 16 insertions(+), 11 deletions(-)
-
-diff --git a/helix-loader/src/grammar.rs b/helix-loader/src/grammar.rs
-index 299a06bf..f0c5ea28 100644
---- a/helix-loader/src/grammar.rs
-+++ b/helix-loader/src/grammar.rs
-@@ -63,12 +63,12 @@ pub fn get_language(name: &str) -> Result<Language> {
-     library_path.set_extension(DYLIB_EXTENSION);
- 
-     let library = unsafe { Library::new(&library_path) }
--        .with_context(|| format!("Error opening dynamic library {library_path:?}"))?;
-+        .with_context(|| format!("Error opening dynamic library {:?}", library_path))?;
-     let language_fn_name = format!("tree_sitter_{}", name.replace('-', "_"));
-     let language = unsafe {
-         let language_fn: Symbol<unsafe extern "C" fn() -> Language> = library
-             .get(language_fn_name.as_bytes())
--            .with_context(|| format!("Failed to load symbol {language_fn_name}"))?;
-+            .with_context(|| format!("Failed to load symbol {}", language_fn_name))?;
-         language_fn()
-     };
-     std::mem::forget(library);
-@@ -133,7 +133,7 @@ where
-     // TODO: print all failures instead of the first one found.
-     rx.iter()
-         .find(|result| result.is_err())
--        .map(|err| err.with_context(|| format!("Failed to {action} some grammar(s)")))
-+        .map(|err| err.with_context(|| format!("Failed to {} some grammar(s)", action)))
-         .unwrap_or(Ok(()))
- }
- 
-@@ -238,12 +238,16 @@ fn build_grammar(grammar: GrammarConfiguration) -> Result<()> {
-     };
- 
-     let grammar_dir_entries = grammar_dir.read_dir().with_context(|| {
--        format!("Failed to read directory {grammar_dir:?}. Did you use 'hx --grammar fetch'?")
-+        format!(
-+            "Failed to read directory {:?}. Did you use 'hx --grammar fetch'?",
-+            grammar_dir
-+        )
-     })?;
- 
-     if grammar_dir_entries.count() == 0 {
-         return Err(anyhow!(
--            "Directory {grammar_dir:?} is empty. Did you use 'hx --grammar fetch'?"
-+            "Directory {:?} is empty. Did you use 'hx --grammar fetch'?",
-+            grammar_dir
-         ));
-     };
- 
-diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs
-index 8b7f481b..c921f85b 100644
---- a/helix-term/src/commands/typed.rs
-+++ b/helix-term/src/commands/typed.rs
-@@ -891,8 +891,8 @@ fn setting(
-     }
-     let (key, arg) = (&args[0].to_lowercase(), &args[1]);
- 
--    let key_error = || anyhow::anyhow!("Unknown key `{key}`");
--    let field_error = |_| anyhow::anyhow!("Could not parse field `{arg}`");
-+    let key_error = || anyhow::anyhow!("Unknown key `{}`", key);
-+    let field_error = |_| anyhow::anyhow!("Could not parse field `{}`", arg);
- 
-     let mut config = serde_json::to_value(&cx.editor.config().clone()).unwrap();
-     let pointer = format!("/{}", key.replace('.', "/"));
-diff --git a/helix-term/src/health.rs b/helix-term/src/health.rs
-index f13d35f0..2a02e118 100644
---- a/helix-term/src/health.rs
-+++ b/helix-term/src/health.rs
-@@ -89,10 +89,11 @@ pub fn languages_all() {
- 
-     let column = |item: &str, color: Color| {
-         let data = format!(
--            "{:column_width$}",
-+            "{:width$}",
-             item.get(..column_width - 2)
--                .map(|s| format!("{s}…"))
--                .unwrap_or_else(|| item.to_string())
-+                .map(|s| format!("{}…", s))
-+                .unwrap_or_else(|| item.to_string()),
-+            width = column_width,
-         )
-         .stylize()
-         .with(color);
-@@ -158,7 +159,7 @@ pub fn language(lang_str: String) {
-     {
-         Some(l) => l,
-         None => {
--            let msg = format!("Language '{lang_str}' not found");
-+            let msg = format!("Language '{}' not found", lang_str);
-             println!("{}", msg.red());
-             let suggestions: Vec<&str> = syn_loader_conf
-                 .language
--- 
-2.35.1
-
diff --git a/srcpkgs/helix/template b/srcpkgs/helix/template
index b454cc8fa87c..db32524c9528 100644
--- a/srcpkgs/helix/template
+++ b/srcpkgs/helix/template
@@ -1,7 +1,7 @@
 # Template file for 'helix'
 pkgname=helix
-version=22.03
-revision=2
+version=22.05
+revision=1
 build_style=cargo
 make_install_args="--path helix-term"
 hostmakedepends="git"
@@ -11,7 +11,7 @@ license="MPL-2.0"
 homepage="https://helix-editor.com/"
 changelog="https://github.com/helix-editor/helix/blob/master/CHANGELOG.md"
 distfiles="https://github.com/helix-editor/helix/archive/${version}.tar.gz"
-checksum=a21f4d7b6390930a89b59567909ad7c613a1eeeafc813167ff7bc3be603997f4
+checksum=96603cf5504bbd7ebeee1867d65356cccaa2877f697da50c0ad3789a3eb287e4
 
 # skip problematic doctests on i686
 case "$XBPS_TARGET_MACHINE" in
@@ -29,6 +29,13 @@ post_install() {
 	rm runtime/themes/README.md
 	rm -rf runtime/grammars/sources
 
+	for shell in bash zsh fish; do
+		vcompletion contrib/completion/hx.${shell} ${shell} hx
+	done
+
+	vinstall contrib/Helix.desktop 644 usr/share/applications
+	vinstall contrib/helix.png 644 usr/share/icons/hicolor/128x128/apps
+
 	vmkdir usr/lib/helix
 	mv ${DESTDIR}/usr/bin/hx ${DESTDIR}/usr/lib/helix/
 	vcopy runtime usr/lib/helix

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Merged]: helix: update to 22.05
  2022-05-28 16:55 [PR PATCH] helix: update to 22.05 tranzystorek-io
  2022-05-28 16:57 ` [PR PATCH] [Updated] " tranzystorek-io
  2022-05-28 17:09 ` tranzystorek-io
@ 2022-05-29  8:00 ` paper42
  2 siblings, 0 replies; 4+ messages in thread
From: paper42 @ 2022-05-29  8:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1077 bytes --]

There's a merged pull request on the void-packages repository

helix: update to 22.05
https://github.com/void-linux/void-packages/pull/37332

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-29  8:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-28 16:55 [PR PATCH] helix: update to 22.05 tranzystorek-io
2022-05-28 16:57 ` [PR PATCH] [Updated] " tranzystorek-io
2022-05-28 17:09 ` tranzystorek-io
2022-05-29  8:00 ` [PR PATCH] [Merged]: " paper42

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).