Skip to content

Commit

Permalink
+ruby (#176)
Browse files Browse the repository at this point in the history
* +ruby

* wip
  • Loading branch information
mxcl authored Oct 3, 2022
1 parent 2869479 commit cd7aac3
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
22 changes: 22 additions & 0 deletions projects/pyyaml.org/package.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions projects/pyyaml.org/test.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include <yaml.h>

int main() {
yaml_parser_t parser;
yaml_parser_initialize(&parser);
yaml_parser_delete(&parser);
return 0;
}
26 changes: 26 additions & 0 deletions projects/ruby-lang.org/package.yml
Original file line number Diff line number Diff line change
@@ -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!"'

0 comments on commit cd7aac3

Please sign in to comment.