Skip to content

Commit

Permalink
devel/buf: New port: CLI tool for working with Protocol Buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivict committed May 18, 2024
1 parent 18447f6 commit cc8624c
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@
SUBDIR += bsdcflow
SUBDIR += bsddialog
SUBDIR += bsdowl
SUBDIR += buf
SUBDIR += bugzilla44
SUBDIR += bugzilla50
SUBDIR += build
Expand Down
26 changes: 26 additions & 0 deletions devel/buf/Makefile
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 0 deletions devel/buf/distinfo
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 0 deletions devel/buf/pkg-descr
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit cc8624c

Please sign in to comment.