diff options
Diffstat (limited to 'meta/recipes-extended/xz/xz_5.6.2.bb')
| -rw-r--r-- | meta/recipes-extended/xz/xz_5.6.2.bb | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/meta/recipes-extended/xz/xz_5.6.2.bb b/meta/recipes-extended/xz/xz_5.6.2.bb new file mode 100644 index 0000000000..96fc691ef7 --- /dev/null +++ b/meta/recipes-extended/xz/xz_5.6.2.bb | |||
| @@ -0,0 +1,72 @@ | |||
| 1 | SUMMARY = "Utilities for managing LZMA compressed files" | ||
| 2 | HOMEPAGE = "https://tukaani.org/xz/" | ||
| 3 | DESCRIPTION = "XZ Utils is free general-purpose data compression software with a high compression ratio. XZ Utils were written for POSIX-like systems, but also work on some not-so-POSIX systems. XZ Utils are the successor to LZMA Utils." | ||
| 4 | SECTION = "base" | ||
| 5 | |||
| 6 | # The source includes bits of 0BSD, GPL-2.0, GPL-3.0, LGPL-2.1-or-later, but the | ||
| 7 | # only file which is GPL-3.0 is an m4 macro which isn't shipped in any of our | ||
| 8 | # packages, and the LGPL bits are under lib/, which appears to be used for | ||
| 9 | # libgnu, which appears to be used for DOS builds. So we're left with | ||
| 10 | # GPL-2.0-or-later and 0BSD. | ||
| 11 | LICENSE = "GPL-2.0-or-later & GPL-3.0-with-autoconf-exception & LGPL-2.1-or-later & 0BSD" | ||
| 12 | LICENSE:${PN} = "0BSD & GPL-2.0-or-later" | ||
| 13 | LICENSE:${PN}-dev = "0BSD & GPL-2.0-or-later" | ||
| 14 | LICENSE:${PN}-staticdev = "GPL-2.0-or-later" | ||
| 15 | LICENSE:${PN}-doc = "0BSD & GPL-2.0-or-later" | ||
| 16 | LICENSE:${PN}-dbg = "GPL-2.0-or-later" | ||
| 17 | LICENSE:${PN}-locale = "GPL-2.0-or-later" | ||
| 18 | LICENSE:liblzma = "0BSD" | ||
| 19 | |||
| 20 | LIC_FILES_CHKSUM = "file://COPYING;md5=c02de712b028a5cc7e22472e8f2b3db1 \ | ||
| 21 | file://COPYING.0BSD;md5=0672c210ce80c83444339b9aa31fee2f \ | ||
| 22 | file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
| 23 | file://COPYING.GPLv3;md5=1ebbd3e34237af26da5dc08a4e440464 \ | ||
| 24 | file://COPYING.LGPLv2.1;md5=4fbd65380cdd255951079008b364516c \ | ||
| 25 | file://lib/getopt.c;endline=23;md5=3f33e207287bf72834f3ae8c247dfb6a \ | ||
| 26 | " | ||
| 27 | |||
| 28 | SRC_URI = "https://github.com/tukaani-project/xz/releases/download/v${PV}/xz-${PV}.tar.gz \ | ||
| 29 | file://run-ptest \ | ||
| 30 | " | ||
| 31 | SRC_URI[sha256sum] = "8bfd20c0e1d86f0402f2497cfa71c6ab62d4cd35fd704276e3140bfb71414519" | ||
| 32 | UPSTREAM_CHECK_REGEX = "releases/tag/v(?P<pver>\d+(\.\d+)+)" | ||
| 33 | UPSTREAM_CHECK_URI = "https://github.com/tukaani-project/xz/releases/" | ||
| 34 | |||
| 35 | CACHED_CONFIGUREVARS += "gl_cv_posix_shell=/bin/sh" | ||
| 36 | |||
| 37 | inherit autotools gettext ptest | ||
| 38 | |||
| 39 | PACKAGECONFIG[landlock] = "--enable-sandbox=landlock,--enable-sandbox=no" | ||
| 40 | |||
| 41 | PACKAGES =+ "liblzma" | ||
| 42 | |||
| 43 | FILES:liblzma = "${libdir}/liblzma*${SOLIBS}" | ||
| 44 | |||
| 45 | inherit update-alternatives | ||
| 46 | ALTERNATIVE_PRIORITY = "100" | ||
| 47 | ALTERNATIVE:${PN} = "xz xzcat unxz \ | ||
| 48 | lzma lzcat unlzma" | ||
| 49 | |||
| 50 | BBCLASSEXTEND = "native nativesdk" | ||
| 51 | |||
| 52 | RDEPENDS:${PN}-ptest += "bash file" | ||
| 53 | |||
| 54 | do_compile_ptest() { | ||
| 55 | oe_runmake check TESTS= | ||
| 56 | } | ||
| 57 | |||
| 58 | do_install_ptest () { | ||
| 59 | install -d ${D}${PTEST_PATH}/tests | ||
| 60 | find ${B}/tests/.libs -type f -executable -exec cp {} ${D}${PTEST_PATH}/tests \; | ||
| 61 | cp ${B}/config.h ${D}${PTEST_PATH} | ||
| 62 | for i in files xzgrep_expected_output test_files.sh test_scripts.sh test_compress.sh; do | ||
| 63 | cp -r ${S}/tests/$i ${D}${PTEST_PATH}/tests | ||
| 64 | done | ||
| 65 | mkdir -p ${D}${PTEST_PATH}/src/xz | ||
| 66 | ln -s ${bindir}/xz ${D}${PTEST_PATH}/src/xz/xz | ||
| 67 | mkdir -p ${D}${PTEST_PATH}/src/xzdec | ||
| 68 | ln -s ${bindir}/xzdec ${D}${PTEST_PATH}/src/xzdec/xzdec | ||
| 69 | mkdir -p ${D}${PTEST_PATH}/src/scripts | ||
| 70 | ln -s ${bindir}/xzdiff ${D}${PTEST_PATH}/src/scripts/xzdiff | ||
| 71 | ln -s ${bindir}/xzgrep ${D}${PTEST_PATH}/src/scripts/xzgrep | ||
| 72 | } | ||
