From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 20A32158094 for ; Tue, 26 Jul 2022 08:41:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 46418E0C56; Tue, 26 Jul 2022 08:41:58 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 pigeon.gentoo.org (Postfix) with ESMTPS id 21F3CE0C37 for ; Tue, 26 Jul 2022 08:41:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 16BCB340F22 for ; Tue, 26 Jul 2022 08:41:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8F0ED54F for ; Tue, 26 Jul 2022 08:41:55 +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: <1658824854.80b27ad743723ca12f1e92be6267a2496bfc25ea.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/metadata.xml dev-util/sh/sh-3.5.1.ebuild X-VCS-Directories: dev-util/sh/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 80b27ad743723ca12f1e92be6267a2496bfc25ea X-VCS-Branch: master Date: Tue, 26 Jul 2022 08:41:55 +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: eec67615-00ad-4b2b-b1e5-1923f0845586 X-Archives-Hash: 8a4b6de3604cca2ffafdb2e3ac2025c4 commit: 80b27ad743723ca12f1e92be6267a2496bfc25ea Author: Sam James gentoo org> AuthorDate: Tue Jul 26 08:22:13 2022 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jul 26 08:40:54 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80b27ad7 dev-util/sh: new package, add 3.5.1 Signed-off-by: Sam James gentoo.org> dev-util/sh/Manifest | 2 ++ dev-util/sh/metadata.xml | 11 +++++++++++ dev-util/sh/sh-3.5.1.ebuild | 30 ++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) diff --git a/dev-util/sh/Manifest b/dev-util/sh/Manifest new file mode 100644 index 000000000000..d74589817b91 --- /dev/null +++ b/dev-util/sh/Manifest @@ -0,0 +1,2 @@ +DIST sh-3.5.1-deps.tar.xz 3113476 BLAKE2B 0998ebeacdd7c882542eea25ad5ab3131211c686ac2ba8040b89897a60ab41ecea7fc0c45f6498eda56a4539550622e2693fed0a6a1ed5ca6af060c40a9aaf97 SHA512 b572f7334e04365d3d685ba8b87fff834fb9823e815152646659d66e92410cab03940b5a32f6eb0634c4a0cce34808d03849d8b97b17fdbec939b305b13878e9 +DIST sh-3.5.1.tar.gz 222608 BLAKE2B a81af092d0f8d0ee7c05240d816a99f044bce3e35d242a815a238a27893db5bfc320efc4a0237ca9ecfa0276e4687152c87f6e0170f5326e2d0a8604f94f6adb SHA512 fd1084921254b70376b3ac47b97e2108308252fa6bd23aff1e59aaefb45a7e01c1738a46ae6f4eb255ecade77fb9659fbc8184d2473e8e4f70e520757bad506d diff --git a/dev-util/sh/metadata.xml b/dev-util/sh/metadata.xml new file mode 100644 index 000000000000..1e811dcb7fc9 --- /dev/null +++ b/dev-util/sh/metadata.xml @@ -0,0 +1,11 @@ + + + + + sam@gentoo.org + Sam James + + + mvdan/sh + + diff --git a/dev-util/sh/sh-3.5.1.ebuild b/dev-util/sh/sh-3.5.1.ebuild new file mode 100644 index 000000000000..f5098aea771b --- /dev/null +++ b/dev-util/sh/sh-3.5.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 2022 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/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" + +LICENSE="Apache-2.0 BSD" +SLOT="0" +KEYWORDS="~amd64" + +src_compile() { + # Not bothering with gosh for now as it's very new + # https://github.com/mvdan/sh#gosh + ego build ./cmd/shfmt +} + +src_test() { + cd syntax || die + ego test -run=- +} + +src_install() { + dobin shfmt +}