git: f25a3727f175 - main - devel/json-dto: New port: Header-only library for converting data between JSON and C++ structs
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 06 Nov 2022 08:20:28 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f25a3727f17533abe9438c704a511db3127d1e43
commit f25a3727f17533abe9438c704a511db3127d1e43
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-11-06 06:32:02 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-11-06 08:20:22 +0000
devel/json-dto: New port: Header-only library for converting data between JSON and C++ structs
---
devel/Makefile | 1 +
devel/json-dto/Makefile | 36 ++++++++++++++++++++++++++++++++++++
devel/json-dto/distinfo | 3 +++
devel/json-dto/pkg-descr | 2 ++
4 files changed, 42 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 34609ee7f0ee..c0f2f122d0e0 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1010,6 +1010,7 @@
SUBDIR += jsl
SUBDIR += jsmin
SUBDIR += json-c
+ SUBDIR += json-dto
SUBDIR += json-glib
SUBDIR += jsoncpp
SUBDIR += jsonnet
diff --git a/devel/json-dto/Makefile b/devel/json-dto/Makefile
new file mode 100644
index 000000000000..d68b22345143
--- /dev/null
+++ b/devel/json-dto/Makefile
@@ -0,0 +1,36 @@
+PORTNAME= json-dto
+DISTVERSIONPREFIX= v.
+DISTVERSION= 0.3.1
+CATEGORIES= devel textproc
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Header-only library for converting data between JSON and C++ structs
+WWW= https://github.com/Stiffstream/json_dto
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/../LICENSE
+
+BUILD_DEPENDS= catch>0:devel/catch \
+ rapidjson>0:devel/rapidjson
+RUN_DEPENDS= rapidjson>0:devel/rapidjson
+
+USES= cmake:testing compiler:c++14-lang localbase
+
+USE_GITHUB= yes
+GH_ACCOUNT= Stiffstream
+GH_PROJECT= json_dto
+
+WRKSRC_SUBDIR= dev
+
+CMAKE_OFF= JSON_DTO_TEST JSON_DTO_SAMPLE
+CMAKE_TESTING_ON= JSON_DTO_TEST
+
+NO_ARCH= yes
+
+PLIST_FILES= include/json_dto/pub.hpp \
+ include/json_dto/validators.hpp \
+ lib/cmake/json-dto/json-dto-config-version.cmake \
+ lib/cmake/json-dto/json-dto-config.cmake \
+ lib/cmake/json-dto/json-dto-targets.cmake
+
+.include <bsd.port.mk>
diff --git a/devel/json-dto/distinfo b/devel/json-dto/distinfo
new file mode 100644
index 000000000000..e707abaa2389
--- /dev/null
+++ b/devel/json-dto/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1667715319
+SHA256 (Stiffstream-json_dto-v.0.3.1_GH0.tar.gz) = 515a2d1510d3d8f8b240eb2149f44aeb47a70d26a7071609cca45c0ee198d1d1
+SIZE (Stiffstream-json_dto-v.0.3.1_GH0.tar.gz) = 67641
diff --git a/devel/json-dto/pkg-descr b/devel/json-dto/pkg-descr
new file mode 100644
index 000000000000..e80e3ce2de54
--- /dev/null
+++ b/devel/json-dto/pkg-descr
@@ -0,0 +1,2 @@
+json_dto library is a small header-only helper for converting data between json
+representation and c++ structs. DTO here stands for data transfer object.