Index: head/devel/nlohmann-json/Makefile =================================================================== --- head/devel/nlohmann-json/Makefile (revision 470224) +++ head/devel/nlohmann-json/Makefile (revision 470225) @@ -1,39 +1,35 @@ # Created by: Viacheslav Mikerov # $FreeBSD$ PORTNAME= json -PORTVERSION= 2.1.1 -PORTREVISION= 1 DISTVERSIONPREFIX= v +DISTVERSION= 3.1.2 CATEGORIES= devel PKGNAMEPREFIX= nlohmann- MAINTAINER= SlavaMikerov@gmail.com COMMENT= JSON library for Modern C++ -LICENSE= BSD2CLAUSE +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.MIT -NO_ARCH= yes - +USES= cmake:outsource compiler:c++11-lib USE_GITHUB= yes GH_ACCOUNT= nlohmann -GH_PROJECT= json +NO_BUILD= yes +NO_ARCH= yes -PLIST_FILES= share/cmake/Modules/nlohmann_jsonConfig.cmake \ - share/cmake/Modules/nlohmann_jsonConfigVersion.cmake \ - share/cmake/Modules/nlohmann_jsonTargets.cmake \ +CMAKE_OFF= JSON_BuildTests + +PLIST_FILES= lib/cmake/nlohmann_json/nlohmann_jsonConfig.cmake \ + lib/cmake/nlohmann_json/nlohmann_jsonConfigVersion.cmake \ + lib/cmake/nlohmann_json/nlohmann_jsonTargets.cmake \ include/nlohmann/json.hpp -USES= compiler:c++11-lib cmake:outsource -OPTIONS_DEFINE= TEST -TEST_CMAKE_OFF= -DBuildTests=OFF - -post-patch: - @${REINPLACE_CMD} -e \ - 's|set(JSON_CONFIG_DESTINATION "cmake")|set(JSON_CONFIG_DESTINATION "share/cmake/Modules")|g' \ - ${WRKSRC}/CMakeLists.txt - -do-test-TEST-on: - @cd ${WRKDIR}/.build && ${MAKE_CMD} test +do-test: + @cd ${BUILD_WRKSRC} && \ + ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DJSON_BuildTests:BOOL=ON ${CMAKE_SOURCE_PATH} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test .include Index: head/devel/nlohmann-json/distinfo =================================================================== --- head/devel/nlohmann-json/distinfo (revision 470224) +++ head/devel/nlohmann-json/distinfo (revision 470225) @@ -1,3 +1,3 @@ -TIMESTAMP = 1490609142 -SHA256 (nlohmann-json-v2.1.1_GH0.tar.gz) = 59b85ebe61d9dcbd24946f2082ce5943e276f05b4ef1baeb3c6c10d324333053 -SIZE (nlohmann-json-v2.1.1_GH0.tar.gz) = 108615607 +TIMESTAMP = 1522527522 +SHA256 (nlohmann-json-v3.1.2_GH0.tar.gz) = e8fffa6cbdb3c15ecdff32eebf958b6c686bc188da8ad5c6489462d16f83ae54 +SIZE (nlohmann-json-v3.1.2_GH0.tar.gz) = 114293094