public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/shfmt/
Date: Thu,  1 Sep 2022 04:45:35 +0000 (UTC)	[thread overview]
Message-ID: <1662007492.48190abbd112e78d45d94e154dd5983fffe6837d.williamh@gentoo> (raw)

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>williamh@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	other threads:[~2022-09-01  4:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-01  4:45 William Hubbs [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-09-01 18:07 [gentoo-commits] repo/gentoo:master commit in: dev-util/shfmt/ William Hubbs

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=1662007492.48190abbd112e78d45d94e154dd5983fffe6837d.williamh@gentoo \
    --to=williamh@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