dev-util/shfmt: new package, add 3.5.1

This is a shell script formatter.
Signed-off-by: William Hubbs <williamh@gentoo.org>
This commit is contained in:
William Hubbs
2022-08-31 23:44:52 -05:00
parent daf9c9c945
commit 48190abbd1
3 changed files with 38 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
DIST shfmt-3.5.1-deps.tar.xz 3156352 BLAKE2B b7285570bfaad915097e608afeca239efb705b8db8fa6ad62cc0ffa2d22d9e8b99776ae47c522399f0a398deb49f347d98d7ab7805e386682e46c6b63605503b SHA512 deb91699446c5399a58416dc864ec5c4e581733b498401e342d2f0ebe16a95119d6c669104e0f1f974fa9bfdde952ae4bd57b4b9966c57551b5501ed8985d6f8
DIST shfmt-3.5.1.tar.gz 222608 BLAKE2B a81af092d0f8d0ee7c05240d816a99f044bce3e35d242a815a238a27893db5bfc320efc4a0237ca9ecfa0276e4687152c87f6e0170f5326e2d0a8604f94f6adb SHA512 fd1084921254b70376b3ac47b97e2108308252fa6bd23aff1e59aaefb45a7e01c1738a46ae6f4eb255ecade77fb9659fbc8184d2473e8e4f70e520757bad506d
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>williamh@gentoo.org</email>
<name>William Hubbs</name>
</maintainer>
</pkgmetadata>
+28
View File
@@ -0,0 +1,28 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="shell script formatter"
HOMEPAGE="https://github.com/mvdan/sh"
SRC_URI="https://github.com/mvdan/sh/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
LICENSE="Clear-BSD"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="app-text/scdoc"
S="${WORKDIR}/sh-${PV}"
src_compile() {
ego build ./cmd/shfmt
scdoc < ./cmd/shfmt/shfmt.1.scd > shfmt.1 || die
}
src_install() {
dobin shfmt
doman shfmt.1
}