git: fef75bfaa986 - main - textproc/yamlfmt: add new port

From: Koichiro Iwao <meta_at_FreeBSD.org>
Date: Sat, 10 Jun 2023 17:58:45 UTC
The branch main has been updated by meta:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fef75bfaa986a5554b4d65ff325d6fff0c9e2b50

commit fef75bfaa986a5554b4d65ff325d6fff0c9e2b50
Author:     Koichiro Iwao <meta@FreeBSD.org>
AuthorDate: 2023-06-10 17:56:50 +0000
Commit:     Koichiro Iwao <meta@FreeBSD.org>
CommitDate: 2023-06-10 17:58:20 +0000

    textproc/yamlfmt: add new port
    
    Simple command line tool for formatting yaml files.
    
    WWW:            https://github.com/google/yamlfmt
---
 textproc/Makefile          |  1 +
 textproc/yamlfmt/Makefile  | 19 +++++++++++++++++++
 textproc/yamlfmt/distinfo  |  5 +++++
 textproc/yamlfmt/pkg-descr |  2 ++
 4 files changed, 27 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 8b2d52e90501..3abe9a238d4c 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -2096,6 +2096,7 @@
     SUBDIR += yamcha
     SUBDIR += yaml-mode.el
     SUBDIR += yaml.el
+    SUBDIR += yamlfmt
     SUBDIR += ydiff
     SUBDIR += yelp-tools
     SUBDIR += yelp-xsl
diff --git a/textproc/yamlfmt/Makefile b/textproc/yamlfmt/Makefile
new file mode 100644
index 000000000000..c2d20b492491
--- /dev/null
+++ b/textproc/yamlfmt/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	yamlfmt
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.9.0
+CATEGORIES=	textproc
+
+MAINTAINER=	meta@FreeBSD.org
+COMMENT=	Simple command line tool for formatting yaml files
+WWW=		https://github.com/google/yamlfmt
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:modules
+GO_MODULE=	github.com/google/yamlfmt
+GO_TARGET=	./cmd/yamlfmt
+
+PLIST_FILES=	${GO_TARGET:T:S,^,bin/,}
+
+.include <bsd.port.mk>
diff --git a/textproc/yamlfmt/distinfo b/textproc/yamlfmt/distinfo
new file mode 100644
index 000000000000..81fda4def65f
--- /dev/null
+++ b/textproc/yamlfmt/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1686315209
+SHA256 (go/textproc_yamlfmt/yamlfmt-v0.9.0/v0.9.0.mod) = a091e8def09a41ca26a568f45f4448d1bff43d52c7ebdfd869c4bd48b35430e0
+SIZE (go/textproc_yamlfmt/yamlfmt-v0.9.0/v0.9.0.mod) = 268
+SHA256 (go/textproc_yamlfmt/yamlfmt-v0.9.0/v0.9.0.zip) = 8567c41ff71bbf7d2a8238e46bb3df87f87790803d72065c0b962b78187b15d4
+SIZE (go/textproc_yamlfmt/yamlfmt-v0.9.0/v0.9.0.zip) = 49994
diff --git a/textproc/yamlfmt/pkg-descr b/textproc/yamlfmt/pkg-descr
new file mode 100644
index 000000000000..bb4605ebb902
--- /dev/null
+++ b/textproc/yamlfmt/pkg-descr
@@ -0,0 +1,2 @@
+Simple and easy-to-use command line tool for formatting yaml files written in
+G o language.