pantry/projects/rubygems.org/package.yml
2023-06-13 15:31:03 -04:00

62 lines
1.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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:
dependencies:
gnu.org/patch: '*'
script:
- ruby setup.rb --prefix={{prefix}} --env-shebang --no-ri --no-rdoc
- working-directory: ${{prefix}}/shim
run: cp $SRCROOT/props/proxy .
- working-directory: ${{prefix}}
run: patch -p1 < "$SRCROOT"/props/fit-n-finish.patch
- working-directory: ${{prefix}}/bin
# these are provided by ruby-lang.org
# we dont know why they turn up here too…
run: rm rake rbs rdbg typeprof
- working-directory: ${{prefix}}/bin
# Were not a “GEMHOME” since we *are* gem, so yeah instead
# we have a RUBYLIB hack via our proxy script
run: |
for x in *; do
mv $x ../shim
ln -s ../shim/proxy $x
done
- rmdir {{prefix}}/plugins
test:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
env:
HOME: $PWD
vRUBY: ${{deps.ruby-lang.org.version.marketing}}.0
script: |
gem install awesome_print
ruby -e 'require "rubygems"' -e 'require "awesome_print"' -e'ap $LOAD_PATH'
gem install hexapdf
v="$(~/.local/bin/hexapdf version | cut -d' ' -f2)"
test -d ~/.gem/ruby/$vRUBY/gems/hexapdf-$v #FIXME ruby version
gem install bundle
test -d ~/.gem/ruby/{{deps.ruby-lang.org.version.marketing}}.0/gems/bundle-0.0.1
test -f ~/.local/bin/bundle
~/.local/bin/bundle --version
provides:
- bin/bundle
- bin/bundler
- bin/gem