pyyaml.org/libyaml (#1778)

* new file:   projects/pyyaml.org/libyaml/fixture.c
	new file:   projects/pyyaml.org/libyaml/package.yml

* should work without `-L` (`tea` should handle)

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Andrew 2023-05-01 20:17:38 +03:00 committed by GitHub
parent 939e4b36ac
commit 6e6422de35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#include <yaml.h>
int main() {
yaml_parser_t parser;
yaml_parser_initialize(&parser);
yaml_parser_delete(&parser);
return 0;
}

View file

@ -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