From owner-svn-ports-all@freebsd.org Sun Dec 31 17:14:16 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2C044E87ABE; Sun, 31 Dec 2017 17:14:16 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 02F677AD88; Sun, 31 Dec 2017 17:14:15 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBVHEFTj044615; Sun, 31 Dec 2017 17:14:15 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBVHEEWC044612; Sun, 31 Dec 2017 17:14:14 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201712311714.vBVHEEWC044612@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sun, 31 Dec 2017 17:14:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r457707 - in head/devel/rapidjson: . files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/devel/rapidjson: . files X-SVN-Commit-Revision: 457707 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Dec 2017 17:14:16 -0000 Author: yuri Date: Sun Dec 31 17:14:14 2017 New Revision: 457707 URL: https://svnweb.freebsd.org/changeset/ports/457707 Log: devel/rapidjson: Fix clang warnings on 12 PR: 220388 Submitted by: dim Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D13599 Added: head/devel/rapidjson/files/ head/devel/rapidjson/files/patch-include_rapidjson_schema.h (contents, props changed) Modified: head/devel/rapidjson/Makefile head/devel/rapidjson/distinfo Modified: head/devel/rapidjson/Makefile ============================================================================== --- head/devel/rapidjson/Makefile Sun Dec 31 16:42:39 2017 (r457706) +++ head/devel/rapidjson/Makefile Sun Dec 31 17:14:14 2017 (r457707) @@ -2,12 +2,12 @@ # $FreeBSD$ PORTNAME= rapidjson -PORTVERSION= 1.1.0 DISTVERSIONPREFIX= v -PORTREVISION= 2 +PORTVERSION= 1.1.0 +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 @@ -15,13 +15,14 @@ LICENSE_NAME= RapidJSON LICENSE_FILE= ${WRKSRC}/license.txt LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -BROKEN_armv7= does not build: include/rapidjson/internal/../allocators.h:128:36: error: zero as null pointer constant - USE_GITHUB= yes -GH_ACCOUNT= miloyip +GH_ACCOUNT= Tencent USES= cmake compiler:c++11-lang pathfix +NO_ARCH= yes +CMAKE_OFF= RAPIDJSON_BUILD_TESTS + OPTIONS_DEFINE= DOXYGEN EXAMPLES OPTIONS_DEFAULT=${OPTIONS_DEFINE} OPTIONS_SUB= yes @@ -30,12 +31,16 @@ DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen DOXYGEN_CMAKE_BOOL= RAPIDJSON_BUILD_DOC EXAMPLES_CMAKE_BOOL= RAPIDJSON_BUILD_EXAMPLES -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 - DATADIR= ${PREFIX}/share/doc/RapidJSON PORTDATA= * +.include + +CXXFLAGS+= -Wno-c++98-compat # for EXAMPLES option, due to this bug: https://github.com/miloyip/rapidjson/issues/761 +.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 50 +CXXFLAGS+= -Wno-zero-as-null-pointer-constant +.endif + 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|-Werror||' ${WRKSRC}/example/CMakeLists.txt ${WRKSRC}/test/unittest/CMakeLists.txt @@ -45,4 +50,4 @@ post-patch: post-install: @${RM} -r ${STAGEDIR}${EXAMPLESDIR}/CMake* -.include +.include Modified: head/devel/rapidjson/distinfo ============================================================================== --- head/devel/rapidjson/distinfo Sun Dec 31 16:42:39 2017 (r457706) +++ head/devel/rapidjson/distinfo Sun Dec 31 17:14:14 2017 (r457707) @@ -1,3 +1,3 @@ -TIMESTAMP = 1472138938 -SHA256 (miloyip-rapidjson-v1.1.0_GH0.tar.gz) = bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e -SIZE (miloyip-rapidjson-v1.1.0_GH0.tar.gz) = 1019402 +TIMESTAMP = 1514740231 +SHA256 (Tencent-rapidjson-v1.1.0_GH0.tar.gz) = bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e +SIZE (Tencent-rapidjson-v1.1.0_GH0.tar.gz) = 1019402 Added: head/devel/rapidjson/files/patch-include_rapidjson_schema.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/rapidjson/files/patch-include_rapidjson_schema.h Sun Dec 31 17:14:14 2017 (r457707) @@ -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; +