Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: riff-2.16
@ 2022-05-07  4:43 0x5c
  2022-05-07  4:51 ` [PR REVIEW] " classabbyamp
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: 0x5c @ 2022-05-07  4:43 UTC (permalink / raw)
  To: ml

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

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

https://github.com/0x5c/void-packages riff
https://github.com/void-linux/void-packages/pull/37013

New package: riff-2.16
Fixes #36885

<!-- 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**

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

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

From 6f2b5750be754f76e5a6395b9441eca691e4cfda Mon Sep 17 00:00:00 2001
From: 0x5c <dev@0x5c.io>
Date: Sat, 7 May 2022 00:39:18 -0400
Subject: [PATCH] New package: riff-2.16

Fixes #36885
---
 srcpkgs/riff/patches/doublebuild.patch | 14 ++++++++++++++
 srcpkgs/riff/patches/git_version.patch | 15 +++++++++++++++
 srcpkgs/riff/template                  | 16 ++++++++++++++++
 3 files changed, 45 insertions(+)
 create mode 100644 srcpkgs/riff/patches/doublebuild.patch
 create mode 100644 srcpkgs/riff/patches/git_version.patch
 create mode 100644 srcpkgs/riff/template

diff --git a/srcpkgs/riff/patches/doublebuild.patch b/srcpkgs/riff/patches/doublebuild.patch
new file mode 100644
index 000000000000..58b870cc18e6
--- /dev/null
+++ b/srcpkgs/riff/patches/doublebuild.patch
@@ -0,0 +1,14 @@
+Slight hack to prevent a rebuild in the install phase
+
+--
+
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -19,6 +19,7 @@
+ bytecount = "0.6.2"
+ num_cpus = "1.13.0"
+ threadpool = "1.8.1"
++syn = {version = "1.0.48", features = ["full"]}
+ 
+ [dev-dependencies]
+ pretty_assertions = "0.6.1"
diff --git a/srcpkgs/riff/patches/git_version.patch b/srcpkgs/riff/patches/git_version.patch
new file mode 100644
index 000000000000..a8eef7dee13a
--- /dev/null
+++ b/srcpkgs/riff/patches/git_version.patch
@@ -0,0 +1,15 @@
+Allow the version to be set to something, otherwise the build breaks
+
+--
+
+--- a/src/main.rs
++++ b/src/main.rs
+@@ -61,7 +61,7 @@
+ 
+ const PAGER_FORKBOMB_STOP: &str = "_RIFF_IGNORE_PAGER";
+ 
+-const GIT_VERSION: &str = git_version!();
++const GIT_VERSION: &str = git_version!(cargo_prefix="");
+ 
+ fn highlight_diff<W: io::Write + Send + 'static>(input: &mut dyn io::Read, output: W) {
+     let mut line_collector = LineCollector::new(output);
diff --git a/srcpkgs/riff/template b/srcpkgs/riff/template
new file mode 100644
index 000000000000..b8ab0028709c
--- /dev/null
+++ b/srcpkgs/riff/template
@@ -0,0 +1,16 @@
+# Template file for 'riff'
+pkgname=riff
+version=2.16
+revision=1
+build_style=cargo
+short_desc="Diff filter highlighting which line parts have changed"
+maintainer="0x5c <dev@0x5c.io>"
+license="MIT"
+homepage="https://github.com/walles/riff"
+distfiles="https://github.com/walles/riff/archive/refs/tags/${version}.tar.gz"
+checksum=3f7c8e6f2602b97849422f8ad3e1c9fec7fc8cbaf7e7a8ea0856ee8a9cfe7091
+
+
+post_install() {
+	vlicense LICENSE
+}

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

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

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-07  4:43 [PR PATCH] New package: riff-2.16 0x5c
2022-05-07  4:51 ` [PR REVIEW] " classabbyamp
2022-05-07  6:03 ` [PR PATCH] [Updated] " 0x5c
2022-05-07  6:07 ` 0x5c
2022-05-07  6:08 ` [PR PATCH] [Updated] " 0x5c
2022-05-08  0:44 ` 0x5c
2022-05-21 21:28 ` 0x5c
2022-05-21 21:29 ` 0x5c
2022-05-22  6:30 ` [PR PATCH] [Updated] " 0x5c
2022-05-22  6:31 ` 0x5c
2022-05-22  6:32 ` 0x5c
2022-05-22  6:43 ` 0x5c
2022-05-22  6:52 ` 0x5c
2022-05-25  8:45 ` [PR PATCH] [Updated] New package: riff-2.16.2 0x5c
2022-05-29  6:26 ` 0x5c
2022-05-29  8:23 ` [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).