meta-openembedded/meta-perl/recipes-perl/libio/libio-compress-perl_2.212.bb
Khem Raj 909908a451
libio-compress-perl: Use update alternatives for streamzip and zipdetails
these utilities are also provided by perl-misc package built by
perl recipe. Prefer the one's provided by libio-compress-perl
if its included.

Fixes https://github.com/riscv/meta-riscv/issues/374

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-06-14 21:40:56 -07:00

50 lines
1.3 KiB
BlitzBasic

SUMMARY = "Perl interface to allow reading and writing of compressed data."
DESCRIPTION = "This distribution provides a Perl interface to allow reading \
and writing of compressed data created with the zlib and bzip2. \
\
IO-Compress supports reading and writing of the following compressed data \
formats \
* bzip2 \
* RFC 1950 \
* RFC 1951 \
* RFC 1952 (i.e. gzip) \
* zip \
"
HOMEPAGE = "https://metacpan.org/release/IO-Compress"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=8;endline=10;md5=254a3b5756814db98ee483c8974736c6"
SRC_URI = "${CPAN_MIRROR}/authors/id/P/PM/PMQS/IO-Compress-${PV}.tar.gz"
SRC_URI[sha256sum] = "687490dbf9c4be42c22a945c4601812be5f4d38a9836018148915ba9e0ea65b1"
S = "${WORKDIR}/IO-Compress-${PV}"
inherit cpan
RDEPENDS:${PN} += "\
perl-module-bytes \
perl-module-cwd \
perl-module-encode \
perl-module-file-glob \
perl-module-file-spec \
perl-module-posix \
perl-module-scalar-util \
perl-module-time-local \
perl-module-utf8 \
libcompress-raw-bzip2-perl \
libcompress-raw-zlib-perl \
"
inherit update-alternatives
ALTERNATIVE_PRIORITY = "39"
ALTERNATIVE:${PN} = "streamzip zipdetails"
ALTERNATIVE_LINK_NAME[streamzip] = "${bindir}/streamzip"
ALTERNATIVE_LINK_NAME[zipdetails] = "${bindir}/zipdetails"
BBCLASSEXTEND = "native"