mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
swig expects to find config.h
without arch prefixes
And well, what are they for anyway?
This commit is contained in:
parent
9600dcb047
commit
63b7d747b2
1 changed files with 15 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue