* +ruby

* wip
This commit is contained in:
Max Howell 2022-10-03 11:37:28 -04:00 committed by GitHub
parent 286947912d
commit cd7aac3dc2
3 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,22 @@
distributable:
url: http://pyyaml.org/download/libyaml/yaml-{{version}}.tar.gz
strip-components: 1
versions:
github: yaml/libyaml/tags
# strip: /^v/
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
./configure --prefix="{{prefix}}"
make --jobs {{hw.concurrency}} install
test:
dependencies:
tea.xyz/gx/cc: c99
script: |
cc test.c -lyaml
./a.out

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,26 @@
distributable:
url: https://cache.ruby-lang.org/pub/ruby/{{version.marketing}}/ruby-{{version}}.tar.gz
strip-components: 1
versions:
- 3.1.2
- 2.7.6
#TODO github: ruby/ruby/tags
dependencies:
openssl.org: ^1.1
pyyaml.org: ^0.2
zlib.net: 1
build:
dependencies:
freedesktop.org/pkg-config: ^0.29
gnu.org/gettext: ^0.21
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
./configure --prefix="{{prefix}}"
make --jobs {{hw.concurrency}} install
test:
ruby -e 'puts "Hello World!"'