Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jul 2022 16:33:08 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 6be6423b6be6 - main - devel/nanopb: New port: Protocol Buffers with small code size
Message-ID:  <202207031633.263GX8aI087217@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6be6423b6be63cde10be82af1ab5ddf06f99983a

commit 6be6423b6be63cde10be82af1ab5ddf06f99983a
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-03 15:49:01 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-03 16:33:05 +0000

    devel/nanopb: New port: Protocol Buffers with small code size
---
 devel/Makefile         |  1 +
 devel/nanopb/Makefile  | 27 +++++++++++++++++++++++++++
 devel/nanopb/distinfo  |  3 +++
 devel/nanopb/pkg-descr |  5 +++++
 devel/nanopb/pkg-plist | 16 ++++++++++++++++
 5 files changed, 52 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 5165bdf51819..0275226db06a 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1539,6 +1539,7 @@
     SUBDIR += mutagen
     SUBDIR += myrepos
     SUBDIR += nana
+    SUBDIR += nanopb
     SUBDIR += nant
     SUBDIR += nasm
     SUBDIR += naturaldocs
diff --git a/devel/nanopb/Makefile b/devel/nanopb/Makefile
new file mode 100644
index 000000000000..14e80c6b510a
--- /dev/null
+++ b/devel/nanopb/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	nanopb
+DISTVERSION=	0.4.6.4
+CATEGORIES=	devel
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Protocol Buffers with small code size
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS=	protoc:devel/protobuf
+TEST_DEPENDS=	scons:devel/scons
+
+USES=		cmake python shebangfix
+USE_LDCONFIG=	yes
+
+USE_GITHUB=	yes
+
+SHEBANG_FILES=	generator/nanopb_generator.py
+
+CMAKE_ON=	BUILD_SHARED_LIBS
+CMAKE_ARGS=	-DPython_EXECUTABLE=${PYTHON_CMD}
+
+do-test: # tests fail to build, see https://github.com/nanopb/nanopb/issues/792
+	@cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} scons
+
+.include <bsd.port.mk>
diff --git a/devel/nanopb/distinfo b/devel/nanopb/distinfo
new file mode 100644
index 000000000000..36ec95902e9b
--- /dev/null
+++ b/devel/nanopb/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1656862386
+SHA256 (nanopb-nanopb-0.4.6.4_GH0.tar.gz) = e450ba1c4d62ad17663720141bbbbf661e74a20ea64130af9d2f056d6867606d
+SIZE (nanopb-nanopb-0.4.6.4_GH0.tar.gz) = 1136519
diff --git a/devel/nanopb/pkg-descr b/devel/nanopb/pkg-descr
new file mode 100644
index 000000000000..bc42e5dfc861
--- /dev/null
+++ b/devel/nanopb/pkg-descr
@@ -0,0 +1,5 @@
+Nanopb is a small code-size Protocol Buffers implementation in ansi C.
+It is especially suitable for use in microcontrollers, but fits any
+memory restricted system.
+
+WWW: https://jpa.kapsi.fi/nanopb/
diff --git a/devel/nanopb/pkg-plist b/devel/nanopb/pkg-plist
new file mode 100644
index 000000000000..6ce9477cd077
--- /dev/null
+++ b/devel/nanopb/pkg-plist
@@ -0,0 +1,16 @@
+bin/nanopb_generator.py
+bin/protoc-gen-nanopb
+include/pb.h
+include/pb_common.h
+include/pb_decode.h
+include/pb_encode.h
+lib/cmake/nanopb/nanopb-config-version.cmake
+lib/cmake/nanopb/nanopb-config.cmake
+lib/cmake/nanopb/nanopb-targets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/nanopb/nanopb-targets.cmake
+lib/libprotobuf-nanopb.a
+lib/libprotobuf-nanopb.so
+lib/libprotobuf-nanopb.so.0
+%%PYTHON_SITELIBDIR%%/proto/_utils.py
+%%PYTHON_SITELIBDIR%%/proto/nanopb.proto
+%%PYTHON_SITELIBDIR%%/proto/nanopb_pb2.py



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207031633.263GX8aI087217>