pantry/projects/rubygems.org/package.yml
Max Howell 4eb1cca264
ruby/gems fixes (#2184)
hopefully got all the edgecases this time
2023-06-16 09:33:37 -04:00

79 lines
1.8 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'
runtime:
env:
RUBYLIB: ${{prefix}}/lib
build:
dependencies:
gnu.org/patch: '*'
script:
- ruby setup.rb
--prefix={{prefix}}
--env-shebang
--no-ri
--no-rdoc
- run: cp $SRCROOT/props/proxy .
working-directory: ${{prefix}}/shim
- run: |
patch -p1 < "$SRCROOT"/props/fit-n-finish.patch
patch -p1 < "$SRCROOT"/props/fit-n-finish.2.patch
working-directory: ${{prefix}}
# 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
working-directory: ${{prefix}}/bin
- 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:
# for debug
- gem env
- |
gem install awesome_print --verbose
ruby -e 'require "rubygems"' -e 'require "awesome_print"' -e'ap $LOAD_PATH'
- |
gem install hexapdf --verbose
if [ -w /usr/local/lib/ruby/ ]; then
v="$(/usr/local/bin/hexapdf version | cut -d' ' -f2)"
test -d /usr/local/lib/ruby/gems/$vRUBY/gems/hexapdf-$v
else
v="$(~/.local/bin/hexapdf version | cut -d' ' -f2)"
test -d ~/.gem/ruby/$vRUBY/gems/hexapdf-$v
fi
provides:
- bin/bundle
- bin/bundler
- bin/gem