- Add devel/protozero (needed for devel/osmium update)

Minimalistic protocol buffer decoder and encoder in C++.

Designed for high performance. Suitable for writing zero copy parsers
and encoders with minimal need for run-time allocation of memory.

Low-level: this is designed to be a building block for writing a
very customized decoder for a stable protobuf schema. If your
protobuf schema is changing frequently or lazy decoding is not
critical for your application then this approach offers no value:
just use the C++ API that can be generated with the Google Protobufs
protoc program.

WWW: https://github.com/mapbox/protozero
This commit is contained in:
Dmitry Marakasov 2018-04-12 12:39:41 +00:00
parent 3ed88bde5a
commit 0ac22f8d9c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=467151
5 changed files with 64 additions and 0 deletions

View File

@ -4136,6 +4136,7 @@
SUBDIR += protobuf
SUBDIR += protobuf-c
SUBDIR += protobuf25
SUBDIR += protozero
SUBDIR += pructl
SUBDIR += psptoolchain
SUBDIR += psptoolchain-binutils

35
devel/protozero/Makefile Normal file
View File

@ -0,0 +1,35 @@
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= protozero
PORTVERSION= 1.6.2
DISTVERSIONPREFIX= v
CATEGORIES= devel
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Minimalist protocol buffer decoder and encoder in C++
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.md
USE_GITHUB= yes
GH_ACCOUNT= mapbox
USES= cmake
TEST_TARGET= test
NO_ARCH= yes # header only library
PORTDOCS= CHANGELOG.md README.md UPGRADING.md
OPTIONS_DEFINE= DOCS TEST
OPTIONS_DEFAULT= TEST # no additional runtime reps
TEST_DESC= Enable additional tests, requires protobuf at build time
TEST_BUILD_DEPENDS= protoc:devel/protobuf
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor
.include <bsd.port.mk>

3
devel/protozero/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1522871786
SHA256 (mapbox-protozero-v1.6.2_GH0.tar.gz) = 1196441f98932c219e5684248249c5fd404023843b0a862034d5daf24eb74433
SIZE (mapbox-protozero-v1.6.2_GH0.tar.gz) = 1063745

13
devel/protozero/pkg-descr Normal file
View File

@ -0,0 +1,13 @@
Minimalistic protocol buffer decoder and encoder in C++.
Designed for high performance. Suitable for writing zero copy parsers
and encoders with minimal need for run-time allocation of memory.
Low-level: this is designed to be a building block for writing a
very customized decoder for a stable protobuf schema. If your
protobuf schema is changing frequently or lazy decoding is not
critical for your application then this approach offers no value:
just use the C++ API that can be generated with the Google Protobufs
protoc program.
WWW: https://github.com/mapbox/protozero

12
devel/protozero/pkg-plist Normal file
View File

@ -0,0 +1,12 @@
include/protozero/byteswap.hpp
include/protozero/config.hpp
include/protozero/data_view.hpp
include/protozero/exception.hpp
include/protozero/iterators.hpp
include/protozero/pbf_builder.hpp
include/protozero/pbf_message.hpp
include/protozero/pbf_reader.hpp
include/protozero/pbf_writer.hpp
include/protozero/types.hpp
include/protozero/varint.hpp
include/protozero/version.hpp