diff options
Diffstat (limited to 'meta/recipes-extended/diffutils/diffutils_3.12.bb')
-rw-r--r-- | meta/recipes-extended/diffutils/diffutils_3.12.bb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-extended/diffutils/diffutils_3.12.bb b/meta/recipes-extended/diffutils/diffutils_3.12.bb new file mode 100644 index 0000000000..d00dd772ad --- /dev/null +++ b/meta/recipes-extended/diffutils/diffutils_3.12.bb | |||
@@ -0,0 +1,41 @@ | |||
1 | LICENSE = "GPL-3.0-or-later" | ||
2 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
3 | |||
4 | require diffutils.inc | ||
5 | |||
6 | SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.xz \ | ||
7 | file://run-ptest \ | ||
8 | file://0001-Skip-strip-trailing-cr-test-case.patch \ | ||
9 | " | ||
10 | |||
11 | SRC_URI[sha256sum] = "7c8b7f9fc8609141fdea9cece85249d308624391ff61dedaf528fcb337727dfd" | ||
12 | |||
13 | EXTRA_OECONF += "ac_cv_path_PR_PROGRAM=${bindir}/pr --without-libsigsegv-prefix" | ||
14 | EXTRA_OECONF += "gl_cv_func_strcasecmp_works=yes" | ||
15 | |||
16 | # latest gnulib is no longer able to handle this - I dare not try to fix that maze of abstractions and generators | ||
17 | CFLAGS:mingw32 = " -DSA_RESTART=0" | ||
18 | |||
19 | EXTRA_OEMAKE:append:mingw32 = " LIBS='-lbcrypt'" | ||
20 | inherit ptest | ||
21 | |||
22 | RDEPENDS:${PN}-ptest += "make perl" | ||
23 | |||
24 | do_install_ptest() { | ||
25 | t=${D}${PTEST_PATH} | ||
26 | install -D ${S}/build-aux/test-driver $t/build-aux/test-driver | ||
27 | cp -r ${S}/tests $t/ | ||
28 | install ${B}/tests/Makefile $t/tests/ | ||
29 | sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ | ||
30 | -e 's|${DEBUG_PREFIX_MAP}||g' \ | ||
31 | -e 's:${HOSTTOOLS_DIR}/::g' \ | ||
32 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ | ||
33 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ | ||
34 | -e 's|^Makefile:|_Makefile:|' \ | ||
35 | -e 's|bash|sh|' \ | ||
36 | -e 's|^top_srcdir = \(.*\)|top_srcdir = ..\/|' \ | ||
37 | -e 's|^srcdir = \(.*\)|srcdir = .|' \ | ||
38 | -e 's|"`$(built_programs)`"|diff|' \ | ||
39 | -e 's|gawk|awk|g' \ | ||
40 | -i $t/tests/Makefile | ||
41 | } | ||