1
0
forked from ports/contrib

nlohmann-json: initial commit, version 3.10.2

This commit is contained in:
Tim Biermann 2021-08-28 20:03:17 +02:00
parent ddf5d11d6f
commit 888ed571b5
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 39 additions and 0 deletions

12
nlohmann-json/.footprint Normal file
View File

@ -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

5
nlohmann-json/.signature Normal file
View File

@ -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

22
nlohmann-json/Pkgfile Normal file
View File

@ -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
}