mirror of
https://github.com/ivabus/pantry
synced 2024-09-20 16:50:50 +03:00
38 lines
790 B
YAML
38 lines
790 B
YAML
|
distributable:
|
||
|
url: https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-{{version}}.tar.gz
|
||
|
strip-components: 1
|
||
|
|
||
|
versions:
|
||
|
github: jbeder/yaml-cpp
|
||
|
strip: /^yaml-cpp-/
|
||
|
|
||
|
build:
|
||
|
dependencies:
|
||
|
tea.xyz/gx/cc: c99
|
||
|
tea.xyz/gx/make: '*'
|
||
|
cmake.org: ^3
|
||
|
working-directory: build
|
||
|
script:
|
||
|
- cmake ..
|
||
|
-DCMAKE_INSTALL_PREFIX={{prefix}}
|
||
|
-DYAML_BUILD_SHARED_LIBS=ON
|
||
|
-DYAML_CPP_BUILD_TESTS=OFF
|
||
|
-DCMAKE_BUILD_TYPE=Release
|
||
|
|
||
|
- make --jobs {{hw.concurrency}} install
|
||
|
|
||
|
test:
|
||
|
dependencies:
|
||
|
tea.xyz/gx/cc: c99
|
||
|
fixture: |
|
||
|
#include <yaml-cpp/yaml.h>
|
||
|
int main() {
|
||
|
YAML::Node node = YAML::Load("[0, 0, 0]");
|
||
|
node[0] = 1;
|
||
|
return 0;
|
||
|
}
|
||
|
script: |
|
||
|
mv $FIXTURE b.cpp
|
||
|
c++ -std=c++11 -lyaml-cpp b.cpp
|
||
|
./a.out
|