summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2024-05-26 18:55:34 -0700
committerZac Medico <zmedico@gentoo.org>2024-05-26 19:06:16 -0700
commitb2e0a4f533f0a860d9c0db7be6b44cc29f3dc2c8 (patch)
tree5d4fe52583982f9a0a3c8ae0fb3885caa515306e /app-text/yamlfmt
parentapp-misc/yq: drop 3.2.2, 3.2.3 (diff)
downloadgentoo-b2e0a4f533f0a860d9c0db7be6b44cc29f3dc2c8.tar.gz
gentoo-b2e0a4f533f0a860d9c0db7be6b44cc29f3dc2c8.tar.bz2
gentoo-b2e0a4f533f0a860d9c0db7be6b44cc29f3dc2c8.zip
app-text/yamlfmt: new package, add 0.12.1
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-text/yamlfmt')
-rw-r--r--app-text/yamlfmt/Manifest2
-rw-r--r--app-text/yamlfmt/metadata.xml11
-rw-r--r--app-text/yamlfmt/yamlfmt-0.12.1.ebuild29
3 files changed, 42 insertions, 0 deletions
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
+}