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 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/recipes-devtools/ruby/ruby_2.6.4.bb b/meta/recipes-devtools/ruby/ruby_2.6.4.bb index 4554487c0a..fb202b8f1f 100644 --- a/meta/recipes-devtools/ruby/ruby_2.6.4.bb +++ b/meta/recipes-devtools/ruby/ruby_2.6.4.bb | |||
@@ -44,6 +44,14 @@ do_install_append_class-target () { | |||
44 | 44 | ||
45 | do_install_ptest () { | 45 | do_install_ptest () { |
46 | cp -rf ${S}/test ${D}${PTEST_PATH}/ | 46 | cp -rf ${S}/test ${D}${PTEST_PATH}/ |
47 | # install test-binaries | ||
48 | find $(find ./.ext -path '*/-test-') -name '*.so' -print0 \ | ||
49 | | tar --no-recursion --null -T - --no-same-owner --preserve-permissions -cf - \ | ||
50 | | tar -C ${D}${libdir}/ruby/${SHRT_VER}.0/ --no-same-owner --preserve-permissions --strip-components=2 -xf - | ||
51 | # adjust path to not assume build directory layout | ||
52 | sed -e 's|File.expand_path(.*\.\./bin/erb[^)]*|File.expand_path("${bindir}/erb"|g' \ | ||
53 | -i ${D}${PTEST_PATH}/test/erb/test_erb_command.rb | ||
54 | |||
47 | cp -r ${S}/include ${D}/${libdir}/ruby/ | 55 | cp -r ${S}/include ${D}/${libdir}/ruby/ |
48 | test_case_rb=`grep rubygems/test_case.rb ${B}/.installed.list` | 56 | test_case_rb=`grep rubygems/test_case.rb ${B}/.installed.list` |
49 | sed -i -e 's:../../../test/:../../../ptest/test/:g' ${D}/$test_case_rb | 57 | sed -i -e 's:../../../test/:../../../ptest/test/:g' ${D}/$test_case_rb |
@@ -61,6 +69,9 @@ FILES_${PN}-rdoc += "${libdir}/ruby/*/rdoc ${bindir}/rdoc" | |||
61 | 69 | ||
62 | FILES_${PN} += "${datadir}/rubygems" | 70 | FILES_${PN} += "${datadir}/rubygems" |
63 | 71 | ||
64 | FILES_${PN}-ptest_append_class-target += "${libdir}/ruby/include" | 72 | FILES_${PN}-ptest_append_class-target = "\ |
73 | ${libdir}/ruby/include \ | ||
74 | ${libdir}/ruby/${SHRT_VER}.0/*/-test- \ | ||
75 | " | ||
65 | 76 | ||
66 | BBCLASSEXTEND = "native" | 77 | BBCLASSEXTEND = "native" |