1
0
forked from ports/contrib

rapidjson: initial commit, version 1.1.0

This commit is contained in:
Tim Biermann 2020-06-07 15:12:35 +00:00
parent a2af7eff4b
commit 8a92d6ffc5
3 changed files with 77 additions and 0 deletions

49
rapidjson/.footprint Normal file
View File

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

5
rapidjson/.signature Normal file
View File

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

23
rapidjson/Pkgfile Normal file
View File

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