pantry/projects/rapidjson.org/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

31 lines
678 B
YAML

distributable:
url: https://github.com/Tencent/rapidjson/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
versions:
github: Tencent/rapidjson/tags
strip: /^v/
build:
dependencies:
cmake.org: '*'
doxygen.nl: 1
script: |
cmake . $ARGS
sed -i.bak \
-e "s/-march=native//" \
-e "s/-Werror//" \
CMakeLists.txt
rm CMakeLists.txt.bak
make . install
env:
ARGS:
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{prefix}}
- -DRAPIDJSON_BUILD_EXAMPLES=OFF
test:
dependencies:
script: |
c++ ./capitalize.cpp -o capitalize
test $(echo '{"a":"b"}' | ./capitalize) = '{"A":"B"}'