1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

devel/buf: New port: CLI tool for working with Protocol Buffers

This commit is contained in:
Yuri Victorovich 2024-05-17 15:18:52 -07:00
parent 18447f6548
commit cc8624c762
4 changed files with 41 additions and 0 deletions

View File

@ -328,6 +328,7 @@
SUBDIR += bsdcflow
SUBDIR += bsddialog
SUBDIR += bsdowl
SUBDIR += buf
SUBDIR += bugzilla44
SUBDIR += bugzilla50
SUBDIR += build

26
devel/buf/Makefile Normal file
View File

@ -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>

5
devel/buf/distinfo Normal file
View File

@ -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

9
devel/buf/pkg-descr Normal file
View File

@ -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.