dev-util/sh: add 3.9.0

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2024-08-21 06:44:58 +01:00
parent 10656ddc55
commit b075dce859
2 changed files with 36 additions and 0 deletions

View File

@@ -2,3 +2,5 @@ DIST sh-3.7.0-deps.tar.xz 9776560 BLAKE2B 2376bba34d0b57897f748ce277b8c40da2ac98
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
DIST sh-3.8.0.tar.gz 221631 BLAKE2B b2235c88d2601c0c223b8bc55682ee7490da7bf97696fdf3fa32787e5ef123bf4072e281daf29851695b590fe93f7bf180b03558974ad726fab10f799881ec92 SHA512 fbeba1883f9458c480663c31d51beaffb780205f5251cae956f6582d494109e21e062e444f7436db220fb647e833ec48498fa1f75daa7fa7ec88ba1f564d4213
DIST sh-3.9.0-deps.tar.xz 3099656 BLAKE2B 8ec6608ba97825e9d4589978c76464777c276d02a56d5a27e08469aaa88791e42e633618c6b01025c981e3ef4f819e27cd155765b7dce9547561ceb33dbd57f7 SHA512 78412277e7882b8d68adbc71011646e0b189371bd6e033ed783c4ee7bf48fce5249c5e6fc25b6c700634a000053b92b2e8fb2ebebeb7e8285183e59880fba74e
DIST sh-3.9.0.tar.gz 224822 BLAKE2B b20e46fdc6db39efe54434a455dbd407af63e9b48dd616a895215047990ffcc42e0fabfd93607a0c4f5f50c64cc789616dfb5c8e685443451091cf2b99c7e64e SHA512 8e1ca255223d34fc5cdf8141b99029f1da5e3cdfdaea0c9838d68ed0eb9418b5bf7d363332919a632592c3d433fc40f1ae0b4df6bbfb20ff62d857325c4f10bf

View File

@@ -0,0 +1,34 @@
# Copyright 2022-2024 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="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 <cmd/shfmt/shfmt.1.scd >shfmt.1 || die "conversation of man page failed"
}
src_test() {
cd syntax || die
ego test -run=-
}
src_install() {
dobin shfmt
doman shfmt.1
}