ruby: fix cross build.

This commit is contained in:
Juan RP 2013-05-16 09:19:02 +02:00
parent ef34bea761
commit 44cb3cde1b
1 changed files with 5 additions and 1 deletions

View File

@ -25,8 +25,12 @@ hostmakedepends="pkg-config bison groff doxygen graphviz"
makedepends="readline-devel libffi-devel openssl-devel gdbm-devel libyaml-devel pango-devel" makedepends="readline-devel libffi-devel openssl-devel gdbm-devel libyaml-devel pango-devel"
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" ruby>=${version}" hostmakedepends+=" ruby>=${version} ruby-rdoc>=${version} ruby-ri>=${version}"
configure_args+=" --with-baseruby=/usr/bin/ruby" configure_args+=" --with-baseruby=/usr/bin/ruby"
pre_install() {
# XXX wants to use target ruby
sed -e 's,$(Q) $(RUBY) $(GEN),$(Q) ruby $(GEN),g' -i ext/ripper/Makefile
}
fi fi
ruby-devel_package() { ruby-devel_package() {