diff options
Diffstat (limited to 'meta/recipes-devtools/ruby/ruby_2.6.4.bb')
| -rw-r--r-- | meta/recipes-devtools/ruby/ruby_2.6.4.bb | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/meta/recipes-devtools/ruby/ruby_2.6.4.bb b/meta/recipes-devtools/ruby/ruby_2.6.4.bb new file mode 100644 index 0000000000..4554487c0a --- /dev/null +++ b/meta/recipes-devtools/ruby/ruby_2.6.4.bb | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | require ruby.inc | ||
| 2 | |||
| 3 | SRC_URI += " \ | ||
| 4 | file://0003-configure.ac-check-finite-isinf-isnan-as-macros-firs.patch \ | ||
| 5 | file://run-ptest \ | ||
| 6 | " | ||
| 7 | |||
| 8 | SRC_URI[md5sum] = "49b628cdb21db967d8a3f6ca6e222583" | ||
| 9 | SRC_URI[sha256sum] = "4fc1d8ba75505b3797020a6ffc85a8bcff6adc4dabae343b6572bf281ee17937" | ||
| 10 | |||
| 11 | PACKAGECONFIG ??= "" | ||
| 12 | PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" | ||
| 13 | |||
| 14 | PACKAGECONFIG[valgrind] = "--with-valgrind=yes, --with-valgrind=no, valgrind" | ||
| 15 | PACKAGECONFIG[gmp] = "--with-gmp=yes, --with-gmp=no, gmp" | ||
| 16 | PACKAGECONFIG[ipv6] = "--enable-ipv6, --disable-ipv6," | ||
| 17 | |||
| 18 | EXTRA_OECONF = "\ | ||
| 19 | --disable-versioned-paths \ | ||
| 20 | --disable-rpath \ | ||
| 21 | --disable-dtrace \ | ||
| 22 | --enable-shared \ | ||
| 23 | --enable-load-relative \ | ||
| 24 | --with-pkg-config=pkg-config \ | ||
| 25 | " | ||
| 26 | |||
| 27 | do_install() { | ||
| 28 | oe_runmake 'DESTDIR=${D}' install | ||
| 29 | } | ||
| 30 | |||
| 31 | do_install_append_class-target () { | ||
| 32 | # Find out rbconfig.rb from .installed.list | ||
| 33 | rbconfig_rb=`grep rbconfig.rb ${B}/.installed.list` | ||
| 34 | # Remove build host directories | ||
| 35 | sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' \ | ||
| 36 | -e s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \ | ||
| 37 | -e 's|${DEBUG_PREFIX_MAP}||g' \ | ||
| 38 | -e 's:${HOSTTOOLS_DIR}/::g' \ | ||
| 39 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ | ||
| 40 | -e 's:${RECIPE_SYSROOT}::g' \ | ||
| 41 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ | ||
| 42 | ${D}$rbconfig_rb | ||
| 43 | } | ||
| 44 | |||
| 45 | do_install_ptest () { | ||
| 46 | cp -rf ${S}/test ${D}${PTEST_PATH}/ | ||
| 47 | cp -r ${S}/include ${D}/${libdir}/ruby/ | ||
| 48 | test_case_rb=`grep rubygems/test_case.rb ${B}/.installed.list` | ||
| 49 | sed -i -e 's:../../../test/:../../../ptest/test/:g' ${D}/$test_case_rb | ||
| 50 | } | ||
| 51 | |||
| 52 | PACKAGES =+ "${PN}-ri-docs ${PN}-rdoc" | ||
| 53 | |||
| 54 | SUMMARY_${PN}-ri-docs = "ri (Ruby Interactive) documentation for the Ruby standard library" | ||
| 55 | RDEPENDS_${PN}-ri-docs = "${PN}" | ||
| 56 | FILES_${PN}-ri-docs += "${datadir}/ri" | ||
| 57 | |||
| 58 | SUMMARY_${PN}-rdoc = "RDoc documentation generator from Ruby source" | ||
| 59 | RDEPENDS_${PN}-rdoc = "${PN}" | ||
| 60 | FILES_${PN}-rdoc += "${libdir}/ruby/*/rdoc ${bindir}/rdoc" | ||
| 61 | |||
| 62 | FILES_${PN} += "${datadir}/rubygems" | ||
| 63 | |||
| 64 | FILES_${PN}-ptest_append_class-target += "${libdir}/ruby/include" | ||
| 65 | |||
| 66 | BBCLASSEXTEND = "native" | ||
