mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 10:35:17 +03:00
d60a5090f9
* +rapidjson * don't mind me; i'm just weird about extra invocations --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
35 lines
749 B
YAML
35 lines
749 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: '*'
|
|
tea.xyz/gx/cc: c99
|
|
tea.xyz/gx/make: '*'
|
|
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:
|
|
tea.xyz/gx/cc: c99
|
|
script: |
|
|
c++ ./capitalize.cpp -o capitalize
|
|
test $(echo '{"a":"b"}' | ./capitalize) = '{"A":"B"}'
|