diff --git a/devel/rapidjson/Makefile b/devel/rapidjson/Makefile index a7c0b640d887..d79ac169a871 100644 --- a/devel/rapidjson/Makefile +++ b/devel/rapidjson/Makefile @@ -1,46 +1,51 @@ PORTNAME= rapidjson DISTVERSIONPREFIX= v -DISTVERSION= 1.1.0-524 -DISTVERSIONSUFFIX= -gc4c6a654 +DISTVERSION= 1.1.0-709 +DISTVERSIONSUFFIX= -g06d58b9e CATEGORIES= devel textproc MAINTAINER= yuri@FreeBSD.org COMMENT= Fast JSON parser/generator for C++ with both SAX/DOM style API WWW= https://github.com/Tencent/rapidjson LICENSE= unknown LICENSE_NAME= RapidJSON LICENSE_FILE= ${WRKSRC}/license.txt LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -USE_GITHUB= yes -GH_ACCOUNT= Tencent +TEST_DEPENDS= googletest>0:devel/googletest \ + valgrind:devel/valgrind -USES= cmake compiler:c++11-lang cpe pathfix +USES= cmake:testing compiler:c++11-lang cpe pathfix CPE_VENDOR= tencent +USE_GITHUB= yes +GH_ACCOUNT= Tencent + NO_ARCH= yes +CMAKE_ARGS= -DGTEST_INCLUDE_DIR=${LOCALBASE}/include -DGTESTSRC_FOUND=TRUE CMAKE_OFF= RAPIDJSON_BUILD_TESTS RAPIDJSON_BUILD_EXAMPLES +CMAKE_TESTING_ON= RAPIDJSON_BUILD_TESTS OPTIONS_DEFINE= DOXYGEN OPTIONS_DEFAULT=${OPTIONS_DEFINE} OPTIONS_SUB= yes DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen DOXYGEN_CMAKE_BOOL= RAPIDJSON_BUILD_DOC DATADIR= ${PREFIX}/share/doc/RapidJSON PORTDATA= * CXXFLAGS+= -Wno-error post-patch: @${REINPLACE_CMD} -e 's|DOC_INSTALL_DIR}/examples"|CMAKE_INSTALL_PREFIX}/share/examples/${PORTNAME}"| ; s| -march=native||' ${WRKSRC}/CMakeLists.txt @${REINPLACE_CMD} -e 's|.*travis.*||' ${WRKSRC}/CMakeLists.txt # travis_doc breaks cmake: see https://github.com/miloyip/rapidjson/issues/715 @${REINPLACE_CMD} -e 's|add_subdirectory.*googletest.*|link_directories(${LOCALBASE}/lib)|' ${WRKSRC}/test/CMakeLists.txt post-install: @${RM} -r ${STAGEDIR}${EXAMPLESDIR}/CMake* .include diff --git a/devel/rapidjson/distinfo b/devel/rapidjson/distinfo index 6c60a79c04a8..ede72c970274 100644 --- a/devel/rapidjson/distinfo +++ b/devel/rapidjson/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1572745628 -SHA256 (Tencent-rapidjson-v1.1.0-524-gc4c6a654_GH0.tar.gz) = 98a065a642353ad9cebc8aded755d06d1456a111f9e5529ed8c36834a1c97cba -SIZE (Tencent-rapidjson-v1.1.0-524-gc4c6a654_GH0.tar.gz) = 1057309 +TIMESTAMP = 1667714043 +SHA256 (Tencent-rapidjson-v1.1.0-709-g06d58b9e_GH0.tar.gz) = 6bda6c47ac79664cbe6eccb8d05a595770e5aeb5d1d3d8275ecd409b37c36c75 +SIZE (Tencent-rapidjson-v1.1.0-709-g06d58b9e_GH0.tar.gz) = 1107697 diff --git a/devel/rapidjson/files/patch-include_rapidjson_schema.h b/devel/rapidjson/files/patch-include_rapidjson_schema.h deleted file mode 100644 index a07c8e9cd02e..000000000000 --- a/devel/rapidjson/files/patch-include_rapidjson_schema.h +++ /dev/null @@ -1,10 +0,0 @@ ---- include/rapidjson/schema.h.orig 2016-08-25 07:59:05 UTC -+++ include/rapidjson/schema.h -@@ -379,7 +379,6 @@ class Schema { (public) - exclusiveMinimum_(false), - exclusiveMaximum_(false) - { -- typedef typename SchemaDocumentType::ValueType ValueType; - typedef typename ValueType::ConstValueIterator ConstValueIterator; - typedef typename ValueType::ConstMemberIterator ConstMemberIterator; - diff --git a/devel/rapidjson/pkg-plist b/devel/rapidjson/pkg-plist index cfc844ee6f08..75bce941d704 100644 --- a/devel/rapidjson/pkg-plist +++ b/devel/rapidjson/pkg-plist @@ -1,40 +1,41 @@ include/rapidjson/allocators.h include/rapidjson/cursorstreamwrapper.h include/rapidjson/document.h include/rapidjson/encodedstream.h include/rapidjson/encodings.h include/rapidjson/error/en.h include/rapidjson/error/error.h include/rapidjson/filereadstream.h include/rapidjson/filewritestream.h include/rapidjson/fwd.h include/rapidjson/internal/biginteger.h include/rapidjson/internal/clzll.h include/rapidjson/internal/diyfp.h include/rapidjson/internal/dtoa.h include/rapidjson/internal/ieee754.h include/rapidjson/internal/itoa.h include/rapidjson/internal/meta.h include/rapidjson/internal/pow10.h include/rapidjson/internal/regex.h include/rapidjson/internal/stack.h include/rapidjson/internal/strfunc.h include/rapidjson/internal/strtod.h include/rapidjson/internal/swap.h include/rapidjson/istreamwrapper.h include/rapidjson/memorybuffer.h include/rapidjson/memorystream.h include/rapidjson/msinttypes/inttypes.h include/rapidjson/msinttypes/stdint.h include/rapidjson/ostreamwrapper.h include/rapidjson/pointer.h include/rapidjson/prettywriter.h include/rapidjson/rapidjson.h include/rapidjson/reader.h include/rapidjson/schema.h include/rapidjson/stream.h include/rapidjson/stringbuffer.h +include/rapidjson/uri.h include/rapidjson/writer.h lib/cmake/RapidJSON/RapidJSONConfig.cmake lib/cmake/RapidJSON/RapidJSONConfigVersion.cmake libdata/pkgconfig/RapidJSON.pc