git: cc8624c76262 - main - devel/buf: New port: CLI tool for working with Protocol Buffers
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 May 2024 16:52:23 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=cc8624c76262ca5323be102fe8bb09a12f36f720 commit cc8624c76262ca5323be102fe8bb09a12f36f720 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-05-17 22:18:52 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-05-18 16:52:18 +0000 devel/buf: New port: CLI tool for working with Protocol Buffers --- devel/Makefile | 1 + devel/buf/Makefile | 26 ++++++++++++++++++++++++++ devel/buf/distinfo | 5 +++++ devel/buf/pkg-descr | 9 +++++++++ 4 files changed, 41 insertions(+) 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.