pantry/projects/rubygems.org/package.yml

62 lines
1.6 KiB
YAML
Raw Normal View History

2022-11-02 23:38:19 +03:00
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: '*'
2023-06-13 22:31:03 +03:00
script:
- ruby setup.rb --prefix={{prefix}} --env-shebang --no-ri --no-rdoc
2023-03-19 15:01:42 +03:00
2023-06-13 22:31:03 +03:00
- working-directory: ${{prefix}}/shim
run: cp $SRCROOT/props/proxy .
2023-03-19 15:01:42 +03:00
2023-06-13 22:31:03 +03:00
- working-directory: ${{prefix}}
run: patch -p1 < "$SRCROOT"/props/fit-n-finish.patch
2023-06-13 22:31:03 +03:00
- 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
2023-03-19 15:01:42 +03:00
2023-06-13 22:31:03 +03:00
- 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
2023-03-19 15:01:42 +03:00
2023-06-13 22:31:03 +03:00
- rmdir {{prefix}}/plugins
2022-11-02 23:38:19 +03:00
test:
2023-02-04 09:57:26 +03:00
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
env:
HOME: $PWD
2023-06-13 22:31:03 +03:00
vRUBY: ${{deps.ruby-lang.org.version.marketing}}.0
2022-11-02 23:38:19 +03:00
script: |
gem install awesome_print
2023-02-04 09:57:26 +03:00
ruby -e 'require "rubygems"' -e 'require "awesome_print"' -e'ap $LOAD_PATH'
gem install hexapdf
2023-03-19 15:01:42 +03:00
v="$(~/.local/bin/hexapdf version | cut -d' ' -f2)"
2023-06-13 22:31:03 +03:00
test -d ~/.gem/ruby/$vRUBY/gems/hexapdf-$v #FIXME ruby version
2023-03-19 15:01:42 +03:00
gem install bundle
2023-06-13 22:31:03 +03:00
test -d ~/.gem/ruby/{{deps.ruby-lang.org.version.marketing}}.0/gems/bundle-0.0.1
2023-03-19 15:01:42 +03:00
test -f ~/.local/bin/bundle
~/.local/bin/bundle --version
2022-11-02 23:38:19 +03:00
provides:
- bin/bundle
- bin/bundler
- bin/gem