Github messages for voidlinux
 help / color / mirror / Atom feed
From: cinerea0 <cinerea0@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] mdcat: update to 2.3.0
Date: Tue, 30 Jul 2024 17:26:06 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-51549@inbox.vuxu.org> (raw)

[-- 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"
 }

             reply	other threads:[~2024-07-30 15:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-30 15:26 cinerea0 [this message]
2024-07-30 15:49 ` [PR PATCH] [Merged]: " cinerea0

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-51549@inbox.vuxu.org \
    --to=cinerea0@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).