diff --git a/devel/simdjson/Makefile b/devel/simdjson/Makefile index 69e8fe65332a..a035cc77293b 100644 --- a/devel/simdjson/Makefile +++ b/devel/simdjson/Makefile @@ -1,30 +1,31 @@ PORTNAME= simdjson DISTVERSIONPREFIX= v DISTVERSION= 3.6.2 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= olevole@olevole.ru COMMENT= Parsing gigabytes of JSON per second WWW= https://simdjson.org/ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake:testing compiler:c++17-lang python:test USE_GITHUB= yes USE_LDCONFIG= yes # Found in dependencies/CMakeLists.txt GH_TUPLE= simdjson:simdjson-data:a5b13ba:simdjson_data/dependencies/.cache/simdjson-data CMAKE_TESTING_ON= SIMDJSON_DEVELOPER_MODE CMAKE_TESTING_OFF= SIMDJSON_ALLOW_DOWNLOADS \ SIMDJSON_COMPETITION \ SIMDJSON_GOOGLE_BENCHMARKS CMAKE_ON= BUILD_SHARED_LIBS CXXFLAGS_i386= -DSIMDJSON_NO_PORTABILITY_WARNING CXXFLAGS_powerpc64= -mpower8-vector .include diff --git a/devel/simdjson/files/patch-include_simdjson_dom_serialization.h b/devel/simdjson/files/patch-include_simdjson_dom_serialization.h new file mode 100644 index 000000000000..09dc68e86977 --- /dev/null +++ b/devel/simdjson/files/patch-include_simdjson_dom_serialization.h @@ -0,0 +1,21 @@ +--- include/simdjson/dom/serialization.h.orig 2023-12-01 18:56:12 UTC ++++ include/simdjson/dom/serialization.h +@@ -57,15 +57,15 @@ class base_formatter { (public) + simdjson_inline void one_char(char c); + + simdjson_inline void call_print_newline() { +- this->print_newline(); ++ static_cast(this)->print_newline(); + } + + simdjson_inline void call_print_indents(size_t depth) { +- this->print_indents(depth); ++ static_cast(this)->print_indents(depth); + } + + simdjson_inline void call_print_space() { +- this->print_space(); ++ static_cast(this)->print_space(); + } + + protected: diff --git a/devel/simdjson/files/patch-singleheader_simdjson.h b/devel/simdjson/files/patch-singleheader_simdjson.h new file mode 100644 index 000000000000..e41f85236f17 --- /dev/null +++ b/devel/simdjson/files/patch-singleheader_simdjson.h @@ -0,0 +1,21 @@ +--- singleheader/simdjson.h.orig 2023-12-01 18:56:12 UTC ++++ singleheader/simdjson.h +@@ -6153,15 +6153,15 @@ class base_formatter { (public) + simdjson_inline void one_char(char c); + + simdjson_inline void call_print_newline() { +- this->print_newline(); ++ static_cast(this)->print_newline(); + } + + simdjson_inline void call_print_indents(size_t depth) { +- this->print_indents(depth); ++ static_cast(this)->print_indents(depth); + } + + simdjson_inline void call_print_space() { +- this->print_space(); ++ static_cast(this)->print_space(); + } + + protected: