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:
|
2023-02-17 15:41:07 +03:00
|
|
|
dependencies:
|
|
|
|
gnu.org/patch: '*'
|
2022-11-02 23:38:19 +03:00
|
|
|
script: |
|
2023-02-17 15:41:07 +03:00
|
|
|
ruby setup.rb --prefix={{prefix}} --env-shebang --no-ri --no-rdoc
|
|
|
|
cd "{{prefix}}"
|
|
|
|
patch -p1 < "$SRCROOT"/props/fit-n-finish.patch
|
|
|
|
|
|
|
|
runtime:
|
|
|
|
env:
|
|
|
|
# HACK that is only required for this ruby package
|
|
|
|
# since we cannot use `gem` to build `gem` itself
|
|
|
|
RUBYLIB: ${{prefix}}/lib
|
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: '*'
|
2023-02-17 15:41:07 +03:00
|
|
|
env:
|
|
|
|
HOME: $PWD
|
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'
|
2023-02-17 15:41:07 +03:00
|
|
|
#TODO test -d ~/.gem/ruby/{{deps.ruby.version.major}}.{{deps.ruby.version.minor}}.0/gems/hexapdf-0.28.0
|
2023-01-03 17:32:07 +03:00
|
|
|
gem install hexapdf
|
2023-02-17 15:41:07 +03:00
|
|
|
~/.local/bin/hexapdf version
|
2022-11-02 23:38:19 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/bundle
|
|
|
|
- bin/bundler
|
|
|
|
- bin/gem
|
|
|
|
- bin/rake
|
|
|
|
- bin/rbs
|
|
|
|
- bin/rdbg
|
|
|
|
- bin/typeprof
|