<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/67df88c1995d5644892e561051e23ee4b24d84be">https://github.com/macports/macports-ports/commit/67df88c1995d5644892e561051e23ee4b24d84be</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 67df88c1995d5644892e561051e23ee4b24d84be
</span>Author: Gregorio Litenstein <g.litenstein@gmail.com>
AuthorDate: Wed Oct 3 23:44:21 2018 -0300
<span style='display:block; white-space:pre;color:#404040;'> nlohmann-json: New port.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Nlohmann is a header-only (and optionally single-header) JSON library written in vanilla C++11. Has Unicode support; DOM and SAX parsers, among other features.
</span>---
devel/nlohmann-json/Portfile | 38 ++++++++++++++++++++++
...hmarks-thirdparty-benchmark-CMakeLists.txt.diff | 20 ++++++++++++
...irdparty-benchmark-cmake-HandleGTest.cmake.diff | 11 +++++++
3 files changed, 69 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/nlohmann-json/Portfile b/devel/nlohmann-json/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..3213d13
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/nlohmann-json/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,38 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cxx11 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup nlohmann json 3.2.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name nlohmann-json
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license MIT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {gmail.com:g.litenstein @Lord-Kamina} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Nlohmann JSON for modern C++.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Nlohmann is a header-only (and optionally single-header) JSON library \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ written in vanilla C++11. Has Unicode support\; DOM and SAX parsers, among other features.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 3c04b206efdeaacf49f374b33eec5b86978eef6d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 2131e11d0774005e68432c5c01ff0a595e6abf0ba7979738a2017ee8a69d4001 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 114561095
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-benchmarks-thirdparty-benchmark-CMakeLists.txt.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-benchmarks-thirdparty-benchmark-cmake-HandleGTest.cmake.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cmake.generator "Unix Makefiles"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.ccache no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DBUILD_TESTING=OFF -DJSON_BuildTests=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-test {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace -DBUILD_TESTING=OFF -DBUILD_TESTING=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace -DJSON_BuildTests=OFF -DJSON_BuildTests=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ portconfigure::configure_main
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ portbuild::build_main
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/nlohmann-json/files/patch-benchmarks-thirdparty-benchmark-CMakeLists.txt.diff b/devel/nlohmann-json/files/patch-benchmarks-thirdparty-benchmark-CMakeLists.txt.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..be44767
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/nlohmann-json/files/patch-benchmarks-thirdparty-benchmark-CMakeLists.txt.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- benchmarks/thirdparty/benchmark/CMakeLists.txt.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ benchmarks/thirdparty/benchmark/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -140,7 +140,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (GCC_RANLIB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(CMAKE_RANLIB ${GCC_RANLIB})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- elseif("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ elseif("${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include(llvm-toolchain)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -165,7 +165,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (BENCHMARK_USE_LIBCXX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ add_cxx_compiler_flag(-stdlib=libc++)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/nlohmann-json/files/patch-benchmarks-thirdparty-benchmark-cmake-HandleGTest.cmake.diff b/devel/nlohmann-json/files/patch-benchmarks-thirdparty-benchmark-cmake-HandleGTest.cmake.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..e3d20a9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/nlohmann-json/files/patch-benchmarks-thirdparty-benchmark-cmake-HandleGTest.cmake.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- benchmarks/thirdparty/benchmark/cmake/HandleGTest.cmake.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ benchmarks/thirdparty/benchmark/cmake/HandleGTest.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -7,7 +7,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include(ExternalProject)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(GTEST_FLAGS "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (BENCHMARK_USE_LIBCXX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ list(APPEND GTEST_FLAGS -stdlib=libc++)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ message(WARNING "Unsupported compiler (${CMAKE_CXX_COMPILER}) when using libc++")
</span></pre><pre style='margin:0'>
</pre>