View | Details | Raw Unified | Return to bug 260997 | Differences between
and this patch

Collapse All | Expand All

(-)b/devel/rapidyaml/Makefile (+25 lines)
Added Link Here
1
PORTNAME=	rapidyaml
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	0.3.0
4
CATEGORIES=	devel
5
6
MAINTAINER=	gasol.wu@gmail.com
7
COMMENT=	Library to parse and emit YAML
8
9
LICENSE=	MIT
10
LICENSE_FILE=	${WRKSRC}/LICENSE.txt
11
12
LIB_DEPENDS=	libc4core.so:devel/c4core>=0.1.8
13
14
USES=		compiler:c++11-lib cmake:noninja localbase:ldflags
15
CMAKE_ON=	BUILD_SHARED_LIBS
16
17
USE_GITHUB=	yes
18
GH_ACCOUNT=	biojppm
19
GH_PROJECT=	cmake:cmake
20
GH_TAGNAME=	9416f29:cmake
21
GH_SUBDIR=	ext/c4core/cmake:cmake
22
23
PLIST_SUB=  PORTVERSION=${PORTVERSION}
24
25
.include <bsd.port.mk>
(-)b/devel/rapidyaml/distinfo (+5 lines)
Added Link Here
1
TIMESTAMP = 1641437701
2
SHA256 (biojppm-rapidyaml-v0.3.0_GH0.tar.gz) = 1e25d739207733bd9febaf57793e4df3b7f868aa1d3c18d744b09b5d7b286a53
3
SIZE (biojppm-rapidyaml-v0.3.0_GH0.tar.gz) = 291415
4
SHA256 (biojppm-cmake-9416f29_GH0.tar.gz) = 4c4b47dec40782866deb56df29a93b89eec059a2b368d3ad72aed85b810109d8
5
SIZE (biojppm-cmake-9416f29_GH0.tar.gz) = 121012
(-)b/devel/rapidyaml/files/patch-CMakeLists.txt (+31 lines)
Added Link Here
1
--- CMakeLists.txt.orig	2021-12-28 17:18:42 UTC
2
+++ CMakeLists.txt
3
@@ -17,9 +17,6 @@ option(RYML_DBG "Enable (very verbose) ryml debug prin
4
 
5
 #-------------------------------------------------------
6
 
7
-c4_require_subproject(c4core INCORPORATE
8
-    SUBDIRECTORY ${RYML_EXT_DIR}/c4core)
9
-
10
 c4_add_library(ryml
11
     SOURCES
12
         ryml.hpp
13
@@ -47,14 +44,15 @@ c4_add_library(ryml
14
         c4/yml/tree.cpp
15
         c4/yml/writer.hpp
16
         c4/yml/yml.hpp
17
-        ryml.natvis
18
     SOURCE_ROOT ${RYML_SRC_DIR}
19
     INC_DIRS
20
         $<BUILD_INTERFACE:${RYML_SRC_DIR}>
21
         $<INSTALL_INTERFACE:include>
22
-    LIBS c4core
23
-    INCORPORATE c4core
24
     )
25
+
26
+include_directories(/usr/local/include)
27
+target_link_libraries(ryml c4core)
28
+
29
 
30
 if(NOT RYML_DEFAULT_CALLBACKS)
31
     target_compile_definitions(ryml PRIVATE RYML_NO_DEFAULT_CALLBACKS)
(-)b/devel/rapidyaml/pkg-descr (+13 lines)
Added Link Here
1
Rapid YAML or ryml, for short. ryml is a C++ library to parse and emit YAML,
2
and do it fast.
3
4
ryml parses both read-only and in-situ source buffers; the resulting data nodes
5
hold only views to sub-ranges of the source buffer. No string copies or
6
duplications are done, and no virtual functions are used. The data tree is a
7
flat index-based structure stored in a single array. Serialization happens only
8
at your direct request, after parsing / before emitting. Internally, the data
9
tree representation stores only strings and has no knowledge of types, but of
10
course, every node can have a YAML type tag. ryml makes it easy and fast to
11
read and modify the data tree.
12
13
WWW: https://github.com/biojppm/rapidyaml
(-)b/devel/rapidyaml/pkg-plist (-1 / +26 lines)
Added Link Here
0
- 
1
include/c4/yml/common.hpp
2
include/c4/yml/detail/checks.hpp
3
include/c4/yml/detail/parser_dbg.hpp
4
include/c4/yml/detail/print.hpp
5
include/c4/yml/detail/stack.hpp
6
include/c4/yml/emit.def.hpp
7
include/c4/yml/emit.hpp
8
include/c4/yml/export.hpp
9
include/c4/yml/node.hpp
10
include/c4/yml/parse.hpp
11
include/c4/yml/preprocess.hpp
12
include/c4/yml/std/map.hpp
13
include/c4/yml/std/std.hpp
14
include/c4/yml/std/string.hpp
15
include/c4/yml/std/vector.hpp
16
include/c4/yml/tree.hpp
17
include/c4/yml/writer.hpp
18
include/c4/yml/yml.hpp
19
include/ryml.hpp
20
include/ryml_std.hpp
21
lib/cmake/ryml/rymlConfig.cmake
22
lib/cmake/ryml/rymlConfigVersion.cmake
23
lib/cmake/ryml/rymlTargets-%%CMAKE_BUILD_TYPE%%.cmake
24
lib/cmake/ryml/rymlTargets.cmake
25
lib/libryml.so
26
lib/libryml.so.%%PORTVERSION%%

Return to bug 260997