* [PR PATCH] ouch: update to 0.4.0.
@ 2022-11-24 15:00 jcgruenhage
2022-11-25 6:05 ` [PR PATCH] [Merged]: " classabbyamp
0 siblings, 1 reply; 2+ messages in thread
From: jcgruenhage @ 2022-11-24 15:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1224 bytes --]
There is a new pull request by jcgruenhage against master on the void-packages repository
https://github.com/jcgruenhage/void-packages ouch-0.4.0_1
https://github.com/void-linux/void-packages/pull/40731
ouch: update to 0.4.0.
<!-- 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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-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/40731.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ouch-0.4.0_1-40731.patch --]
[-- Type: text/x-diff, Size: 5887 bytes --]
From df505320ddc2f1ab6cbf8c22c581c3a24f90b668 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
<jan.christian@gruenhage.xyz>
Date: Thu, 24 Nov 2022 15:58:46 +0100
Subject: [PATCH] ouch: update to 0.4.0.
---
...riding-the-completions-output-direct.patch | 40 ----------------
| 46 -------------------
srcpkgs/ouch/template | 18 +++++---
3 files changed, 11 insertions(+), 93 deletions(-)
delete mode 100644 srcpkgs/ouch/patches/0001-chore-allow-overriding-the-completions-output-direct.patch
delete mode 100644 srcpkgs/ouch/patches/0002-fix-remove-single-quotes-from-clap-doc-comments.patch
diff --git a/srcpkgs/ouch/patches/0001-chore-allow-overriding-the-completions-output-direct.patch b/srcpkgs/ouch/patches/0001-chore-allow-overriding-the-completions-output-direct.patch
deleted file mode 100644
index da97e65e7658..000000000000
--- a/srcpkgs/ouch/patches/0001-chore-allow-overriding-the-completions-output-direct.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From 60763a64c1b7268050bb61fb8cef1c982bbd4aca Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
- <jan.christian@gruenhage.xyz>
-Date: Sun, 13 Feb 2022 09:53:28 +0100
-Subject: [PATCH 1/2] chore: allow overriding the completions output directory
-
----
- build.rs | 10 ++++++++--
- 1 file changed, 8 insertions(+), 2 deletions(-)
-
-diff --git a/build.rs b/build.rs
-index 5372154..b5c56c4 100644
---- a/build.rs
-+++ b/build.rs
-@@ -1,7 +1,7 @@
- use clap::{ArgEnum, IntoApp};
- use clap_generate::{generate_to, Shell};
-
--use std::{env, fs::create_dir_all, path::Path};
-+use std::{env, fs::create_dir_all};
-
- include!("src/opts.rs");
-
-@@ -12,7 +12,13 @@ fn main() {
- return;
- }
-
-- let out = &Path::new(&env::var_os("OUT_DIR").unwrap()).join("completions");
-+ let out = &env::var_os("OUCH_COMPLETIONS_DIR")
-+ .map(|path| PathBuf::from(&path))
-+ .or_else(|| env::var_os("OUT_DIR")
-+ .map(|path| PathBuf::from(&path))
-+ .map(|path| path.join("completions"))
-+ ).unwrap();
-+
- create_dir_all(out).unwrap();
- let app = &mut Opts::into_app();
-
---
-2.35.1
diff --git a/srcpkgs/ouch/patches/0002-fix-remove-single-quotes-from-clap-doc-comments.patch b/srcpkgs/ouch/patches/0002-fix-remove-single-quotes-from-clap-doc-comments.patch
deleted file mode 100644
index a44a7d183e0b..000000000000
--- a/srcpkgs/ouch/patches/0002-fix-remove-single-quotes-from-clap-doc-comments.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From b6279d75db53ddc34dd6ba727df1b7fd0ad134dd Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
- <jan.christian@gruenhage.xyz>
-Date: Sun, 13 Feb 2022 10:09:29 +0100
-Subject: [PATCH 2/2] fix: remove single quotes from clap doc comments
-
-Apparently, clap_complete doesn't properly escape single quotes in doc
-comments, leading to broken shell completions for zsh. To circumvent
-this, I've removed the single quote in the one place where it shouldn't
-have been in the first place ("it's" vs "its", contraction vs possessive
-pronoun), and replaced "it's" with "it is" in the other place.
-
-Reference to upstream issue: https://github.com/clap-rs/clap/issues/1596
----
- src/commands.rs | 2 +-
- src/opts.rs | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/src/commands.rs b/src/commands.rs
-index 106e36d..692dceb 100644
---- a/src/commands.rs
-+++ b/src/commands.rs
-@@ -99,7 +99,7 @@ pub fn run(args: Opts, question_policy: QuestionPolicy) -> crate::Result<()> {
- let output_file = fs::File::create(&output_path)?;
-
- if !represents_several_files(&files) {
-- // It's possible the file is already partially compressed so we don't want to compress it again
-+ // It is possible the file is already partially compressed so we don't want to compress it again
- // `ouch compress file.tar.gz file.tar.gz.xz` should produce `file.tar.gz.xz` and not `file.tar.gz.tar.gz.xz`
- let input_extensions = extension::extensions_from_path(&files[0]);
-
-diff --git a/src/opts.rs b/src/opts.rs
-index 14d6997..e532e7b 100644
---- a/src/opts.rs
-+++ b/src/opts.rs
-@@ -39,7 +39,7 @@ pub enum Subcommand {
- #[clap(required = true, min_values = 1)]
- files: Vec<PathBuf>,
-
-- /// The resulting file. It's extensions can be used to specify the compression formats.
-+ /// The resulting file. Its extensions can be used to specify the compression formats.
- #[clap(required = true, value_hint = ValueHint::FilePath)]
- output: PathBuf,
- },
---
-2.35.1
diff --git a/srcpkgs/ouch/template b/srcpkgs/ouch/template
index 9e585cdda85e..ad859bc43f89 100644
--- a/srcpkgs/ouch/template
+++ b/srcpkgs/ouch/template
@@ -1,6 +1,6 @@
# Template file for 'ouch'
pkgname=ouch
-version=0.3.1
+version=0.4.0
revision=1
build_style=cargo
makedepends="liblzma-devel bzip2-devel libzip-devel"
@@ -9,16 +9,20 @@ maintainer="Savoy <savoy@liberation.red>"
license="MIT"
homepage="https://github.com/ouch-org/ouch"
distfiles="https://github.com/ouch-org/ouch/archive/refs/tags/${version}.tar.gz"
-checksum=269abaf5ac2f80da3796dbf5e73419c1b64104d1295f3ff57965141f079e6f6d
+checksum=3e126f00e1ad82ef4abfd28f86dac53b366a29de6a70359e734ecc8748f580fc
pre_build() {
- export GEN_COMPLETIONS=1
- export OUCH_COMPLETIONS_DIR=completions
+ export OUCH_ARTIFACTS_FOLDER=artifacts
}
post_install() {
vlicense LICENSE
- vcompletion "completions/_ouch" zsh
- vcompletion "completions/ouch.fish" fish
- vcompletion "completions/ouch.bash" bash
+ vcompletion "artifacts/_ouch" zsh
+ vcompletion "artifacts/ouch.fish" fish
+ vcompletion "artifacts/ouch.bash" bash
+
+ for page in artifacts/*.1; do
+ vman ${page}
+ done
+
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PR PATCH] [Merged]: ouch: update to 0.4.0.
2022-11-24 15:00 [PR PATCH] ouch: update to 0.4.0 jcgruenhage
@ 2022-11-25 6:05 ` classabbyamp
0 siblings, 0 replies; 2+ messages in thread
From: classabbyamp @ 2022-11-25 6:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1060 bytes --]
There's a merged pull request on the void-packages repository
ouch: update to 0.4.0.
https://github.com/void-linux/void-packages/pull/40731
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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-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] 2+ messages in thread
end of thread, other threads:[~2022-11-25 6:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-24 15:00 [PR PATCH] ouch: update to 0.4.0 jcgruenhage
2022-11-25 6:05 ` [PR PATCH] [Merged]: " classabbyamp
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).