Date: Tue, 17 Feb 2026 16:55:24 +0000 From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 969c56e13cea - main - www/nbytes: Add nbytes 0.1.2 Message-ID: <69949d7c.2589d.4ffa588a@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=969c56e13cea47b43f72f9aaad1f638979643d05 commit 969c56e13cea47b43f72f9aaad1f638979643d05 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2026-02-17 16:50:18 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2026-02-17 16:53:37 +0000 www/nbytes: Add nbytes 0.1.2 nbytes is a library of byte handling functions extracted from Node.js core. --- www/Makefile | 1 + www/nbytes/Makefile | 32 +++++++++++++++++++++++++++++ www/nbytes/distinfo | 5 +++++ www/nbytes/files/patch-CMakeLists.txt | 26 +++++++++++++++++++++++ www/nbytes/files/patch-tests-CMakeLists.txt | 8 ++++++++ www/nbytes/pkg-descr | 1 + www/nbytes/pkg-plist | 3 +++ 7 files changed, 76 insertions(+) diff --git a/www/Makefile b/www/Makefile index 763a539d4f05..31e9b48da3ab 100644 --- a/www/Makefile +++ b/www/Makefile @@ -473,6 +473,7 @@ SUBDIR += mythplugin-mythweb SUBDIR += nanoblogger SUBDIR += nanoblogger-extra + SUBDIR += nbytes SUBDIR += ncgopher SUBDIR += neon SUBDIR += netrik diff --git a/www/nbytes/Makefile b/www/nbytes/Makefile new file mode 100644 index 000000000000..ba4ff759710e --- /dev/null +++ b/www/nbytes/Makefile @@ -0,0 +1,32 @@ +PORTNAME= nbytes +PORTVERSION= 0.1.2 +DISTVERSIONPREFIX= v +CATEGORIES= www + +PATCH_SITES= https://github.com/nodejs/nbytes/commit/ +PATCHFILES= 00f48a0620cef800054d4aab061f09d89990a1b9.patch:-p1 + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Library of byte handling functions extracted from Node.js core +WWW= https://github.com/nodejs/nbytes + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +TEST_DEPENDS= googletest>=0:devel/googletest + +USES= cmake:testing compiler:c++20-lang + +CMAKE_OFF= BUILD_TESTING \ + NBYTES_DEVELOPMENT_CHECKS +CMAKE_ON= BUILD_SHARED_LIBS + +USE_GITHUB= yes +GH_ACCOUNT= nodejs + +# Remove after 13.5-RELEASE EoL +.if !exists(/usr/bin/clang-scan-deps) +USES+= llvm:build +.endif + +.include <bsd.port.mk> diff --git a/www/nbytes/distinfo b/www/nbytes/distinfo new file mode 100644 index 000000000000..cab19421979c --- /dev/null +++ b/www/nbytes/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1771105010 +SHA256 (nodejs-nbytes-v0.1.2_GH0.tar.gz) = c06bbf55969128b9b4d09ea673af7b032a99f5f9d4f1eeb478e40eab4c632553 +SIZE (nodejs-nbytes-v0.1.2_GH0.tar.gz) = 14380 +SHA256 (00f48a0620cef800054d4aab061f09d89990a1b9.patch) = 765fe83873fedf5d09ee43deb8dfde7eacb9d6ed9a37f7099d7b207e1df9c56c +SIZE (00f48a0620cef800054d4aab061f09d89990a1b9.patch) = 1518 diff --git a/www/nbytes/files/patch-CMakeLists.txt b/www/nbytes/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..28a0dde35b1a --- /dev/null +++ b/www/nbytes/files/patch-CMakeLists.txt @@ -0,0 +1,26 @@ +--- CMakeLists.txt.orig 2025-12-24 18:53:34 UTC ++++ CMakeLists.txt +@@ -11,19 +11,12 @@ include(GNUInstallDirs) + option(NBYTES_DEVELOPMENT_CHECKS "Enable development checks" OFF) + + include(GNUInstallDirs) +-include(FetchContent) + +-FetchContent_Declare( +- googletest +- URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip +-) +-# For Windows: Prevent overriding the parent project's compiler/linker settings +-set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) +-FetchContent_MakeAvailable(googletest) +- + add_subdirectory(src) +-enable_testing() +-add_subdirectory(tests) ++if (BUILD_TESTING) ++ enable_testing() ++ add_subdirectory(tests) ++endif() + + install( + FILES include/nbytes.h diff --git a/www/nbytes/files/patch-tests-CMakeLists.txt b/www/nbytes/files/patch-tests-CMakeLists.txt new file mode 100644 index 000000000000..a2fa4b84a191 --- /dev/null +++ b/www/nbytes/files/patch-tests-CMakeLists.txt @@ -0,0 +1,8 @@ +--- tests/CMakeLists.txt.orig 2025-12-24 18:53:34 UTC ++++ tests/CMakeLists.txt +@@ -1,4 +1,4 @@ +-include(GoogleTest) ++find_package(GTest) + include(CTest) + add_executable(basic basic.cpp) + target_link_libraries( diff --git a/www/nbytes/pkg-descr b/www/nbytes/pkg-descr new file mode 100644 index 000000000000..a8b3d562aa60 --- /dev/null +++ b/www/nbytes/pkg-descr @@ -0,0 +1 @@ +nbytes is a library of byte handling functions extracted from Node.js core. diff --git a/www/nbytes/pkg-plist b/www/nbytes/pkg-plist new file mode 100644 index 000000000000..dc45b2923a4d --- /dev/null +++ b/www/nbytes/pkg-plist @@ -0,0 +1,3 @@ +include/nbytes.h +lib/libnbytes.so +libdata/pkgconfig/nbytes.pchome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69949d7c.2589d.4ffa588a>
