blob: 14de50b230594fc532b5a66da27b8fe9ac6001d9 [file] [log] [blame]
Andrew Geisslereff27472021-10-29 15:35:00 -05001require gzip.inc
2
Andrew Geissler9aee5002022-03-30 16:27:02 +00003# change to GPL-3.0-or-later in 2007/07. Previous GPL-2.0-or-later version is
4# 1.3.12
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00005LICENSE = "GPL-3.0-or-later"
Andrew Geisslereff27472021-10-29 15:35:00 -05006
7SRC_URI = "${GNU_MIRROR}/gzip/${BP}.tar.gz \
8 file://run-ptest \
9 "
10SRC_URI:append:class-target = " file://wrong-path-fix.patch"
11
12LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
13 file://gzip.h;beginline=8;endline=20;md5=6e47caaa630e0c8bf9f1bc8d94a8ed0e"
14
15PROVIDES:append:class-native = " gzip-replacement-native"
16
17RDEPENDS:${PN}-ptest += "make perl grep diffutils"
18
19BBCLASSEXTEND = "native nativesdk"
20
21inherit ptest
22
23do_install_ptest() {
24 mkdir -p ${D}${PTEST_PATH}/src/build-aux
25 cp ${S}/build-aux/test-driver ${D}${PTEST_PATH}/src/build-aux/
26 mkdir -p ${D}${PTEST_PATH}/src/tests
27 cp -r ${S}/tests/* ${D}${PTEST_PATH}/src/tests
28 sed -e 's/^abs_srcdir = ..*/abs_srcdir = \.\./' \
29 -e 's/^top_srcdir = ..*/top_srcdir = \.\./' \
30 -e 's/^GREP = ..*/GREP = grep/' \
31 -e 's/^AWK = ..*/AWK = awk/' \
32 -e 's/^srcdir = ..*/srcdir = \./' \
33 -e 's/^Makefile: ..*/Makefile: /' \
34 -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
35 -e 's|${DEBUG_PREFIX_MAP}||g' \
36 -e 's:${HOSTTOOLS_DIR}/::g' \
37 -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
38 ${B}/tests/Makefile > ${D}${PTEST_PATH}/src/tests/Makefile
39}
40
Patrick Williams58776372022-04-13 09:07:35 -050041SRC_URI[sha256sum] = "5b4fb14d38314e09f2fc8a1c510e7cd540a3ea0e3eb9b0420046b82c3bf41085"