mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 04:05:06 +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: |
|
script: |
|
||||||
patch -p1 < props/mkconfig.rb.diff
|
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
|
make --jobs {{hw.concurrency}} install
|
||||||
|
|
||||||
cd "{{prefix}}/bin"
|
cd "{{prefix}}/bin"
|
||||||
|
@ -35,7 +43,7 @@ build:
|
||||||
rm $shim.bak
|
rm $shim.bak
|
||||||
done
|
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
|
# ruby itself provides the gems for these and we don’t want that
|
||||||
# we want to pkg them ourselves as part of rubygems.org
|
# we want to pkg them ourselves as part of rubygems.org
|
||||||
|
@ -47,6 +55,11 @@ build:
|
||||||
fi
|
fi
|
||||||
ln -s ../../../../rubygems.org/v\*/lib/$x
|
ln -s ../../../../rubygems.org/v\*/lib/$x
|
||||||
done
|
done
|
||||||
|
|
||||||
|
rm -rf {{prefix}}/share/ri
|
||||||
|
rm -rf {{prefix}}/share/doc
|
||||||
|
rmdir {{prefix}}/lib/ruby/site_ruby
|
||||||
|
rmdir {{prefix}}/lib/ruby/vendor_ruby
|
||||||
env:
|
env:
|
||||||
shims:
|
shims:
|
||||||
- erb
|
- erb
|
||||||
|
|
Loading…
Reference in a new issue