Skip to content

Commit c61695e

Browse files
koki-developclaude
andauthored
Add Ruby 3.4.8 language package (#25)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 6bb451b commit c61695e

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

packages/ruby/3.4.8/build.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
PREFIX=$(realpath $(dirname $0))
4+
5+
mkdir -p build
6+
cd build
7+
8+
# Download and extract ruby
9+
curl "https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.8.tar.gz" -o ruby.tar.gz
10+
tar xzf ruby.tar.gz --strip-components=1
11+
rm ruby.tar.gz
12+
13+
# Autoconf based
14+
./configure --prefix "$PREFIX"
15+
make -j$(nproc)
16+
make install -j$(nproc)
17+
18+
# Cleanup
19+
cd ..
20+
rm -rf build

packages/ruby/3.4.8/environment

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
# Path to ruby binary
4+
export PATH=$PWD/bin:$PATH

packages/ruby/3.4.8/metadata.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"language": "ruby",
3+
"version": "3.4.8",
4+
"aliases": ["ruby3", "rb"]
5+
}

packages/ruby/3.4.8/run

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
# Run ruby script with args
4+
ruby "$@"

packages/ruby/3.4.8/test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
puts("OK")

0 commit comments

Comments
 (0)