public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/sh/
Date: Fri,  5 Aug 2022 03:19:49 +0000 (UTC)	[thread overview]
Message-ID: <1659664354.b64a70f1930b2e79a9c727bff489faa7882df485.sam@gentoo> (raw)

commit:     b64a70f1930b2e79a9c727bff489faa7882df485
Author:     Randall T. Vasquez <ran.dall <AT> icloud <DOT> com>
AuthorDate: Wed Aug  3 22:30:20 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Aug  5 01:52:34 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b64a70f1

dev-util/sh: generate man page

Signed-off-by: Randall T. Vasquez <ran.dall <AT> icloud.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/sh/sh-3.5.1.ebuild | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/dev-util/sh/sh-3.5.1.ebuild b/dev-util/sh/sh-3.5.1.ebuild
index f5098aea771b..7da56df5263e 100644
--- a/dev-util/sh/sh-3.5.1.ebuild
+++ b/dev-util/sh/sh-3.5.1.ebuild
@@ -13,11 +13,25 @@ SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar
 LICENSE="Apache-2.0 BSD"
 SLOT="0"
 KEYWORDS="~amd64"
+IUSE="+man"
+
+BDEPEND="man? ( app-text/scdoc )"
+
+src_unpack() {
+	default
+	if [[ ${PV} == *9999 ]]; then
+		git-r3_src_unpack
+		go-module_live_vendor
+	fi
+}
 
 src_compile() {
 	# Not bothering with gosh for now as it's very new
 	# https://github.com/mvdan/sh#gosh
 	ego build ./cmd/shfmt
+	if use man; then
+		scdoc <cmd/shfmt/shfmt.1.scd >shfmt.1 || die "conversation of man page failed"
+	fi
 }
 
 src_test() {
@@ -27,4 +41,8 @@ src_test() {
 
 src_install() {
 	dobin shfmt
+	if use man; then
+		doman shfmt.1
+	fi
+
 }


             reply	other threads:[~2022-08-05  3:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-05  3:19 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-14  5:39 [gentoo-commits] repo/gentoo:master commit in: dev-util/sh/ Sam James
2025-03-07  1:53 Sam James
2025-03-07  1:53 Sam James
2024-08-21  5:45 Sam James
2024-02-27 22:06 Sam James
2024-02-27 22:06 Sam James
2023-11-25  6:36 Sam James
2023-06-19 21:28 Sam James
2023-02-17 13:26 Yixun Lan
2023-02-17 13:24 Yixun Lan
2022-12-18  6:30 Sam James
2022-09-01 18:12 William Hubbs
2022-08-05  3:19 Sam James
2022-08-05  3:19 Sam James
2022-07-26  8:41 Sam James

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=1659664354.b64a70f1930b2e79a9c727bff489faa7882df485.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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