+rubygems.org

This commit is contained in:
Jacob Heider 2022-11-02 16:38:19 -04:00
parent 97c055f0ea
commit ffc381046c
No known key found for this signature in database
GPG key ID: A98011B5713535BF
2 changed files with 58 additions and 3 deletions

View file

@ -21,8 +21,36 @@ build:
git-scm.org: 2 git-scm.org: 2
script: | script: |
git apply props/tolerant-shebang.diff git apply props/tolerant-shebang.diff
./configure --prefix="{{prefix}}" ./configure --prefix="{{prefix}}" --enable-load-relative
make --jobs {{hw.concurrency}} install make --jobs {{hw.concurrency}} install
test: cd "{{prefix}}"/bin
ruby -e 'puts "Hello World!"'
# 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
companions:
rubygems.org: '*'

View file

@ -0,0 +1,27 @@
distributable:
url: https://github.com/rubygems/rubygems/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
versions:
github: rubygems/rubygems
dependencies:
ruby-lang.org: '>=2.3'
build:
script: |
ruby setup.rb --prefix={{prefix}} --env-shebang
test:
script: |
gem install awesome_print
ruby -e 'require "awesome_print"' -e 'ap $LOAD_PATH'
provides:
- bin/bundle
- bin/bundler
- bin/gem
- bin/rake
- bin/rbs
- bin/rdbg
- bin/typeprof