pantry/projects/github.com/jbeder/yaml-cpp/package.yml

36 lines
800 B
YAML
Raw Normal View History

2023-08-09 18:27:04 +03:00
distributable:
2023-08-11 03:44:49 +03:00
# Tag format changed with v0.8.0
#url: https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-{{version}}.tar.gz
url: https://github.com/jbeder/yaml-cpp/archive/{{version}}.tar.gz
2023-08-09 18:27:04 +03:00
strip-components: 1
versions:
github: jbeder/yaml-cpp
strip: /^yaml-cpp-/
build:
dependencies:
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
2023-08-09 18:27:04 +03:00
- make --jobs {{hw.concurrency}} install
test:
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