blob: 35eb7c4da230973ded16702d37447c4b703cfa66 [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 \
Patrick Williams2a254922023-08-11 09:48:11 -05008 file://autoconf-2.73.patch \
Andrew Geisslereff27472021-10-29 15:35:00 -05009 file://run-ptest \
10 "
11SRC_URI:append:class-target = " file://wrong-path-fix.patch"
12
13LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
14 file://gzip.h;beginline=8;endline=20;md5=6e47caaa630e0c8bf9f1bc8d94a8ed0e"
15
16PROVIDES:append:class-native = " gzip-replacement-native"
17
18RDEPENDS:${PN}-ptest += "make perl grep diffutils"
19
20BBCLASSEXTEND = "native nativesdk"
21
22inherit ptest
23
24do_install_ptest() {
25 mkdir -p ${D}${PTEST_PATH}/src/build-aux
26 cp ${S}/build-aux/test-driver ${D}${PTEST_PATH}/src/build-aux/
27 mkdir -p ${D}${PTEST_PATH}/src/tests
28 cp -r ${S}/tests/* ${D}${PTEST_PATH}/src/tests
29 sed -e 's/^abs_srcdir = ..*/abs_srcdir = \.\./' \
30 -e 's/^top_srcdir = ..*/top_srcdir = \.\./' \
31 -e 's/^GREP = ..*/GREP = grep/' \
32 -e 's/^AWK = ..*/AWK = awk/' \
33 -e 's/^srcdir = ..*/srcdir = \./' \
34 -e 's/^Makefile: ..*/Makefile: /' \
35 -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
36 -e 's|${DEBUG_PREFIX_MAP}||g' \
37 -e 's:${HOSTTOOLS_DIR}/::g' \
38 -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
39 ${B}/tests/Makefile > ${D}${PTEST_PATH}/src/tests/Makefile
40}
41
Patrick Williams58776372022-04-13 09:07:35 -050042SRC_URI[sha256sum] = "5b4fb14d38314e09f2fc8a1c510e7cd540a3ea0e3eb9b0420046b82c3bf41085"