Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jan 2024 12:59:29 GMT
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 164e36910286 - main - devel/tomlplusplus: add new port
Message-ID:  <202401031259.403CxTSg046791@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=164e369102861ba4d2d6b5be8589a296c0673449

commit 164e369102861ba4d2d6b5be8589a296c0673449
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-10-13 13:39:42 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-01-03 12:58:12 +0000

    devel/tomlplusplus: add new port
    
    TOML config parser and serializer for C++
    
    Features:
    - Header-only (optional!)
    - Supports the latest TOML release v1.0.0, plus
      optional support for some unreleased TOML features
    - Passes all tests in the toml-test suite
    - Supports serializing to JSON and YAML
    - Proper UTF-8 handling (incl. BOM)
    - C++17 (plus some C++20 features where available, e.g. experimental support for char8_t strings)
    - Doesn't require RTTI
    - Works with or without exceptions
    
    https://marzer.github.io/tomlplusplus/
---
 devel/Makefile               |  1 +
 devel/tomlplusplus/Makefile  | 33 +++++++++++++++++++++++++
 devel/tomlplusplus/distinfo  |  3 +++
 devel/tomlplusplus/pkg-descr | 12 ++++++++++
 devel/tomlplusplus/pkg-plist | 57 ++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 106 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 11da06554d54..e3705ef46ff8 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7794,6 +7794,7 @@
     SUBDIR += tokei
     SUBDIR += tokio-console
     SUBDIR += toml11
+    SUBDIR += tomlplusplus
     SUBDIR += tortoisehg
     SUBDIR += tpasm
     SUBDIR += tradcpp
diff --git a/devel/tomlplusplus/Makefile b/devel/tomlplusplus/Makefile
new file mode 100644
index 000000000000..b9c79dfd0b03
--- /dev/null
+++ b/devel/tomlplusplus/Makefile
@@ -0,0 +1,33 @@
+PORTNAME=	tomlplusplus
+DISTVERSIONPREFIX=	v
+DISTVERSION=	3.4.0
+CATEGORIES=	devel
+
+MAINTAINER=	jbeich@FreeBSD.org
+COMMENT=	TOML config parser and serializer for C++
+WWW=		https://marzer.github.io/tomlplusplus/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	cmake:devel/cmake-core
+TEST_DEPENDS=	catch>0:devel/catch
+
+USES=		compiler:c++17-lang meson pkgconfig
+USE_GITHUB=	yes
+USE_LDCONFIG=	yes
+GH_ACCOUNT=	marzer
+MESON_ARGS=	-Duse_vendored_libs=false
+
+post-patch:
+# Convert codeset from GNU to IANA
+	@${REINPLACE_CMD} 's/utf8/UTF-8/' ${WRKSRC}/tests/meson.build
+
+pre-test:
+	@if [ ! -e ${WRKDIR}/.meson_build_tests ]; then \
+		${RM} ${CONFIGURE_COOKIE} ${BUILD_COOKIE}; \
+		${MAKE} -C${.CURDIR} build MESON_ARGS="${MESON_ARGS} --reconfigure -Dbuild_tests=true"; \
+		${TOUCH} ${WRKDIR}/.meson_build_tests; \
+	fi
+
+.include <bsd.port.mk>
diff --git a/devel/tomlplusplus/distinfo b/devel/tomlplusplus/distinfo
new file mode 100644
index 000000000000..e48cae7d379e
--- /dev/null
+++ b/devel/tomlplusplus/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1697204382
+SHA256 (marzer-tomlplusplus-v3.4.0_GH0.tar.gz) = 8517f65938a4faae9ccf8ebb36631a38c1cadfb5efa85d9a72e15b9e97d25155
+SIZE (marzer-tomlplusplus-v3.4.0_GH0.tar.gz) = 1294731
diff --git a/devel/tomlplusplus/pkg-descr b/devel/tomlplusplus/pkg-descr
new file mode 100644
index 000000000000..0983c0fb046c
--- /dev/null
+++ b/devel/tomlplusplus/pkg-descr
@@ -0,0 +1,12 @@
+toml++ is a TOML config parser and serializer for C++.
+
+Features:
+- Header-only (optional!)
+- Supports the latest TOML release v1.0.0, plus
+  optional support for some unreleased TOML features
+- Passes all tests in the toml-test suite
+- Supports serializing to JSON and YAML
+- Proper UTF-8 handling (incl. BOM)
+- C++17 (plus some C++20 features where available, e.g. experimental support for char8_t strings)
+- Doesn't require RTTI
+- Works with or without exceptions
diff --git a/devel/tomlplusplus/pkg-plist b/devel/tomlplusplus/pkg-plist
new file mode 100644
index 000000000000..f3fa1262a085
--- /dev/null
+++ b/devel/tomlplusplus/pkg-plist
@@ -0,0 +1,57 @@
+include/toml++/impl/array.hpp
+include/toml++/impl/array.inl
+include/toml++/impl/at_path.hpp
+include/toml++/impl/at_path.inl
+include/toml++/impl/date_time.hpp
+include/toml++/impl/formatter.hpp
+include/toml++/impl/formatter.inl
+include/toml++/impl/forward_declarations.hpp
+include/toml++/impl/header_end.hpp
+include/toml++/impl/header_start.hpp
+include/toml++/impl/json_formatter.hpp
+include/toml++/impl/json_formatter.inl
+include/toml++/impl/key.hpp
+include/toml++/impl/make_node.hpp
+include/toml++/impl/node.hpp
+include/toml++/impl/node.inl
+include/toml++/impl/node_view.hpp
+include/toml++/impl/parse_error.hpp
+include/toml++/impl/parse_result.hpp
+include/toml++/impl/parser.hpp
+include/toml++/impl/parser.inl
+include/toml++/impl/path.hpp
+include/toml++/impl/path.inl
+include/toml++/impl/preprocessor.hpp
+include/toml++/impl/print_to_stream.hpp
+include/toml++/impl/print_to_stream.inl
+include/toml++/impl/simd.hpp
+include/toml++/impl/source_region.hpp
+include/toml++/impl/std_except.hpp
+include/toml++/impl/std_initializer_list.hpp
+include/toml++/impl/std_map.hpp
+include/toml++/impl/std_new.hpp
+include/toml++/impl/std_optional.hpp
+include/toml++/impl/std_string.hpp
+include/toml++/impl/std_string.inl
+include/toml++/impl/std_utility.hpp
+include/toml++/impl/std_variant.hpp
+include/toml++/impl/std_vector.hpp
+include/toml++/impl/table.hpp
+include/toml++/impl/table.inl
+include/toml++/impl/toml_formatter.hpp
+include/toml++/impl/toml_formatter.inl
+include/toml++/impl/unicode.hpp
+include/toml++/impl/unicode.inl
+include/toml++/impl/unicode_autogenerated.hpp
+include/toml++/impl/value.hpp
+include/toml++/impl/version.hpp
+include/toml++/impl/yaml_formatter.hpp
+include/toml++/impl/yaml_formatter.inl
+include/toml++/toml.h
+include/toml++/toml.hpp
+lib/cmake/tomlplusplus/tomlplusplusConfig.cmake
+lib/cmake/tomlplusplus/tomlplusplusConfigVersion.cmake
+lib/libtomlplusplus.so
+lib/libtomlplusplus.so.3
+lib/libtomlplusplus.so.3.4.0
+libdata/pkgconfig/tomlplusplus.pc



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