public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/yamlfmt/
Date: Mon, 27 May 2024 02:11:06 +0000 (UTC)	[thread overview]
Message-ID: <1716775576.b2e0a4f533f0a860d9c0db7be6b44cc29f3dc2c8.zmedico@gentoo> (raw)

commit:     b2e0a4f533f0a860d9c0db7be6b44cc29f3dc2c8
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon May 27 01:55:34 2024 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> 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 <zmedico <AT> 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>zmedico@gentoo.org</email>
+		<name>Zac Medico</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">google/yamlfmt</remote-id>
+	</upstream>
+</pkgmetadata>

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
+}


             reply	other threads:[~2024-05-27  2:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-27  2:11 Zac Medico [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-11 21:05 [gentoo-commits] repo/gentoo:master commit in: app-text/yamlfmt/ Zac Medico
2024-12-01 17:51 Zac Medico
2024-12-01 17:51 Zac Medico
2025-01-13  2:50 Zac Medico

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=1716775576.b2e0a4f533f0a860d9c0db7be6b44cc29f3dc2c8.zmedico@gentoo \
    --to=zmedico@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