Merge pull request #15 from teaxyz/+rubygems.org

+rubygems.org
This commit is contained in:
Chris Waters 2022-11-02 19:01:09 -04:00 committed by GitHub
commit 89113a8709
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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