2022-10-03 18:37:28 +03:00
|
|
|
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: '*'
|
2022-10-17 22:55:08 +03:00
|
|
|
git-scm.org: 2
|
2022-10-03 18:37:28 +03:00
|
|
|
script: |
|
2022-10-17 22:55:08 +03:00
|
|
|
git apply props/tolerant-shebang.diff
|
2022-11-02 23:38:19 +03:00
|
|
|
./configure --prefix="{{prefix}}" --enable-load-relative
|
2022-10-03 18:37:28 +03:00
|
|
|
make --jobs {{hw.concurrency}} install
|
|
|
|
|
2022-11-02 23:38:19 +03:00
|
|
|
cd "{{prefix}}"/bin
|
|
|
|
|
|
|
|
# we provide these as `rubygems.org`
|
|
|
|
rm bundle bundler gem rake rbs rdbg typeprof
|
|
|
|
|
|
|
|
for shim in $shims; do
|
|
|
|
sed -i.bak -e 's_#!{{prefix}}/bin/ruby_#!/usr/bin/env ruby_' $shim
|
|
|
|
rm $shim.bak
|
|
|
|
done
|
|
|
|
env:
|
|
|
|
shims:
|
|
|
|
- erb
|
|
|
|
- irb
|
|
|
|
- racc
|
|
|
|
- rdoc
|
|
|
|
- ri
|
|
|
|
|
|
|
|
test: |
|
|
|
|
ruby -e 'puts "Hello World!"'
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/erb
|
|
|
|
- bin/irb
|
|
|
|
- bin/racc
|
|
|
|
- bin/rdoc
|
|
|
|
- bin/ri
|
|
|
|
- bin/ruby
|
|
|
|
|
2022-11-25 19:03:11 +03:00
|
|
|
interprets:
|
|
|
|
extensions: rb
|
|
|
|
args: ruby
|
|
|
|
|
2022-11-02 23:38:19 +03:00
|
|
|
companions:
|
|
|
|
rubygems.org: '*'
|