blob: fd846b30a55ae11e9c9b9a31a22755c2f60d7b52 [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 \
Andrew Geissler220dafd2023-10-04 10:18:08 -05009 "
Andrew Geisslereff27472021-10-29 15:35:00 -050010SRC_URI:append:class-target = " file://wrong-path-fix.patch"
11
Andrew Geissler220dafd2023-10-04 10:18:08 -050012LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \
Andrew Geisslereff27472021-10-29 15:35:00 -050013 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
Andrew Geissler220dafd2023-10-04 10:18:08 -050041SRC_URI[sha256sum] = "20fc818aeebae87cdbf209d35141ad9d3cf312b35a5e6be61bfcfbf9eddd212a"