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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0E47A15813A for ; Mon, 13 Jan 2025 02:50:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 19F31E077C; Mon, 13 Jan 2025 02:50:03 +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 F16BDE077C for ; Mon, 13 Jan 2025 02:50:02 +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 E76593406A2 for ; Mon, 13 Jan 2025 02:50:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0B46A18FC for ; Mon, 13 Jan 2025 02:50:00 +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: <1736736575.c86fde85ea4f1781a0e0f88a36817a600cd6ff2b.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/yamlfmt-0.15.0.ebuild X-VCS-Directories: app-text/yamlfmt/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: c86fde85ea4f1781a0e0f88a36817a600cd6ff2b X-VCS-Branch: master Date: Mon, 13 Jan 2025 02:50:00 +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: 90b6942f-faef-46d6-b8cf-909d21c40545 X-Archives-Hash: a8c2e4f64024d0d8e5b8bff283013a05 commit: c86fde85ea4f1781a0e0f88a36817a600cd6ff2b Author: Zac Medico gentoo org> AuthorDate: Mon Jan 13 02:49:27 2025 +0000 Commit: Zac Medico gentoo org> CommitDate: Mon Jan 13 02:49:35 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c86fde85 app-text/yamlfmt: add 0.15.0 Signed-off-by: Zac Medico gentoo.org> app-text/yamlfmt/Manifest | 2 ++ app-text/yamlfmt/yamlfmt-0.15.0.ebuild | 39 ++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/app-text/yamlfmt/Manifest b/app-text/yamlfmt/Manifest index f9567531c7d7..bdb87d6aa912 100644 --- a/app-text/yamlfmt/Manifest +++ b/app-text/yamlfmt/Manifest @@ -2,3 +2,5 @@ DIST yamlfmt-0.13.0-deps.tar.xz 128464 BLAKE2B c51a77b6fa84e88239fe5185761bac4ab DIST yamlfmt-0.13.0.tar.gz 43334 BLAKE2B da1828f6f8ab24236173fd5621781468e123ed4c9521ab2233b6185ab61a2e6744593f280dd786bbe3e0f38fd692b307dcde0cdce4944c9b6468425b9f7898d3 SHA512 28cf1d04690ce72a1330c0d93b148516e80b33306067f4dbe1b5056e243202d93ed09293b6fe5c958a341dd590edd61e6c1fdb278b28c88b421fb7364cff10b8 DIST yamlfmt-0.14.0-deps.tar.xz 145900 BLAKE2B a58b00c7efc0a0d3c72a3482576f88458f46a984c7f7b11dbaa235c65d18982bb6aba95169e379b809dfc3349eeac4155493a6085dfe6a326a92d0d4beed848b SHA512 42d3ef9a91571eb9712cbd6bf7e7ffeb657a9ae424991b8837897a01eeed5c40ac926e399d8b0644553f878b7024ab3d8ad2aa90c8019153e9c5b7092b56b771 DIST yamlfmt-0.14.0.tar.gz 47247 BLAKE2B 05583fbaeeb70cabaff6a8f602d455c743300d08e5a422d531ca277d6b1b8c49ce7a8c44c9cde16ac56d2623af90becf4cdb1d213b3c26e6838c7839f02463c6 SHA512 81afcd2e5d454a8069d7cedbdc56c0f25c5cb71a217206d0fb3d5aa1f9714794f4749582c231b99fd34dcb975be73d518b204346994dae27d4a75fba81303cf8 +DIST yamlfmt-0.15.0-deps.tar.xz 266288 BLAKE2B ded6aed21162b7974884440542fb16cb8480000027b3221e38d314bff62a6c22e271444a0b9c2000c221587bd36ae620492477436a9371868457fb2586cd177b SHA512 902b3180d03f6f71859140fd3ebd9810dbe85094d042786a45206d658dfa2a972b6350a92ab6bc66a2953e8dad0d4351401e926b0b4249eb52c2baf69cb07f45 +DIST yamlfmt-0.15.0.tar.gz 55482 BLAKE2B 5a6cc56c070d174eac9bc5e29467b72c8d33abf5ad0f764bf5fbc3e37013aa0243643052c07cec1b4219e142b25ea439a48e0d1e40f32793233010d821a5a774 SHA512 6ca1f766eeac10a9d322a6bf15474ed0f6441a9ab04462183ddd4696448fcb888c7cad2c6fe8af890095960dd7e4b59dbacc7778935d57c43e0c8930835cfb4a diff --git a/app-text/yamlfmt/yamlfmt-0.15.0.ebuild b/app-text/yamlfmt/yamlfmt-0.15.0.ebuild new file mode 100644 index 000000000000..5dab64b5cf67 --- /dev/null +++ b/app-text/yamlfmt/yamlfmt-0.15.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +EGIT_COMMIT=81ffee4 +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_unpack() { + default +} + +src_prepare() { + ln -sv ../vendor ./ || die + default +} + +src_compile() { + CGO_ENABLED=0 ego build -ldflags "-X main.version=${PV} -X main.commit=${EGIT_COMMIT} -s -w" \ + -o yamlfmt ./cmd/yamlfmt +} + +src_install() { + dodoc -r README.md docs + dobin yamlfmt +} + +src_test() { + emake test +}