xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-support/diffoscope/diffoscope_208.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "in-depth comparison of files, archives, and directories"
2*4882a593SmuzhiyunDESCRIPTION = "Tries to get to the bottom of what makes files or directories \
3*4882a593Smuzhiyundifferent. It will recursively unpack archives of many kinds and transform \
4*4882a593Smuzhiyunvarious binary formats into more human-readable form to compare them. \
5*4882a593SmuzhiyunIt can compare two tarballs, ISO images, or PDF just as easily."
6*4882a593SmuzhiyunHOMEPAGE = "https://diffoscope.org/"
7*4882a593SmuzhiyunBUGTRACKER = "https://salsa.debian.org/reproducible-builds/diffoscope/-/issues"
8*4882a593SmuzhiyunLICENSE = "GPL-3.0-or-later"
9*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunPYPI_PACKAGE = "diffoscope"
12*4882a593Smuzhiyun
13*4882a593Smuzhiyuninherit pypi setuptools3
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunSRC_URI[sha256sum] = "2c5c0ac1159eefce158154849fe67f0f527dffc5295bfd3ca1aef14962ffcbcb"
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunRDEPENDS:${PN} += "binutils vim squashfs-tools python3-libarchive-c python3-magic python3-rpm"
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun# Dependencies don't build for musl
20*4882a593SmuzhiyunCOMPATIBLE_HOST:libc-musl = 'null'
21*4882a593Smuzhiyun
22*4882a593Smuzhiyundo_install:append:class-native() {
23*4882a593Smuzhiyun	create_wrapper ${D}${bindir}/diffoscope \
24*4882a593Smuzhiyun		MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc \
25*4882a593Smuzhiyun		RPM_CONFIGDIR=${STAGING_LIBDIR_NATIVE}/rpm \
26*4882a593Smuzhiyun		LD_LIBRARY_PATH=${STAGING_LIBDIR_NATIVE} \
27*4882a593Smuzhiyun		RPM_ETCCONFIGDIR=${STAGING_DIR_NATIVE}
28*4882a593Smuzhiyun}
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunBBCLASSEXTEND = "native"
31