From 9a2cc032d5e8cbec1b0e14362c4763e253707f5a Mon Sep 17 00:00:00 2001 From: 0x5c Date: Sat, 7 May 2022 00:39:18 -0400 Subject: [PATCH] New package: riff-2.16.2 Fixes #36885 --- srcpkgs/riff/patches/doublebuild.patch | 14 ++++++++++++++ srcpkgs/riff/template | 15 +++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 srcpkgs/riff/patches/doublebuild.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..b29c9919a783 --- /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/template b/srcpkgs/riff/template new file mode 100644 index 000000000000..b1302803b9f7 --- /dev/null +++ b/srcpkgs/riff/template @@ -0,0 +1,15 @@ +# Template file for 'riff' +pkgname=riff +version=2.16.2 +revision=1 +build_style=cargo +short_desc="Diff filter highlighting which line parts have changed" +maintainer="0x5c " +license="MIT" +homepage="https://github.com/walles/riff" +distfiles="https://github.com/walles/riff/archive/refs/tags/${version}.tar.gz" +checksum=788abf47f2ecb570a8e8815317322c31db3b9a7310a41f689c815e872b8bbcd4 + +post_install() { + vlicense LICENSE +}