diff --git a/projects/pyyaml.org/libyaml/fixture.c b/projects/pyyaml.org/libyaml/fixture.c new file mode 100644 index 00000000..b3758862 --- /dev/null +++ b/projects/pyyaml.org/libyaml/fixture.c @@ -0,0 +1,8 @@ +#include + +int main() { + yaml_parser_t parser; + yaml_parser_initialize(&parser); + yaml_parser_delete(&parser); + return 0; +} \ No newline at end of file diff --git a/projects/pyyaml.org/libyaml/package.yml b/projects/pyyaml.org/libyaml/package.yml new file mode 100644 index 00000000..649ba0ae --- /dev/null +++ b/projects/pyyaml.org/libyaml/package.yml @@ -0,0 +1,25 @@ +distributable: + url: https://github.com/yaml/libyaml/releases/download/{{version}}/yaml-{{version}}.tar.gz + strip-components: 1 + +versions: + github: yaml/libyaml + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + gnu.org/libtool: '*' + gnu.org/autoconf: '*' + script: | + ./configure $ARGS + make --jobs {{ hw.concurrency }} install + env: + ARGS: + - --prefix="{{prefix}}" + +test: + dependencies: + tea.xyz/gx/cc: c99 + script: + cc fixture.c -lyaml -o test