FreeBSD Bugzilla – Attachment 230780 Details for
Bug 260997
devel/rapidyaml: New port: Library to parse and emit YAML
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
0002-devel-rapidyaml-New-port-Library-to-parse-and-emit-Y.patch (text/plain), 4.94 KB, created by
Gasol Wu
on 2022-01-07 06:48:54 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Gasol Wu
Created:
2022-01-07 06:48:54 UTC
Size:
4.94 KB
patch
obsolete
>From 777fb9ef24046b9de2bbb3e033987056bfe4396b Mon Sep 17 00:00:00 2001 >From: Gasol Wu <gasol.wu@gmail.com> >Date: Thu, 6 Jan 2022 12:35:39 +0800 >Subject: [PATCH 2/3] devel/rapidyaml: New port: Library to parse and emit YAML > >--- > devel/rapidyaml/Makefile | 25 +++++++++++++++++ > devel/rapidyaml/distinfo | 5 ++++ > devel/rapidyaml/files/patch-CMakeLists.txt | 31 ++++++++++++++++++++++ > devel/rapidyaml/pkg-descr | 13 +++++++++ > devel/rapidyaml/pkg-plist | 26 ++++++++++++++++++ > 5 files changed, 100 insertions(+) > create mode 100644 devel/rapidyaml/Makefile > create mode 100644 devel/rapidyaml/distinfo > create mode 100644 devel/rapidyaml/files/patch-CMakeLists.txt > create mode 100644 devel/rapidyaml/pkg-descr > create mode 100644 devel/rapidyaml/pkg-plist > >diff --git a/devel/rapidyaml/Makefile b/devel/rapidyaml/Makefile >new file mode 100644 >index 00000000000..6143d8be535 >--- /dev/null >+++ b/devel/rapidyaml/Makefile >@@ -0,0 +1,25 @@ >+PORTNAME= rapidyaml >+DISTVERSIONPREFIX= v >+DISTVERSION= 0.3.0 >+CATEGORIES= devel >+ >+MAINTAINER= gasol.wu@gmail.com >+COMMENT= Library to parse and emit YAML >+ >+LICENSE= MIT >+LICENSE_FILE= ${WRKSRC}/LICENSE.txt >+ >+LIB_DEPENDS= libc4core.so:devel/c4core>=0.1.8 >+ >+USES= compiler:c++11-lib cmake:noninja localbase:ldflags >+CMAKE_ON= BUILD_SHARED_LIBS >+ >+USE_GITHUB= yes >+GH_ACCOUNT= biojppm >+GH_PROJECT= cmake:cmake >+GH_TAGNAME= 9416f29:cmake >+GH_SUBDIR= ext/c4core/cmake:cmake >+ >+PLIST_SUB= PORTVERSION=${PORTVERSION} >+ >+.include <bsd.port.mk> >diff --git a/devel/rapidyaml/distinfo b/devel/rapidyaml/distinfo >new file mode 100644 >index 00000000000..61cf33a045d >--- /dev/null >+++ b/devel/rapidyaml/distinfo >@@ -0,0 +1,5 @@ >+TIMESTAMP = 1641437701 >+SHA256 (biojppm-rapidyaml-v0.3.0_GH0.tar.gz) = 1e25d739207733bd9febaf57793e4df3b7f868aa1d3c18d744b09b5d7b286a53 >+SIZE (biojppm-rapidyaml-v0.3.0_GH0.tar.gz) = 291415 >+SHA256 (biojppm-cmake-9416f29_GH0.tar.gz) = 4c4b47dec40782866deb56df29a93b89eec059a2b368d3ad72aed85b810109d8 >+SIZE (biojppm-cmake-9416f29_GH0.tar.gz) = 121012 >diff --git a/devel/rapidyaml/files/patch-CMakeLists.txt b/devel/rapidyaml/files/patch-CMakeLists.txt >new file mode 100644 >index 00000000000..f325c3ab33a >--- /dev/null >+++ b/devel/rapidyaml/files/patch-CMakeLists.txt >@@ -0,0 +1,31 @@ >+--- CMakeLists.txt.orig 2021-12-28 17:18:42 UTC >++++ CMakeLists.txt >+@@ -17,9 +17,6 @@ option(RYML_DBG "Enable (very verbose) ryml debug prin >+ >+ #------------------------------------------------------- >+ >+-c4_require_subproject(c4core INCORPORATE >+- SUBDIRECTORY ${RYML_EXT_DIR}/c4core) >+- >+ c4_add_library(ryml >+ SOURCES >+ ryml.hpp >+@@ -47,14 +44,15 @@ c4_add_library(ryml >+ c4/yml/tree.cpp >+ c4/yml/writer.hpp >+ c4/yml/yml.hpp >+- ryml.natvis >+ SOURCE_ROOT ${RYML_SRC_DIR} >+ INC_DIRS >+ $<BUILD_INTERFACE:${RYML_SRC_DIR}> >+ $<INSTALL_INTERFACE:include> >+- LIBS c4core >+- INCORPORATE c4core >+ ) >++ >++include_directories(/usr/local/include) >++target_link_libraries(ryml c4core) >++ >+ >+ if(NOT RYML_DEFAULT_CALLBACKS) >+ target_compile_definitions(ryml PRIVATE RYML_NO_DEFAULT_CALLBACKS) >diff --git a/devel/rapidyaml/pkg-descr b/devel/rapidyaml/pkg-descr >new file mode 100644 >index 00000000000..480362791de >--- /dev/null >+++ b/devel/rapidyaml/pkg-descr >@@ -0,0 +1,13 @@ >+Rapid YAML or ryml, for short. ryml is a C++ library to parse and emit YAML, >+and do it fast. >+ >+ryml parses both read-only and in-situ source buffers; the resulting data nodes >+hold only views to sub-ranges of the source buffer. No string copies or >+duplications are done, and no virtual functions are used. The data tree is a >+flat index-based structure stored in a single array. Serialization happens only >+at your direct request, after parsing / before emitting. Internally, the data >+tree representation stores only strings and has no knowledge of types, but of >+course, every node can have a YAML type tag. ryml makes it easy and fast to >+read and modify the data tree. >+ >+WWW: https://github.com/biojppm/rapidyaml >diff --git a/devel/rapidyaml/pkg-plist b/devel/rapidyaml/pkg-plist >new file mode 100644 >index 00000000000..b9b03e81fd8 >--- /dev/null >+++ b/devel/rapidyaml/pkg-plist >@@ -0,0 +1,26 @@ >+include/c4/yml/common.hpp >+include/c4/yml/detail/checks.hpp >+include/c4/yml/detail/parser_dbg.hpp >+include/c4/yml/detail/print.hpp >+include/c4/yml/detail/stack.hpp >+include/c4/yml/emit.def.hpp >+include/c4/yml/emit.hpp >+include/c4/yml/export.hpp >+include/c4/yml/node.hpp >+include/c4/yml/parse.hpp >+include/c4/yml/preprocess.hpp >+include/c4/yml/std/map.hpp >+include/c4/yml/std/std.hpp >+include/c4/yml/std/string.hpp >+include/c4/yml/std/vector.hpp >+include/c4/yml/tree.hpp >+include/c4/yml/writer.hpp >+include/c4/yml/yml.hpp >+include/ryml.hpp >+include/ryml_std.hpp >+lib/cmake/ryml/rymlConfig.cmake >+lib/cmake/ryml/rymlConfigVersion.cmake >+lib/cmake/ryml/rymlTargets-%%CMAKE_BUILD_TYPE%%.cmake >+lib/cmake/ryml/rymlTargets.cmake >+lib/libryml.so >+lib/libryml.so.%%PORTVERSION%% >-- >2.32.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 260997
:
230780
|
230805
|
230807