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 \ |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 9 | " |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 10 | SRC_URI:append:class-target = " file://wrong-path-fix.patch" |
| 11 | |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \ |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 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 | |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 41 | SRC_URI[sha256sum] = "20fc818aeebae87cdbf209d35141ad9d3cf312b35a5e6be61bfcfbf9eddd212a" |