From 63b7d747b256ba847f1807ab15a9cf92b8bbee95 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 16 Mar 2023 17:26:25 -0400 Subject: [PATCH] swig expects to find `config.h` without arch prefixes And well, what are they for anyway? --- projects/ruby-lang.org/package.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/projects/ruby-lang.org/package.yml b/projects/ruby-lang.org/package.yml index 150cdfd2..4afaddd3 100644 --- a/projects/ruby-lang.org/package.yml +++ b/projects/ruby-lang.org/package.yml @@ -20,7 +20,15 @@ build: script: | patch -p1 < props/mkconfig.rb.diff - ./configure --prefix="{{prefix}}" --enable-load-relative --disable-rubygems --without-gmp + ./configure \ + --prefix="{{prefix}}" \ + --enable-load-relative \ + --disable-rubygems \ + --without-gmp \ + --with-rubyhdrdir={{prefix}}/include \ + --with-rubyarchhdrdir={{prefix}}/include \ + --with-rubyarchprefix={{prefix}}/lib + make --jobs {{hw.concurrency}} install cd "{{prefix}}/bin" @@ -35,7 +43,7 @@ build: rm $shim.bak done - cd ../lib/ruby/{{version.major}}.{{version.minor}}.0 + cd ../lib/ruby/{{version.marketing}}.0 # ruby itself provides the gems for these and we don’t want that # we want to pkg them ourselves as part of rubygems.org @@ -47,6 +55,11 @@ build: fi ln -s ../../../../rubygems.org/v\*/lib/$x done + + rm -rf {{prefix}}/share/ri + rm -rf {{prefix}}/share/doc + rmdir {{prefix}}/lib/ruby/site_ruby + rmdir {{prefix}}/lib/ruby/vendor_ruby env: shims: - erb