Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 1 | require gzip.inc |
| 2 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 3 | # change to GPL-3.0-or-later in 2007/07. Previous GPL-2.0-or-later version is |
| 4 | # 1.3.12 |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 5 | LICENSE = "GPL-3.0-or-later" |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 6 | |
| 7 | SRC_URI = "${GNU_MIRROR}/gzip/${BP}.tar.gz \ |
| 8 | file://run-ptest \ |
| 9 | " |
| 10 | SRC_URI:append:class-target = " file://wrong-path-fix.patch" |
| 11 | |
| 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ |
| 13 | file://gzip.h;beginline=8;endline=20;md5=6e47caaa630e0c8bf9f1bc8d94a8ed0e" |
| 14 | |
| 15 | PROVIDES:append:class-native = " gzip-replacement-native" |
| 16 | |
| 17 | RDEPENDS:${PN}-ptest += "make perl grep diffutils" |
| 18 | |
| 19 | BBCLASSEXTEND = "native nativesdk" |
| 20 | |
| 21 | inherit ptest |
| 22 | |
| 23 | do_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 Williams | 5877637 | 2022-04-13 09:07:35 -0500 | [diff] [blame] | 41 | SRC_URI[sha256sum] = "5b4fb14d38314e09f2fc8a1c510e7cd540a3ea0e3eb9b0420046b82c3bf41085" |