Github messages for voidlinux
 help / color / mirror / Atom feed
From: 0x5c <0x5c@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: csview-1.0.1
Date: Sun, 29 May 2022 08:26:34 +0200	[thread overview]
Message-ID: <20220529062634.CSYEhs5O5RPWhWLPa2IkINk9QEBUBr0hCE9tzEdSNJo@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-37210@inbox.vuxu.org>

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

There is an updated 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
-->

I'll be making a PR upstream for the patch

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 5fea37ad6f080f14a33e464487deaacd14ea85f6 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/"
+}

  parent reply	other threads:[~2022-05-29  6:26 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-20  8:37 [PR PATCH] " 0x5c
2022-05-25  8:46 ` [PR PATCH] [Updated] " 0x5c
2022-05-29  6:26 ` 0x5c [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220529062634.CSYEhs5O5RPWhWLPa2IkINk9QEBUBr0hCE9tzEdSNJo@z \
    --to=0x5c@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).