fix(ruby-lang.org) (#4875)

* fix(ruby-lang.org)

it appears there are a few hardcoded paths from ci that made it into the
packaged rbconfig.rb. this breaks installation of gems that require
native compilation. so, lets patch that up

* fix(ruby-lang.org): actually, don't use brewkit stubs for install & cc

* fix(ruby): make this a little more explicit
This commit is contained in:
Scott J. Goldman 2024-01-18 12:16:26 -08:00 committed by GitHub
parent f0bf8f9b4a
commit 186ee41804
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -80,6 +80,8 @@ build:
- run: sed -i.bak
-e 's|$(DESTDIR){{prefix}}|$(topdir)|g'
-e 's|CONFIG\["topdir"\] = .*|CONFIG\["topdir"\] = TOPDIR|g'
-e 's|CONFIG\["INSTALL"\] =.*|CONFIG\["INSTALL"\] = "/usr/bin/install"|g'
-e 's|CONFIG\["MJIT_CC"\] =.*|CONFIG\["MJIT_CC"\] = "/usr/bin/cc"|g'
rbconfig.rb
working-directory: ${{prefix}}/lib/ruby/{{version.marketing}}.0
env: