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'
|
|
|
|
|
|
2023-06-16 16:33:37 +03:00
|
|
|
|
runtime:
|
|
|
|
|
env:
|
|
|
|
|
RUBYLIB: ${{prefix}}/lib
|
|
|
|
|
|
2022-11-02 23:38:19 +03:00
|
|
|
|
build:
|
2023-02-17 15:41:07 +03:00
|
|
|
|
dependencies:
|
|
|
|
|
gnu.org/patch: '*'
|
2023-06-13 22:31:03 +03:00
|
|
|
|
script:
|
2023-06-16 16:33:37 +03:00
|
|
|
|
- ruby setup.rb
|
2023-10-02 03:41:57 +03:00
|
|
|
|
--prefix={{prefix}}
|
|
|
|
|
--env-shebang
|
|
|
|
|
--no-ri
|
|
|
|
|
--no-rdoc
|
2023-03-19 15:01:42 +03:00
|
|
|
|
|
2023-06-16 16:33:37 +03:00
|
|
|
|
- run: cp $SRCROOT/props/proxy .
|
|
|
|
|
working-directory: ${{prefix}}/shim
|
2023-03-19 15:01:42 +03:00
|
|
|
|
|
2023-06-16 16:33:37 +03:00
|
|
|
|
- run: |
|
|
|
|
|
patch -p1 < "$SRCROOT"/props/fit-n-finish.patch
|
|
|
|
|
patch -p1 < "$SRCROOT"/props/fit-n-finish.2.patch
|
|
|
|
|
working-directory: ${{prefix}}
|
2023-02-17 15:41:07 +03:00
|
|
|
|
|
2023-06-16 16:33:37 +03:00
|
|
|
|
# these are provided by ruby-lang.org
|
|
|
|
|
# we don’t know why they turn up here too…
|
|
|
|
|
- run: rm rake rbs rdbg typeprof
|
|
|
|
|
working-directory: ${{prefix}}/bin
|
2023-03-19 15:01:42 +03:00
|
|
|
|
|
2023-06-16 16:33:37 +03:00
|
|
|
|
# We’re not a “GEMHOME” since we *are* gem, so yeah instead
|
|
|
|
|
# we have a RUBYLIB hack via our proxy script
|
|
|
|
|
- run: |
|
2023-06-13 22:31:03 +03:00
|
|
|
|
for x in *; do
|
|
|
|
|
mv $x ../shim
|
|
|
|
|
ln -s ../shim/proxy $x
|
|
|
|
|
done
|
2023-06-16 16:33:37 +03:00
|
|
|
|
working-directory: ${{prefix}}/bin
|
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-17 15:41:07 +03:00
|
|
|
|
env:
|
|
|
|
|
HOME: $PWD
|
2023-06-13 22:31:03 +03:00
|
|
|
|
vRUBY: ${{deps.ruby-lang.org.version.marketing}}.0
|
2023-06-16 16:33:37 +03:00
|
|
|
|
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
|
2022-11-02 23:38:19 +03:00
|
|
|
|
|
|
|
|
|
provides:
|
|
|
|
|
- bin/bundle
|
|
|
|
|
- bin/bundler
|
|
|
|
|
- bin/gem
|