ports/contrib (3.6): nlohmann-json: initial commit, version 3.10.2
commit 888ed571b50aa0d61b2ded91053ea14cd06280d8 Author: Tim Biermann <tbier@posteo.de> Date: Sat Aug 28 20:03:17 2021 +0200 nlohmann-json: initial commit, version 3.10.2 diff --git a/nlohmann-json/.footprint b/nlohmann-json/.footprint new file mode 100644 index 000000000..2c0839fb6 --- /dev/null +++ b/nlohmann-json/.footprint @@ -0,0 +1,12 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/nlohmann/ +-rw-r--r-- root/root usr/include/nlohmann/json.hpp +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/cmake/ +drwxr-xr-x root/root usr/lib/cmake/nlohmann_json/ +-rw-r--r-- root/root usr/lib/cmake/nlohmann_json/nlohmann_jsonConfig.cmake +-rw-r--r-- root/root usr/lib/cmake/nlohmann_json/nlohmann_jsonConfigVersion.cmake +-rw-r--r-- root/root usr/lib/cmake/nlohmann_json/nlohmann_jsonTargets.cmake +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/nlohmann_json.pc diff --git a/nlohmann-json/.signature b/nlohmann-json/.signature new file mode 100644 index 000000000..49eeed64e --- /dev/null +++ b/nlohmann-json/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF36KSYlJmWmP8actFJlZ7z7UfilPCs0DPsZWKnrPMcEVUPCq0Ah7l0UZHnZoIHg8/qeoHdrASDE0kDH70FrukWgM= +SHA256 (Pkgfile) = dc0981ad931eb830043b16899e459b11b1bc2ffbcce2092f261d13360f714be6 +SHA256 (.footprint) = 953f375f30e0113326c4cb165e478ab5ad00e3ee09911b0be04dd429dee9ce03 +SHA256 (nlohmann-json-3.10.2.tar.gz) = 081ed0f9f89805c2d96335c3acfa993b39a0a5b4b4cef7edb68dd2210a13458c diff --git a/nlohmann-json/Pkgfile b/nlohmann-json/Pkgfile new file mode 100644 index 000000000..28dcfa7c4 --- /dev/null +++ b/nlohmann-json/Pkgfile @@ -0,0 +1,22 @@ +# Description: JSON for Modern C++ +# URL: https://github.com/nlohmann/json +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: cmake +# Optional: ninja + +name=nlohmann-json +version=3.10.2 +release=1 +source=(https://github.com/nlohmann/json/archive/v$version/$name-$version.tar.gz) + +build() { + prt-get isinst ninja && PKGMK_NLJSON+=' -G Ninja' + cmake -S json-$version -B build $PKGMK_NLJSON \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D CMAKE_INSTALL_LIBDIR=lib \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \ + -Wno-dev + cmake --build build + DESTDIR=$PKG cmake --install build +}
participants (1)
-
crux@crux.nu