* [PR PATCH] mdcat: update to 2.3.0
@ 2024-07-30 15:26 cinerea0
2024-07-30 15:49 ` [PR PATCH] [Merged]: " cinerea0
0 siblings, 1 reply; 2+ messages in thread
From: cinerea0 @ 2024-07-30 15:26 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 376 bytes --]
There is a new pull request by cinerea0 against master on the void-packages repository
https://github.com/cinerea0/void-packages mdcat
https://github.com/void-linux/void-packages/pull/51549
mdcat: update to 2.3.0
#### Testing the changes
- I tested the changes in this PR: **YES**
A patch file from https://github.com/void-linux/void-packages/pull/51549.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mdcat-51549.patch --]
[-- Type: text/x-diff, Size: 2355 bytes --]
From 22165a7e8ececbaae69d7caa05fb6911f706ff85 Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Tue, 30 Jul 2024 11:25:38 -0400
Subject: [PATCH] mdcat: update to 2.3.0
---
srcpkgs/mdcat/template | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/mdcat/template b/srcpkgs/mdcat/template
index 3b2707f0bb2cc1..303a1a3afdc051 100644
--- a/srcpkgs/mdcat/template
+++ b/srcpkgs/mdcat/template
@@ -1,8 +1,9 @@
# Template file for 'mdcat'
pkgname=mdcat
-version=2.2.0
+version=2.3.0
revision=1
build_style=cargo
+build_helper=qemu
hostmakedepends="pkg-config ruby-asciidoctor"
makedepends="openssl-devel"
depends="shared-mime-info"
@@ -13,7 +14,7 @@ license="MPL-2.0"
homepage="https://github.com/swsnr/mdcat"
changelog="https://raw.githubusercontent.com/swsnr/mdcat/main/CHANGELOG.md"
distfiles="https://github.com/swsnr/mdcat/archive/refs/tags/mdcat-${version}.tar.gz"
-checksum=bc57c65786dbb4986d75762252b76a73ab52dc60f3b088089753a0d51617cdb0
+checksum=0582923595d974d671d4f4dc337ed5be2e554df93974159a6277dbc0345590bc
make_check=ci-skip # uses network tests which fail in CI
case "$XBPS_TARGET_MACHINE" in
@@ -22,16 +23,19 @@ case "$XBPS_TARGET_MACHINE" in
esac
post_install() {
+ ln -sf /usr/bin/mdcat "${DESTDIR}/usr/bin/mdless"
+ # additional symlink to make completion generation work
+ ln -sf "${DESTDIR}/usr/bin/mdcat" /usr/bin/mdcat
+
for command in mdcat mdless; do
- bash_completion=$(find ${wrksrc}/target -name ${command}.bash -print -quit)
- vcompletion ${bash_completion} bash ${command}
- zsh_completion=$(find ${wrksrc}/target -name _${command} -print -quit)
- vcompletion ${zsh_completion} zsh ${command}
- fish_completion=$(find ${wrksrc}/target -name ${command}.fish -print -quit)
- vcompletion ${fish_completion} fish ${command}
+ for shell in bash fish zsh; do
+ vtargetrun "${DESTDIR}/usr/bin/${command}" --completions "${shell}" \
+ > "${command}.${shell}"
+ vcompletion "${command}.${shell}" "${shell}" "${command}"
+ done
done
- man_page=$(find ${wrksrc}/target -name mdcat.1 -print -quit)
- vman ${man_page}
- ln -sf /usr/bin/mdcat ${DESTDIR}/usr/bin/mdless
+ asciidoctor -b manpage -a reproducible -o mdcat.1 mdcat.1.adoc
+ vman mdcat.1
+ ln -sf /usr/share/man/man1/mdcat.1 "${DESTDIR}/usr/share/man/man1/mdless.1"
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PR PATCH] [Merged]: mdcat: update to 2.3.0
2024-07-30 15:26 [PR PATCH] mdcat: update to 2.3.0 cinerea0
@ 2024-07-30 15:49 ` cinerea0
0 siblings, 0 replies; 2+ messages in thread
From: cinerea0 @ 2024-07-30 15:49 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 225 bytes --]
There's a merged pull request on the void-packages repository
mdcat: update to 2.3.0
https://github.com/void-linux/void-packages/pull/51549
Description:
#### Testing the changes
- I tested the changes in this PR: **YES**
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-30 15:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-30 15:26 [PR PATCH] mdcat: update to 2.3.0 cinerea0
2024-07-30 15:49 ` [PR PATCH] [Merged]: " cinerea0
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).