Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: csview-1.0.1
@ 2022-05-20  8:37 0x5c
  2022-05-25  8:46 ` [PR PATCH] [Updated] " 0x5c
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: 0x5c @ 2022-05-20  8:37 UTC (permalink / raw)
  To: ml

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

There is a new pull request by 0x5c against master on the void-packages repository

https://github.com/0x5c/void-packages csview
https://github.com/void-linux/void-packages/pull/37210

New package: csview-1.0.1
#### 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**

<!-- 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/37210.patch is attached

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

From cb82409a84d83bdfd011c7b00b2060fe683a53e0 Mon Sep 17 00:00:00 2001
From: 0x5c <dev@0x5c.io>
Date: Fri, 20 May 2022 04:27:26 -0400
Subject: [PATCH] New package: csview-1.0.1

---
 .../rust1.58_format-args-capture.patch        | 15 +++++++++++++++
 srcpkgs/csview/template                       | 19 +++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 srcpkgs/csview/patches/rust1.58_format-args-capture.patch
 create mode 100644 srcpkgs/csview/template

diff --git a/srcpkgs/csview/patches/rust1.58_format-args-capture.patch b/srcpkgs/csview/patches/rust1.58_format-args-capture.patch
new file mode 100644
index 000000000000..ac38f311dd05
--- /dev/null
+++ b/srcpkgs/csview/patches/rust1.58_format-args-capture.patch
@@ -0,0 +1,15 @@
+Fix usage of format args capture, which is not supported on our rust version.
+
+--
+
+--- a/src/table/row.rs
++++ b/src/table/row.rs
+@@ -27,7 +27,7 @@
+                 .iter()
+                 .zip(widths)
+                 .map(|(cell, &width)| cell.unicode_pad(width, Alignment::Left, true))
+-                .map(|s| format!("{:pad$}{s}{:pad$}", "", "", pad = fmt.padding)),
++                .map(|s| format!("{:pad$}{}{:pad$}", "", s, "", pad = fmt.padding)),
+             sep,
+         )
+         .try_for_each(|s| write!(wtr, "{}", s))?;
diff --git a/srcpkgs/csview/template b/srcpkgs/csview/template
new file mode 100644
index 000000000000..375cba303289
--- /dev/null
+++ b/srcpkgs/csview/template
@@ -0,0 +1,19 @@
+# Template file for 'csview'
+pkgname=csview
+version=1.0.1
+revision=1
+build_style=cargo
+short_desc="Pretty csv viewer for cli with cjk/emoji support"
+maintainer="0x5c <dev@0x5c.io>"
+license="MIT, Apache-2.0"
+homepage="https://github.com/wfxr/csview"
+distfiles="https://github.com/wfxr/csview/archive/refs/tags/v${version}.tar.gz"
+checksum=34df6838dd9407197511887cdc9b2a3ed08b4b508f9c6bb660def326ea953e8c
+
+post_install() {
+	vlicense LICENSE-MIT
+	vcompletion "completions/zsh/_csview" zsh csview
+	vcompletion "completions/bash/csview.bash" bash csview
+	vcompletion "completions/fish/csview.fish" fish csview
+	vinstall "completions/elvish/csview.elv" 644 "/usr/share/elvish/lib/"
+}

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

end of thread, other threads:[~2022-12-20  1:58 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20  8:37 [PR PATCH] New package: csview-1.0.1 0x5c
2022-05-25  8:46 ` [PR PATCH] [Updated] " 0x5c
2022-05-29  6:26 ` 0x5c
2022-05-30 19:24 ` 0x5c
2022-06-02  2:39 ` 0x5c
2022-06-06 22:17 ` 0x5c
2022-06-08  0:42 ` 0x5c
2022-06-08  2:21 ` 0x5c
2022-06-08  5:32 ` 0x5c
2022-06-12  1:24 ` [PR PATCH] [Updated] " 0x5c
2022-06-20 19:27 ` 0x5c
2022-06-27  0:31 ` 0x5c
2022-07-01  7:35 ` 0x5c
2022-07-21  1:42 ` 0x5c
2022-09-05 19:02 ` 0x5c
2022-12-05  1:59 ` New package: csview-1.1.0 github-actions
2022-12-20  1:58 ` [PR PATCH] [Closed]: " github-actions

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).