commit:     48190abbd112e78d45d94e154dd5983fffe6837d
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Thu Sep  1 04:44:01 2022 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Sep  1 04:44:52 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48190abb

dev-util/shfmt: new package, add 3.5.1

This is a shell script formatter.
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 dev-util/shfmt/Manifest           |  2 ++
 dev-util/shfmt/metadata.xml       |  8 ++++++++
 dev-util/shfmt/shfmt-3.5.1.ebuild | 28 ++++++++++++++++++++++++++++
 3 files changed, 38 insertions(+)

diff --git a/dev-util/shfmt/Manifest b/dev-util/shfmt/Manifest
new file mode 100644
index 000000000000..d9ae472b4101
--- /dev/null
+++ b/dev-util/shfmt/Manifest
@@ -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

diff --git a/dev-util/shfmt/metadata.xml b/dev-util/shfmt/metadata.xml
new file mode 100644
index 000000000000..db463f3eeb66
--- /dev/null
+++ b/dev-util/shfmt/metadata.xml
@@ -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>willi...@gentoo.org</email>
+               <name>William Hubbs</name>
+       </maintainer>
+</pkgmetadata>

diff --git a/dev-util/shfmt/shfmt-3.5.1.ebuild 
b/dev-util/shfmt/shfmt-3.5.1.ebuild
new file mode 100644
index 000000000000..862a019cbef5
--- /dev/null
+++ b/dev-util/shfmt/shfmt-3.5.1.ebuild
@@ -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
+}

Reply via email to