aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Limberger <flo@purplekraken.com>2022-06-06 15:52:29 +0000
committerGleb Popov <arrowd@FreeBSD.org>2022-06-06 15:55:35 +0000
commit266c2e8881b78e731026bf4122d543dad37a1945 (patch)
tree4b051b79b715eb8957ea0e70b771e22f5947ffb4
parent5963e213f28046a6b2ae39a67b9e437c312de549 (diff)
textproc/cpptoml: [+] Header-only C++ library for parsing TOML
Reviewed by: arrowd, koobs Differential Revision: https://reviews.freebsd.org/D35404 Tested by: arrowd
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/cpptoml/Makefile26
-rw-r--r--textproc/cpptoml/distinfo3
-rw-r--r--textproc/cpptoml/pkg-descr6
4 files changed, 36 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 73f3dce4a46d..ba0311d0e8c0 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -109,6 +109,7 @@
SUBDIR += confget
SUBDIR += consul-template
SUBDIR += cpp-peglib
+ SUBDIR += cpptoml
SUBDIR += crex
SUBDIR += crunch
SUBDIR += cs-aspell
diff --git a/textproc/cpptoml/Makefile b/textproc/cpptoml/Makefile
new file mode 100644
index 000000000000..cab8f5d2df8c
--- /dev/null
+++ b/textproc/cpptoml/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= cpptoml
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.1.1
+CATEGORIES= textproc devel
+
+MAINTAINER= flo@purplekraken.com
+COMMENT= Header-only C++ library for parsing TOML
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= cmake
+
+USE_GITHUB= yes
+GH_ACCOUNT= skystrife
+
+CMAKE_OFF= CPPTOML_BUILD_EXAMPLES ENABLE_LIBCXX
+
+NO_ARCH= yes
+
+PLIST_FILES= include/cpptoml.h \
+ lib/cmake/cpptoml/cpptomlConfig.cmake \
+ lib/cmake/cpptoml/cpptomlConfigVersion.cmake \
+ lib/cmake/cpptoml/cpptomlTargets.cmake
+
+.include <bsd.port.mk>
diff --git a/textproc/cpptoml/distinfo b/textproc/cpptoml/distinfo
new file mode 100644
index 000000000000..7801ca2715db
--- /dev/null
+++ b/textproc/cpptoml/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1654013088
+SHA256 (skystrife-cpptoml-v0.1.1_GH0.tar.gz) = 23af72468cfd4040984d46a0dd2a609538579c78ddc429d6b8fd7a10a6e24403
+SIZE (skystrife-cpptoml-v0.1.1_GH0.tar.gz) = 47398
diff --git a/textproc/cpptoml/pkg-descr b/textproc/cpptoml/pkg-descr
new file mode 100644
index 000000000000..c9813b9edb0e
--- /dev/null
+++ b/textproc/cpptoml/pkg-descr
@@ -0,0 +1,6 @@
+A header-only library for parsing TOML configuration files with support for the
+new DateTime format, inline tables, multi-line basic and raw strings, digit
+separators, hexadecimal integers, octal integers, binary integers, and float
+special values.
+
+WWW: https://github.com/skystrife/cpptoml/