diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-devtools/perl/perl-ptest.inc | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-devtools/perl/perl-ptest.inc')
-rw-r--r-- | meta/recipes-devtools/perl/perl-ptest.inc | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-ptest.inc b/meta/recipes-devtools/perl/perl-ptest.inc new file mode 100644 index 0000000000..2c8831767d --- /dev/null +++ b/meta/recipes-devtools/perl/perl-ptest.inc | |||
@@ -0,0 +1,37 @@ | |||
1 | inherit ptest | ||
2 | |||
3 | SRC_URI += "file://run-ptest \ | ||
4 | " | ||
5 | |||
6 | do_install_ptest () { | ||
7 | mkdir -p ${D}${PTEST_PATH} | ||
8 | sed -e "s:\/opt:\/usr:" -i Porting/add-package.pl | ||
9 | sed -e "s:\/local\/gnu\/:\/:" -i hints/cxux.sh | ||
10 | tar -cf - * --exclude \*.o --exclude libperl.so --exclude Makefile --exclude makefile --exclude hostperl \ | ||
11 | --exclude miniperl --exclude generate_uudmap --exclude patches | ( cd ${D}${PTEST_PATH} && tar -xf - ) | ||
12 | |||
13 | sed -i -e "s,${D},,g" \ | ||
14 | -e "s,--sysroot=${STAGING_DIR_HOST},,g" \ | ||
15 | -e "s,-isystem${STAGING_INCDIR} ,,g" \ | ||
16 | -e "s,${STAGING_LIBDIR},${libdir},g" \ | ||
17 | -e "s,${STAGING_BINDIR},${bindir},g" \ | ||
18 | -e "s,${STAGING_INCDIR},${includedir},g" \ | ||
19 | -e "s,${STAGING_BINDIR_NATIVE}/perl-native/,${bindir}/,g" \ | ||
20 | -e "s,${STAGING_BINDIR_NATIVE}/,,g" \ | ||
21 | -e "s,${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX},${bindir},g" \ | ||
22 | ${D}${PTEST_PATH}/lib/Config.pm | ||
23 | |||
24 | ln -sf ${bindir}/perl ${D}${PTEST_PATH}/t/perl | ||
25 | |||
26 | } | ||
27 | |||
28 | python populate_packages_prepend() { | ||
29 | # Put all *.t files from the lib dir in the ptest package | ||
30 | # do_split_packages requires a pair of () in the regex, but we have nothing | ||
31 | # to match, so use an empty pair. | ||
32 | if bb.utils.contains('PTEST_ENABLED', '1', True, False, d): | ||
33 | do_split_packages(d, d.expand('${libdir}/perl/${PV}'), '.*\.t()', | ||
34 | '${PN}-ptest%s', '%s', recursive=True, match_path=True) | ||
35 | } | ||
36 | |||
37 | RDEPENDS_${PN}-ptest += "${PN}-modules ${PN}-doc ${PN}-misc sed" | ||