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 CB3531581D3 for ; Mon, 27 May 2024 02:11:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 10117E29F2; Mon, 27 May 2024 02:11:09 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 C57A9E29F2 for ; Mon, 27 May 2024 02:11:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 C0F2A33BF41 for ; Mon, 27 May 2024 02:11:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0C9A31ACD for ; Mon, 27 May 2024 02:11:06 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1716775576.b2e0a4f533f0a860d9c0db7be6b44cc29f3dc2c8.zmedico@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/yamlfmt/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/yamlfmt/Manifest app-text/yamlfmt/metadata.xml app-text/yamlfmt/yamlfmt-0.12.1.ebuild X-VCS-Directories: app-text/yamlfmt/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: b2e0a4f533f0a860d9c0db7be6b44cc29f3dc2c8 X-VCS-Branch: master Date: Mon, 27 May 2024 02:11:06 +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: 37fdf406-d9b4-4d12-a02e-ccc1f95982dd X-Archives-Hash: 7eaabf33b0919f4321837acd0c8307dd commit: b2e0a4f533f0a860d9c0db7be6b44cc29f3dc2c8 Author: Zac Medico gentoo org> AuthorDate: Mon May 27 01:55:34 2024 +0000 Commit: Zac Medico gentoo org> CommitDate: Mon May 27 02:06:16 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2e0a4f5 app-text/yamlfmt: new package, add 0.12.1 Signed-off-by: Zac Medico gentoo.org> app-text/yamlfmt/Manifest | 2 ++ app-text/yamlfmt/metadata.xml | 11 +++++++++++ app-text/yamlfmt/yamlfmt-0.12.1.ebuild | 29 +++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) diff --git a/app-text/yamlfmt/Manifest b/app-text/yamlfmt/Manifest new file mode 100644 index 000000000000..da258b9b1422 --- /dev/null +++ b/app-text/yamlfmt/Manifest @@ -0,0 +1,2 @@ +DIST yamlfmt-0.12.1-deps.tar.xz 128404 BLAKE2B aa976bf73fb0a8094afc0ae480881aaff58c6263a57587ea6ceb22ce67776c424a7ed5d5fae6c38293f1ec5f3821de99e4bfd74f7951b826b2bb211914944c94 SHA512 11c9c45535ace449c3784a55707699923dcc2809db4f86a8fdb72b8b99443a92498b1c329cca40771d63414a6571bd4c590df4a304d798bb4c3709fd0edf0ef4 +DIST yamlfmt-0.12.1.tar.gz 40958 BLAKE2B 3a1187c2a21716a16e6c86ab145eed424bb3eb65ab8b0525c1ad221c27d8be3221f668f0393dcdc117bd4d34c9283bcc30e72ccddf99f61e44050c61e88b3026 SHA512 ac39234977d11751802a3a8c2e2140c16e408f987d29aa4ac8e7dd329067c1cef686b0950fa4e4478aeeb214506e7d3fe498734e584abcbc4f3aa48f9f1c7504 diff --git a/app-text/yamlfmt/metadata.xml b/app-text/yamlfmt/metadata.xml new file mode 100644 index 000000000000..d69deed03841 --- /dev/null +++ b/app-text/yamlfmt/metadata.xml @@ -0,0 +1,11 @@ + + + + + zmedico@gentoo.org + Zac Medico + + + google/yamlfmt + + diff --git a/app-text/yamlfmt/yamlfmt-0.12.1.ebuild b/app-text/yamlfmt/yamlfmt-0.12.1.ebuild new file mode 100644 index 000000000000..5f85ed96ccb4 --- /dev/null +++ b/app-text/yamlfmt/yamlfmt-0.12.1.ebuild @@ -0,0 +1,29 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +DESCRIPTION="An extensible command line tool or library to format yaml files" +HOMEPAGE="https://github.com/google/yamlfmt" +SRC_URI="https://github.com/google/yamlfmt/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz" + +LICENSE="Apache-2.0" +LICENSE+=" BSD MIT" +SLOT="0" +KEYWORDS="~amd64" + +src_compile() { + CGO_ENABLED=0 ego build -ldflags "-X main.version=${PV} -s -w" \ + -o yamlfmt ./cmd/yamlfmt +} + +src_install() { + dodoc -r README.md docs + dobin yamlfmt +} + +src_test() { + emake test +}