aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2024-05-17 22:18:52 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2024-05-18 16:52:18 +0000
commitcc8624c76262ca5323be102fe8bb09a12f36f720 (patch)
tree01fa60770b0b93f2012deb72bddd380f038a2258
parent18447f6548ccae9f167464d1754ec25ab2c0a558 (diff)
devel/buf: New port: CLI tool for working with Protocol Buffers
-rw-r--r--devel/Makefile1
-rw-r--r--devel/buf/Makefile26
-rw-r--r--devel/buf/distinfo5
-rw-r--r--devel/buf/pkg-descr9
4 files changed, 41 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 0414d79f64ee..9291d7b87903 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -328,6 +328,7 @@
SUBDIR += bsdcflow
SUBDIR += bsddialog
SUBDIR += bsdowl
+ SUBDIR += buf
SUBDIR += bugzilla44
SUBDIR += bugzilla50
SUBDIR += build
diff --git a/devel/buf/Makefile b/devel/buf/Makefile
new file mode 100644
index 000000000000..9c1e2fa99b25
--- /dev/null
+++ b/devel/buf/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= buf
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.32.0
+CATEGORIES= devel
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= CLI tool for working with Protocol Buffers
+WWW= https://buf.build/
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= jq:textproc/jq
+
+USES= go:modules
+
+GO_MODULE= github.com/bufbuild/buf
+GO_TARGET= ./cmd/buf \
+ ./cmd/protoc-gen-buf-breaking \
+ ./cmd/protoc-gen-buf-lint
+
+PLIST_FILES= bin/buf \
+ bin/protoc-gen-buf-breaking \
+ bin/protoc-gen-buf-lint
+
+.include <bsd.port.mk>
diff --git a/devel/buf/distinfo b/devel/buf/distinfo
new file mode 100644
index 000000000000..d282207ae08b
--- /dev/null
+++ b/devel/buf/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1715983806
+SHA256 (go/devel_buf/buf-v1.32.0/v1.32.0.mod) = 7ffff26e114671de7a91308f5830ddaeeef8a4d68d7163fb48d1fd626e7f3a4b
+SIZE (go/devel_buf/buf-v1.32.0/v1.32.0.mod) = 4181
+SHA256 (go/devel_buf/buf-v1.32.0/v1.32.0.zip) = 6bf42beee7cbc3644c10e31e11baffd0db19abcbf81f495df81f4c3ca4d77748
+SIZE (go/devel_buf/buf-v1.32.0/v1.32.0.zip) = 2850276
diff --git a/devel/buf/pkg-descr b/devel/buf/pkg-descr
new file mode 100644
index 000000000000..5b4b6e3b1007
--- /dev/null
+++ b/devel/buf/pkg-descr
@@ -0,0 +1,9 @@
+The buf CLI is the tool for working with Protocol Buffers. It provides:
+* A linter that enforces good API design choices and structure.
+* A breaking change detector that enforces compatibility at the source code
+ or wire level.
+* A generator that invokes your plugins based on configurable templates.
+* A formatter that formats your Protobuf files in accordance with industry
+ standards.
+* Integration with the Buf Schema Registry, including full dependency
+ management.