From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D001E1582EF for ; Fri, 07 Mar 2025 01:53:49 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id B537C340C40 for ; Fri, 07 Mar 2025 01:53:49 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id A6BCE1102D2; Fri, 07 Mar 2025 01:53:48 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 9BAF91102D2 for ; Fri, 07 Mar 2025 01:53:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 51AE8340C40 for ; Fri, 07 Mar 2025 01:53:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B058326A0 for ; Fri, 07 Mar 2025 01:53:46 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1741311544.e0cfc349936f1842acdda054a91eb074e4bf9f81.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/sh/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/sh/Manifest dev-util/sh/sh-3.11.0.ebuild X-VCS-Directories: dev-util/sh/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: e0cfc349936f1842acdda054a91eb074e4bf9f81 X-VCS-Branch: master Date: Fri, 07 Mar 2025 01:53:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e486e70d-19f5-4bcb-a849-e8696174e8ff X-Archives-Hash: bc763d8a955fb35c4e5d36213fa22609 commit: e0cfc349936f1842acdda054a91eb074e4bf9f81 Author: Sam James gentoo org> AuthorDate: Fri Mar 7 01:39:04 2025 +0000 Commit: Sam James gentoo org> CommitDate: Fri Mar 7 01:39:04 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0cfc349 dev-util/sh: add 3.11.0 Signed-off-by: Sam James gentoo.org> dev-util/sh/Manifest | 2 ++ dev-util/sh/sh-3.11.0.ebuild | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/dev-util/sh/Manifest b/dev-util/sh/Manifest index e724fc45efef..4b8ec04f2fff 100644 --- a/dev-util/sh/Manifest +++ b/dev-util/sh/Manifest @@ -1,3 +1,5 @@ +DIST sh-3.11.0-deps.tar.xz 3140668 BLAKE2B 42b3c30ad0722134b1284ef128b7c8613c7aea5820a641c4834c65f4d5ee9cd47544775a6724c00ec7afcabb5e6b7635515748fbd823ff919ffe1eef14e865fe SHA512 dfaf35f9873aebd71da1632822aa39c04d81da935185e631b605b72931ebd26d123a693ac5d5540fdb0f9a0e4bc8fd5ee1aeceebde59fac37674b89f65d3c603 +DIST sh-3.11.0.tar.gz 231996 BLAKE2B 0545d2955d55ee20707d773820488747e3302e5a032b5932616ffc9aff806082390c2fb5b2565dc7daf049f1bfa22bacb0561ebf90e2b6271b0a07918f7a4810 SHA512 eaa39732db8a9515bfd72ac5649021a1485545892a3b88e46f9188bd6311484eb864e21c593d57d0c7a9ee66e3ca2436187d5c7fc3148d897649870feb8f3d50 DIST sh-3.7.0-deps.tar.xz 9776560 BLAKE2B 2376bba34d0b57897f748ce277b8c40da2ac98ad518e516868c442a521b24e4e19016b26dd0e889157781fa75cc7f945dea72a0451937a3bef24d65149d8de7b SHA512 3baf5276b1916e726a99b47dcf1319fb9a015e6096d8dbd430df478f9dbc1ecbcffcb82de72efbb455aa4a6dc17437e00287df27abd2e7e126253171d7024a9e DIST sh-3.7.0.tar.gz 219380 BLAKE2B 5de1f5576f3e92f5cc892da730b62640b0922f879005e844b3e0b0d84a4e8f1a5f76e89c53152dd3de11c67da20411c5bddd44627ab31b66a72f950b1bf03393 SHA512 5869b68d4bb59907ff7543019e02e8e1efee5963475763b2b2daf0b1ef8621d919d54978a50e52d865b5b76b188c821fecb673e6a9ce42b30cd9907a020e6387 DIST sh-3.8.0-deps.tar.xz 3129756 BLAKE2B e8a7a6f4a699b55d2b2533065ff0030777fddcb444606889cbf0b811715e89af8f97fb28d1ed71e8bb9ee07517cf71930c03151c2f102c316902e6b55141ee85 SHA512 1bb8776d308aea471051002ba2c426d6a59b354e3615561e33f42938c55472e402b037651db8307d593be0489df30a0d99be3a4e0d75972a85266facebdab32e diff --git a/dev-util/sh/sh-3.11.0.ebuild b/dev-util/sh/sh-3.11.0.ebuild new file mode 100644 index 000000000000..710d050d71fd --- /dev/null +++ b/dev-util/sh/sh-3.11.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 2022-2025 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" +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" +S="${WORKDIR}/${PN//fmt/}-${PV}" + +LICENSE="BSD" +# Dependent licenses +LICENSE+=" Apache-2.0 BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" +BDEPEND="app-text/scdoc" + +src_compile() { + # Not bothering with gosh for now as it's very new + # https://github.com/mvdan/sh#gosh + ego build ./cmd/shfmt + scdoc shfmt.1 || die "conversation of man page failed" +} + +src_test() { + cd syntax || die + ego test -run=- +} + +src_install() { + dobin shfmt + doman shfmt.1 +}