mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
+rubygems.org
This commit is contained in:
parent
97c055f0ea
commit
ffc381046c
2 changed files with 58 additions and 3 deletions
|
@ -21,8 +21,36 @@ build:
|
|||
git-scm.org: 2
|
||||
script: |
|
||||
git apply props/tolerant-shebang.diff
|
||||
./configure --prefix="{{prefix}}"
|
||||
./configure --prefix="{{prefix}}" --enable-load-relative
|
||||
make --jobs {{hw.concurrency}} install
|
||||
|
||||
test:
|
||||
cd "{{prefix}}"/bin
|
||||
|
||||
# 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: '*'
|
||||
|
|
27
projects/rubygems.org/package.yml
Normal file
27
projects/rubygems.org/package.yml
Normal 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
|
Loading…
Reference in a new issue