Updated to Ruby 3.2.2

This commit is contained in:
RVG|lory 2023-04-07 22:00:30 +02:00 committed by GitHub
parent 86d897d580
commit 6fd6faedd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 0 deletions

20
packages/ruby/3.2.2/build.sh vendored Normal file
View file

@ -0,0 +1,20 @@
#!/bin/bash
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
# Download and extract ruby
curl "https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.tar.gz" -o ruby.tar.gz
tar xzf ruby.tar.gz --strip-components=1
rm ruby.tar.gz
# Autoconf based
./configure --prefix "$PREFIX"
make -j$(nproc)
make install -j$(nproc)
# Cleanup
cd ..
rm -rf build

4
packages/ruby/3.2.2/environment vendored Normal file
View file

@ -0,0 +1,4 @@
#!/bin/bash
# Path to ruby binary
export PATH=$PWD/bin:$PATH

5
packages/ruby/3.2.2/metadata.json vendored Normal file
View file

@ -0,0 +1,5 @@
{
"language": "ruby",
"version": "3.2.2",
"aliases": ["rb"]
}

4
packages/ruby/3.2.2/run vendored Normal file
View file

@ -0,0 +1,4 @@
#!/bin/bash
# Run ruby script with args
ruby "$@"

1
packages/ruby/3.2.2/test.rb vendored Normal file
View file

@ -0,0 +1 @@
puts("OK")