[crux-commits] ports/contrib (3.5): rapidjson: initial commit, version 1.1.0

crux at crux.nu crux at crux.nu
Sun Jun 7 16:21:37 UTC 2020


commit 8a92d6ffc583194c8afac8d7bb00fdf2c5aa468a
Author: Tim Biermann <tbier at posteo.de>
Date:   Sun Jun 7 15:12:35 2020 +0000

    rapidjson: initial commit, version 1.1.0

diff --git a/rapidjson/.footprint b/rapidjson/.footprint
new file mode 100644
index 000000000..4c5f04733
--- /dev/null
+++ b/rapidjson/.footprint
@@ -0,0 +1,49 @@
+drwxr-xr-x	root/root	usr/
+drwxr-xr-x	root/root	usr/include/
+drwxr-xr-x	root/root	usr/include/rapidjson/
+-rw-r--r--	root/root	usr/include/rapidjson/allocators.h
+-rw-r--r--	root/root	usr/include/rapidjson/document.h
+-rw-r--r--	root/root	usr/include/rapidjson/encodedstream.h
+-rw-r--r--	root/root	usr/include/rapidjson/encodings.h
+drwxr-xr-x	root/root	usr/include/rapidjson/error/
+-rw-r--r--	root/root	usr/include/rapidjson/error/en.h
+-rw-r--r--	root/root	usr/include/rapidjson/error/error.h
+-rw-r--r--	root/root	usr/include/rapidjson/filereadstream.h
+-rw-r--r--	root/root	usr/include/rapidjson/filewritestream.h
+-rw-r--r--	root/root	usr/include/rapidjson/fwd.h
+drwxr-xr-x	root/root	usr/include/rapidjson/internal/
+-rw-r--r--	root/root	usr/include/rapidjson/internal/biginteger.h
+-rw-r--r--	root/root	usr/include/rapidjson/internal/diyfp.h
+-rw-r--r--	root/root	usr/include/rapidjson/internal/dtoa.h
+-rw-r--r--	root/root	usr/include/rapidjson/internal/ieee754.h
+-rw-r--r--	root/root	usr/include/rapidjson/internal/itoa.h
+-rw-r--r--	root/root	usr/include/rapidjson/internal/meta.h
+-rw-r--r--	root/root	usr/include/rapidjson/internal/pow10.h
+-rw-r--r--	root/root	usr/include/rapidjson/internal/regex.h
+-rw-r--r--	root/root	usr/include/rapidjson/internal/stack.h
+-rw-r--r--	root/root	usr/include/rapidjson/internal/strfunc.h
+-rw-r--r--	root/root	usr/include/rapidjson/internal/strtod.h
+-rw-r--r--	root/root	usr/include/rapidjson/internal/swap.h
+-rw-r--r--	root/root	usr/include/rapidjson/istreamwrapper.h
+-rw-r--r--	root/root	usr/include/rapidjson/memorybuffer.h
+-rw-r--r--	root/root	usr/include/rapidjson/memorystream.h
+drwxr-xr-x	root/root	usr/include/rapidjson/msinttypes/
+-rw-r--r--	root/root	usr/include/rapidjson/msinttypes/inttypes.h
+-rw-r--r--	root/root	usr/include/rapidjson/msinttypes/stdint.h
+-rw-r--r--	root/root	usr/include/rapidjson/ostreamwrapper.h
+-rw-r--r--	root/root	usr/include/rapidjson/pointer.h
+-rw-r--r--	root/root	usr/include/rapidjson/prettywriter.h
+-rw-r--r--	root/root	usr/include/rapidjson/rapidjson.h
+-rw-r--r--	root/root	usr/include/rapidjson/reader.h
+-rw-r--r--	root/root	usr/include/rapidjson/schema.h
+-rw-r--r--	root/root	usr/include/rapidjson/stream.h
+-rw-r--r--	root/root	usr/include/rapidjson/stringbuffer.h
+-rw-r--r--	root/root	usr/include/rapidjson/writer.h
+drwxr-xr-x	root/root	usr/lib/
+drwxr-xr-x	root/root	usr/lib/cmake/
+drwxr-xr-x	root/root	usr/lib/cmake/RapidJSON/
+-rw-r--r--	root/root	usr/lib/cmake/RapidJSON/RapidJSONConfig.cmake
+-rw-r--r--	root/root	usr/lib/cmake/RapidJSON/RapidJSONConfigVersion.cmake
+drwxr-xr-x	root/root	usr/lib/pkgconfig/
+-rw-r--r--	root/root	usr/lib/pkgconfig/RapidJSON.pc
+drwxr-xr-x	root/root	usr/share/
diff --git a/rapidjson/.signature b/rapidjson/.signature
new file mode 100644
index 000000000..03b561e96
--- /dev/null
+++ b/rapidjson/.signature
@@ -0,0 +1,5 @@
+untrusted comment: verify with /etc/ports/contrib.pub
+RWSagIOpLGJF30cZyGbeQJ5plGp86cYDmKY9h2ZVxc5Jaus2rumbREbYhGv6uhJS0KOaH5SL4gZFBKBQ8pNkmThEgQETLyiRRgs=
+SHA256 (Pkgfile) = 44f669dc627a6b74e10855556364583ecf898185959493ce8a526fc2fcaadfd4
+SHA256 (.footprint) = b4bef9b0129fa2f3800eb41e617931f8ff9e9f4ed407c31a26bceafbc4e53d9e
+SHA256 (rapidjson-1.1.0.tar.gz) = bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e
diff --git a/rapidjson/Pkgfile b/rapidjson/Pkgfile
new file mode 100644
index 000000000..935c2f618
--- /dev/null
+++ b/rapidjson/Pkgfile
@@ -0,0 +1,23 @@
+# Description: A fast JSON parser/generator for C++ with both SAX/DOM style API
+# URL: https://github.com/miloyip/rapidjson
+# Maintainer: Tim Biermann, tbier at posteo dot de
+# Depends on: cmake
+
+name=rapidjson
+version=1.1.0
+release=2
+source=(https://github.com/Tencent/rapidjson/archive/v$version/$name-$version.tar.gz)
+
+build() {
+  find -name CMakeLists.txt | xargs sed -e 's|-Werror||' -i # Don't use -Werror
+  [[ -e /usr/lib/ccache ]] && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
+  cmake -S$name-$version -Bbuild \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DRAPIDJSON_BUILD_DOC=OFF \
+    -DRAPIDJSON_BUILD_EXAMPLES=OFF \
+    -DRAPIDJSON_BUILD_TESTS=OFF
+  cmake --build build
+  DESTDIR=$PKG cmake --build build --target install
+  rm -r $PKG/usr/share/doc
+}


More information about the crux-commits mailing list