Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F165550321
D13599.id36951.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D13599.id36951.diff
View Options
Index: devel/rapidjson/Makefile
===================================================================
--- devel/rapidjson/Makefile
+++ devel/rapidjson/Makefile
@@ -4,10 +4,10 @@
PORTNAME= rapidjson
PORTVERSION= 1.1.0
DISTVERSIONPREFIX= v
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel textproc
-MAINTAINER= yuri@rawbw.com
+MAINTAINER= yuri@FreeBSD.org
COMMENT= Fast JSON parser/generator for C++ with both SAX/DOM style API
LICENSE= unknown
@@ -30,8 +30,13 @@
DOXYGEN_CMAKE_BOOL= RAPIDJSON_BUILD_DOC
EXAMPLES_CMAKE_BOOL= RAPIDJSON_BUILD_EXAMPLES
+.include <bsd.port.pre.mk>
+
CXXFLAGS+= -Wno-c++98-compat # for EXAMPLES option, due to this bug: https://github.com/miloyip/rapidjson/issues/761
-CMAKE_ARGS= -DRAPIDJSON_BUILD_TESTS:BOOL=OFF
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 50
+CXXFLAGS+= -Wno-zero-as-null-pointer-constant
+.endif
+CMAKE_ARGS+= -DRAPIDJSON_BUILD_TESTS:BOOL=OFF
DATADIR= ${PREFIX}/share/doc/RapidJSON
PORTDATA= *
@@ -45,4 +50,4 @@
post-install:
@${RM} -r ${STAGEDIR}${EXAMPLESDIR}/CMake*
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: devel/rapidjson/files/patch-include_rapidjson_schema.h
===================================================================
--- /dev/null
+++ devel/rapidjson/files/patch-include_rapidjson_schema.h
@@ -0,0 +1,10 @@
+--- 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;
+
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 9, 3:46 PM (1 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36340142
Default Alt Text
D13599.id36951.diff (1 KB)
Attached To
Mode
D13599: devel/rapidjson: Fix clang warnings on 12.
Attached
Detach File
Event Timeline
Log In to Comment