From cd7aac3dc2bbf5924daf1911db28aecc84faa62a Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 3 Oct 2022 11:37:28 -0400 Subject: [PATCH] +ruby (#176) * +ruby * wip --- projects/pyyaml.org/package.yml | 22 ++++++++++++++++++++++ projects/pyyaml.org/test.c | 8 ++++++++ projects/ruby-lang.org/package.yml | 26 ++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 projects/pyyaml.org/package.yml create mode 100644 projects/pyyaml.org/test.c create mode 100644 projects/ruby-lang.org/package.yml diff --git a/projects/pyyaml.org/package.yml b/projects/pyyaml.org/package.yml new file mode 100644 index 00000000..cd147297 --- /dev/null +++ b/projects/pyyaml.org/package.yml @@ -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 diff --git a/projects/pyyaml.org/test.c b/projects/pyyaml.org/test.c new file mode 100644 index 00000000..cb968879 --- /dev/null +++ b/projects/pyyaml.org/test.c @@ -0,0 +1,8 @@ + #include + +int main() { + yaml_parser_t parser; + yaml_parser_initialize(&parser); + yaml_parser_delete(&parser); + return 0; +} diff --git a/projects/ruby-lang.org/package.yml b/projects/ruby-lang.org/package.yml new file mode 100644 index 00000000..34e70f47 --- /dev/null +++ b/projects/ruby-lang.org/package.yml @@ -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!"' \ No newline at end of file