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: Sun, 18 Dec 2022 06:30:33 +0000 (UTC)	[thread overview]
Message-ID: <1671343749.77f09a08a747707a675fb68dbc11c590816de744.sam@gentoo> (raw)

commit:     77f09a08a747707a675fb68dbc11c590816de744
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 18 06:09:09 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec 18 06:09:09 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77f09a08

dev-util/sh: add 3.6.0

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/sh/Manifest        |  2 ++
 dev-util/sh/sh-3.6.0.ebuild | 54 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/dev-util/sh/Manifest b/dev-util/sh/Manifest
index d74589817b91..80cd0d01d0d1 100644
--- a/dev-util/sh/Manifest
+++ b/dev-util/sh/Manifest
@@ -1,2 +1,4 @@
 DIST sh-3.5.1-deps.tar.xz 3113476 BLAKE2B 0998ebeacdd7c882542eea25ad5ab3131211c686ac2ba8040b89897a60ab41ecea7fc0c45f6498eda56a4539550622e2693fed0a6a1ed5ca6af060c40a9aaf97 SHA512 b572f7334e04365d3d685ba8b87fff834fb9823e815152646659d66e92410cab03940b5a32f6eb0634c4a0cce34808d03849d8b97b17fdbec939b305b13878e9
 DIST sh-3.5.1.tar.gz 222608 BLAKE2B a81af092d0f8d0ee7c05240d816a99f044bce3e35d242a815a238a27893db5bfc320efc4a0237ca9ecfa0276e4687152c87f6e0170f5326e2d0a8604f94f6adb SHA512 fd1084921254b70376b3ac47b97e2108308252fa6bd23aff1e59aaefb45a7e01c1738a46ae6f4eb255ecade77fb9659fbc8184d2473e8e4f70e520757bad506d
+DIST sh-3.6.0-deps.tar.xz 3291776 BLAKE2B 63a04877eb69aca3b82cf08cd5b171de7fb9aa46910d5d59e7584f2eac424e52bcefdefffb4216b47ea6760535f298fca5ae5e4db29eef9c66a72ffb880b6ec8 SHA512 01271d1e311ab5d6e89dec4287b18229dcd892b05ee0bbf9917fdc9a9318d3f44e1322ca50722e5771091615dfa12f8041a23d533c7107ed03010d399667a24f
+DIST sh-3.6.0.tar.gz 216645 BLAKE2B a4b9e711eb1d8889e317775fcbab95a273c0bef9ff46ce043c1db39b4b21ca944272b595f60d190bf169ce4924f6c37c9aa1945155e62f9f27c7af2ff9008e3f SHA512 c7812496c66df2fd32b674fc260d0f100b3b6297540bc9e4890d603ca8f41589950493d6d62924bded6d17d4dd9347ee5bc47464608cdcde9c1f73e198c454cd

diff --git a/dev-util/sh/sh-3.6.0.ebuild b/dev-util/sh/sh-3.6.0.ebuild
new file mode 100644
index 000000000000..ea48ab9e9b7d
--- /dev/null
+++ b/dev-util/sh/sh-3.6.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module
+
+DESCRIPTION="A shell parser, formatter, and interpreter with bash support"
+HOMEPAGE="https://github.com/mvdan/sh"
+
+if [[ ${PV} == *9999 ]]; then
+	EGIT_REPO_URI="https://github.com/mvdan/sh.git"
+	inherit git-r3
+else
+	SRC_URI="https://github.com/mvdan/sh/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+	SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz"
+	KEYWORDS="~amd64 ~arm64 ~x86"
+	S="${WORKDIR}/${PN//fmt/}-${PV}"
+fi
+
+LICENSE="Apache-2.0 BSD"
+SLOT="0"
+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() {
+	cd syntax || die
+	ego test -run=-
+}
+
+src_install() {
+	dobin shfmt
+	if use man; then
+		doman shfmt.1
+	fi
+}


             reply	other threads:[~2022-12-18  6:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-18  6:30 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-21  5:45 [gentoo-commits] repo/gentoo:master commit in: dev-util/sh/ 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-09-01 18:12 William Hubbs
2022-08-05  3:19 Sam James
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=1671343749.77f09a08a747707a675fb68dbc11c590816de744.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