Skip to content

Commit b087b00

Browse files
committed
fix(ruby)
closes #8718
1 parent 2c6718b commit b087b00

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

projects/ruby-lang.org/package.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ build:
2626
script:
2727
- patch -p1 -F5 < props/mkconfig.rb.diff
2828

29-
- ./configure $ARGS
29+
- CC=cc ./configure $ARGS
3030

3131
# clang17 doesn't like [[maybe_unused]] on types
3232
# fix cribbed from https://github.com/ruby/ruby/pull/4603/commits/fbdff085ef3c8a56e0a33404e8795879e3167549
@@ -79,10 +79,21 @@ build:
7979
# weirdly files get put here and we can't figure out how to stop it
8080
- run: |
8181
if test -d pkgconfig; then rm -rf pkgconfig; fi
82-
mv *-{{hw.platform}}*/* .
83-
rmdir *-{{hw.platform}}*
82+
if test -d *-{{hw.platform}}* ; then
83+
mv *-{{hw.platform}}*/* .
84+
rmdir *-{{hw.platform}}*
85+
fi
8486
working-directory: ${{prefix}}/lib
8587
if: '>=2.6'
88+
- run: |
89+
if test *-{{hw.platform}}*/bin/ruby ; then
90+
unlink bin/ruby
91+
mv *-{{hw.platform}}*/bin/ruby bin/ruby
92+
rmdir *-{{hw.platform}}*/bin
93+
rmdir *-{{hw.platform}}*
94+
fi
95+
working-directory: ${{prefix}}
96+
if: '>=3.4'
8697
8798
- run: sed -i
8899
-e 's|$(DESTDIR){{prefix}}|$(topdir)|g'

0 commit comments

Comments
 (0)