pkg(ruby-2.5.1): Added ruby 2.5.1

This commit is contained in:
Dan Vargas 2021-03-13 12:22:14 -06:00 committed by Thomas
parent 2ab508b4d2
commit 5fbc0d7f1b
5 changed files with 30 additions and 0 deletions

19
packages/ruby/2.5.1/build.sh vendored Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
curl "https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.1.tar.gz" -o ruby.tar.gz
tar xzf ruby.tar.gz --strip-components=1
rm ruby.tar.gz
./configure --prefix "$PREFIX"
make -j$(nproc)
make install -j$(nproc)
cd ..
rm -rf build

1
packages/ruby/2.5.1/environment vendored Normal file
View File

@ -0,0 +1 @@
export PATH=$PWD/bin:$PATH

6
packages/ruby/2.5.1/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "ruby",
"version": "2.5.1",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["ruby", "rb"]
}

3
packages/ruby/2.5.1/run vendored Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
ruby $*

1
packages/ruby/2.5.1/test.rb vendored Normal file
View File

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