Github messages for voidlinux
 help / color / mirror / Atom feed
From: tranzystorek-io <tranzystorek-io@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] exa: use create_wrksrc
Date: Fri, 21 Oct 2022 21:02:21 +0200	[thread overview]
Message-ID: <20221021190221.JG0vH_szlf49rCttpk3ASW16ybJF-8Ms-SBheXEB87c@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40082@inbox.vuxu.org>

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

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages exa-create-wrksrc
https://github.com/void-linux/void-packages/pull/40082

exa: use create_wrksrc
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-exa-create-wrksrc-40082.patch --]
[-- Type: text/x-diff, Size: 2113 bytes --]

From 3827850c7f1ab67c563b3442d5dbb38f8365b5f9 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Fri, 21 Oct 2022 16:34:16 +0200
Subject: [PATCH] exa: drop aux distfile, build manpages manually

---
 srcpkgs/exa/template | 29 +++++++++++++++++------------
 1 file changed, 17 insertions(+), 12 deletions(-)

diff --git a/srcpkgs/exa/template b/srcpkgs/exa/template
index 3efe7851bbdd..b395d65a7464 100644
--- a/srcpkgs/exa/template
+++ b/srcpkgs/exa/template
@@ -3,28 +3,33 @@ pkgname=exa
 version=0.10.1
 revision=2
 build_style=cargo
-hostmakedepends="pkg-config"
+hostmakedepends="pkg-config $(vopt_if man pandoc)"
 makedepends="libgit2-devel"
 short_desc="Modern replacement for ls"
 maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
 license="MIT"
 homepage="https://the.exa.website/"
-distfiles="https://github.com/ogham/exa/archive/refs/tags/v${version}.tar.gz
- https://github.com/ogham/exa/releases/download/v${version}/exa-accoutrements-v${version}.zip"
-checksum="ff0fa0bfc4edef8bdbbb3cabe6fdbd5481a71abbbcc2159f402dea515353ae7c
- 531596a1ef2a757c7728087529528150e6eb52bb8224fe575aa00a5f1b762849"
+distfiles="https://github.com/ogham/exa/archive/refs/tags/v${version}.tar.gz"
+checksum="ff0fa0bfc4edef8bdbbb3cabe6fdbd5481a71abbbcc2159f402dea515353ae7c"
 
-post_extract() {
-	mkdir -p accoutrements
-	mv ../man accoutrements/
-	mv ../completions accoutrements/
-}
+build_options="man"
+desc_option_man="Use pandoc for manpages"
+
+case "$XBPS_MACHINE" in
+	x86_64*|i686|ppc64le*|ppc64) build_options_default="man" ;;
+esac
 
 post_install() {
 	vcompletion completions/completions.bash bash
 	vcompletion completions/completions.fish fish
 	vcompletion completions/completions.zsh zsh
 	vlicense LICENCE
-	vman accoutrements/man/exa.1
-	vman accoutrements/man/exa_colors.5
+
+	if [ -n "$build_option_man" ]; then
+		# https://github.com/ogham/exa/issues/1036#issuecomment-1052543212
+		pandoc --standalone -f markdown -t man man/exa.1.md > exa.1
+		pandoc --standalone -f markdown -t man man/exa_colors.5.md > exa_colors.5
+		vman exa.1
+		vman exa_colors.5
+	fi
 }

  parent reply	other threads:[~2022-10-21 19:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-21 14:36 [PR PATCH] " tranzystorek-io
2022-10-21 15:06 ` [PR REVIEW] " paper42
2022-10-21 15:16 ` [PR PATCH] [Updated] " tranzystorek-io
2022-10-21 15:17 ` [PR REVIEW] " tranzystorek-io
2022-10-21 18:14 ` tranzystorek-io
2022-10-21 19:02 ` tranzystorek-io [this message]
2022-10-21 19:03 ` exa: drop aux distfile, build manpages manually tranzystorek-io
2022-10-21 20:36 ` [PR REVIEW] " paper42
2022-10-21 20:38 ` tranzystorek-io
2022-10-21 20:39 ` tranzystorek-io
2022-10-21 22:13 ` paper42
2022-10-21 22:32 ` [PR PATCH] [Updated] " tranzystorek-io
2022-10-21 22:34 ` [PR REVIEW] exa: use create_wrksrc tranzystorek-io
2022-10-23  1:07 ` [PR PATCH] [Merged]: " classabbyamp

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=20221021190221.JG0vH_szlf49rCttpk3ASW16ybJF-8Ms-SBheXEB87c@z \
    --to=tranzystorek-io@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).