ruby: fix cross build.
This commit is contained in:
parent
ef34bea761
commit
44cb3cde1b
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue