Martin Jansa 4568892877 ruby: add missing dependency on ruby-native
* without ruby available on host it fails:
  | NOTE: make LIBRUBYARG=-lruby-static
  |       CC = i586-starfish-linux-gcc  -m32 -march=i586 --sysroot=/OE/sysroots/qemux86
  |       LD = i586-starfish-linux-ld --sysroot=/OE/sysroots/qemux86
  |       LDSHARED = i586-starfish-linux-gcc  -m32 -march=i586 --sysroot=/OE/sysroots/qemux86 -shared
  |       CFLAGS = -O2 -pipe -g -feliminate-unused-debug-types -fPIC
  |       XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
  |       CPPFLAGS =   -I. -I.ext/include/i386-linux -I./include -I.
  |       DLDFLAGS = -Wl,-soname,libruby.so.1.9
  |       SOLIBS = -lpthread -lrt -ldl -lcrypt -lm
  | executable host ruby is required. use --with-baseruby option.
  | make: *** [.rbconfig.time] Error 1

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-07-08 10:35:55 +02:00

48 lines
1.3 KiB
BlitzBasic

require ruby.inc
PR = "${INC_PR}.0"
DEPENDS += "libyaml ruby-native"
SRC_URI += "\
file://0001-socket-extconf-hardcode-wide-getaddr-info-test-outco.patch \
file://ruby-1.9.3-always-use-i386.patch \
file://ruby-1.9.3-disable-versioned-paths.patch \
file://ruby-1.9.3-fix-s390x-build.patch \
file://ruby-1.9.3-rubygems-1.8.11-uninstaller.patch \
file://ruby-1.9.3-custom-rubygems-location.patch \
file://rubygems-1.8.11-binary-extensions.patch \
file://ruby-1.9.3-mkmf-verbose.patch \
file://ruby-1.9.3-install-cross.patch \
"
SRC_URI[md5sum] = "993c72f7f805a9eb453f90b0b7fe0d2b"
SRC_URI[sha256sum] = "d192d1afc46a7ef27b9d0a3c7a67b509048984db2c38907aa82641bdf980acf4"
EXTRA_OECONF = "\
--enable-wide-getaddrinfo \
--with-rubygemsdir=${datadir}/rubygems \
--disable-versioned-paths \
--disable-rpath \
--enable-shared \
"
EXTRA_OEMAKE = " \
LIBRUBYARG='-lruby-static' \
"
do_install() {
if [ ${PN} = "ruby" ]; then
oe_runmake 'DESTDIR=${D}' install install-cross
else
oe_runmake 'DESTDIR=${D}' install
fi
}
FILES_${PN} += "${datadir}/rubygems \
${datadir}/ri"
FILES_${PN}-dbg += "${libdir}/ruby/*/.debug \
${libdir}/ruby/*/*/.debug \
${libdir}/ruby/*/*/*/.debug"
BBCLASSEXTEND = "native"