From 5679cabff6b10a7bd2719a88d59eae2bf4f4b0a9 Mon Sep 17 00:00:00 2001 From: "Jason W. Bacon" Date: Fri, 5 Sep 2025 18:28:56 -0500 Subject: devel/cppcodec: Library to encode/decode base64, base64url, etc. Header-only C++11 library to encode/decode base64, base64url, base32, base32hex and hex (a.k.a. base16) as specified in RFC 4648, plus Crockford's base32. MIT licensed with consistent, flexible API. Supports raw pointers, std::string and (templated) character vectors without unnecessary allocations. Cross-platform with measured decent performance and without compiler warnings. --- devel/cppcodec/Makefile | 19 +++++++++++++++++++ devel/cppcodec/distinfo | 3 +++ devel/cppcodec/pkg-descr | 8 ++++++++ devel/cppcodec/pkg-plist | 26 ++++++++++++++++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 devel/cppcodec/Makefile create mode 100644 devel/cppcodec/distinfo create mode 100644 devel/cppcodec/pkg-descr create mode 100644 devel/cppcodec/pkg-plist (limited to 'devel/cppcodec') diff --git a/devel/cppcodec/Makefile b/devel/cppcodec/Makefile new file mode 100644 index 000000000000..b00a805bd5c6 --- /dev/null +++ b/devel/cppcodec/Makefile @@ -0,0 +1,19 @@ +PORTNAME= cppcodec +DISTVERSIONPREFIX= v +DISTVERSION= 0.2 +CATEGORIES= devel + +MAINTAINER= jwb@FreeBSD.org +COMMENT= Library to encode/decode base64, base64url, base32, base32hex and hex +WWW= https://github.com/tplgy/cppcodec + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= catch>0:devel/catch + +USES= cmake localbase +USE_GITHUB= yes +GH_ACCOUNT= tplgy + +.include diff --git a/devel/cppcodec/distinfo b/devel/cppcodec/distinfo new file mode 100644 index 000000000000..7636ad9bf3e9 --- /dev/null +++ b/devel/cppcodec/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1757103347 +SHA256 (tplgy-cppcodec-v0.2_GH0.tar.gz) = 0edaea2a9d9709d456aa99a1c3e17812ed130f9ef2b5c2d152c230a5cbc5c482 +SIZE (tplgy-cppcodec-v0.2_GH0.tar.gz) = 33984 diff --git a/devel/cppcodec/pkg-descr b/devel/cppcodec/pkg-descr new file mode 100644 index 000000000000..4867ff7505b7 --- /dev/null +++ b/devel/cppcodec/pkg-descr @@ -0,0 +1,8 @@ +Header-only C++11 library to encode/decode base64, base64url, base32, +base32hex and hex (a.k.a. base16) as specified in RFC 4648, plus +Crockford's base32. + +MIT licensed with consistent, flexible API. Supports raw pointers, +std::string and (templated) character vectors without unnecessary +allocations. Cross-platform with measured decent performance and +without compiler warnings. diff --git a/devel/cppcodec/pkg-plist b/devel/cppcodec/pkg-plist new file mode 100644 index 000000000000..27a8ebc96712 --- /dev/null +++ b/devel/cppcodec/pkg-plist @@ -0,0 +1,26 @@ +include/cppcodec/base32_crockford.hpp +include/cppcodec/base32_default_crockford.hpp +include/cppcodec/base32_default_hex.hpp +include/cppcodec/base32_default_rfc4648.hpp +include/cppcodec/base32_hex.hpp +include/cppcodec/base32_rfc4648.hpp +include/cppcodec/base64_default_rfc4648.hpp +include/cppcodec/base64_default_url.hpp +include/cppcodec/base64_default_url_unpadded.hpp +include/cppcodec/base64_rfc4648.hpp +include/cppcodec/base64_url.hpp +include/cppcodec/base64_url_unpadded.hpp +include/cppcodec/data/access.hpp +include/cppcodec/data/raw_result_buffer.hpp +include/cppcodec/detail/base32.hpp +include/cppcodec/detail/base64.hpp +include/cppcodec/detail/codec.hpp +include/cppcodec/detail/config.hpp +include/cppcodec/detail/hex.hpp +include/cppcodec/detail/stream_codec.hpp +include/cppcodec/hex_default_lower.hpp +include/cppcodec/hex_default_upper.hpp +include/cppcodec/hex_lower.hpp +include/cppcodec/hex_upper.hpp +include/cppcodec/parse_error.hpp +share/pkgconfig/cppcodec-1.pc -- cgit v1.2.3