7 SRCREV = "1a828cad2d559e2ff55a5f01cc5de217b9c9bc2b"
10 git://github.com/ruby/spec.git;protocol=https;rev=${SRCREV};destsuffix=spec/rubyspec \
11 file://ruby-CVE-2017-9228.patch \
12 file://ext.socket.extmk.patch \
15 SRC_URI[md5sum] = "05db49992d01731fee023cad09bb4e52"
16 SRC_URI[sha256sum] = "8690bd6b4949c333b3919755c4e48885dbfed6fd055fe9ef89930bde0d2376f8"
18 # it's unknown to configure script, but then passed to extconf.rb
19 # maybe it's not really needed as we're hardcoding the result with
20 # 0001-socket-extconf-hardcode-wide-getaddr-info-test-outco.patch
21 UNKNOWN_CONFIGURE_WHITELIST += "--enable-wide-getaddrinfo"
25 PACKAGECONFIG[valgrind] = "--with-valgrind=yes, --with-valgrind=no, valgrind"
26 #PACKAGECONFIG[gmp] = "--with-gmp=yes, --with-gmp=no, gmp"
28 EXTRA_AUTORECONF += "--exclude=aclocal"
32 --disable-install-doc \
36 --enable-load-relative \
40 LIBRUBYARG='-lruby-static' \
43 do_configure_prepend() {
46 cp -rf ${WORKDIR}/spec ${S}
51 oe_runmake 'DESTDIR=${D}' install
54 do_install_append_class-target () {
55 # Find out rbconfig.rb from .installed.list
56 rbconfig_rb=`grep rbconfig.rb ${B}/.installed.list`
57 # Remove build host directories
58 sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' \
59 -e s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \
60 -e 's|${DEBUG_PREFIX_MAP}||g' \
61 -e 's:${HOSTTOOLS_DIR}/::g' \
62 -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
63 -e 's:${RECIPE_SYSROOT}::g' \
64 -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
70 cp -rf ${S}/test ${D}${PTEST_PATH}/
71 cp -r ${S}/include ${D}/${libdir}/ruby/
72 test_case_rb=`grep rubygems/test_case.rb ${B}/.installed.list`
73 sed -i -e 's:../../../test/:../../../ptest/test/:g' ${D}/$test_case_rb
76 FILES_${PN} += "${datadir}/rubygems"
79 BBCLASSEXTEND = "native nativesdk"
81 # INSANE_SKIP_${PN} += "ldflags"