From af25a3b5a46c74124f1fb99e7157cc6aea879a5c Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Sat, 19 Dec 2020 16:13:15 -0500 Subject: meta-agl-basesystem: add libxml-xpath-perl Add libxml-xpath-perl recipe and recipes for its required dependencies libscalar-list-utils-perl and libpath-tiny-perl. This should enable using the xpath utility in the basesystem build by DEPENDing on libxml-xpath-perl-native. Note that the libscalar-list-utils-perl recipe has been adapted from the one present in meta-cpan (https://github.com/meta-cpan/meta-cpan) as of commit 2f6ecfa. This was viewed as preferable to pulling in meta-cpan as an AGL dependency. Additionally, the recipe has been updated to enable ptest support, and all tests have been confirmed to pass. The same is true of the libxml-xpath-perl and libpath-tiny-perl ptests. Bug-AGL: SPEC-3670 Signed-off-by: Scott Murray Change-Id: Icd25cbb4498636c5a6a384818535e3c3372b5b29 --- .../perl/libscalar-list-utils-perl_1.55.bb | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 meta-oem-production-readiness/meta-agl-basesystem/recipes-devtools/perl/libscalar-list-utils-perl_1.55.bb (limited to 'meta-oem-production-readiness/meta-agl-basesystem/recipes-devtools/perl/libscalar-list-utils-perl_1.55.bb') diff --git a/meta-oem-production-readiness/meta-agl-basesystem/recipes-devtools/perl/libscalar-list-utils-perl_1.55.bb b/meta-oem-production-readiness/meta-agl-basesystem/recipes-devtools/perl/libscalar-list-utils-perl_1.55.bb new file mode 100644 index 00000000..d81f18ff --- /dev/null +++ b/meta-oem-production-readiness/meta-agl-basesystem/recipes-devtools/perl/libscalar-list-utils-perl_1.55.bb @@ -0,0 +1,26 @@ +SUMMARY = "Perl scalar list modules" +DESCRIPTION = ""List::Util" contains a selection of subroutines that people have expressed \ +would be nice to have in the perl core, but the usage would not really be \ +high enough to warrant the use of a keyword, and the size so small such \ +that being individual extensions would be wasteful." +HOMEPAGE = "https://metacpan.org/release/Scalar-List-Utils" +SECTION = "libs" +LICENSE = "Artisticv1 | GPLv1+" + +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \ + file://${COMMON_LICENSE_DIR}/GPL-1.0;md5=e9e36a9de734199567a4d769498f743d" + +SRC_URI = "https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Scalar-List-Utils-${PV}.tar.gz" +SRC_URI[md5sum] = "7988f5111e33ba47e175cf3e86b0d93f" +SRC_URI[sha256sum] = "4d2bdc1c72a7bc4d69d6a5cc85bc7566497c3b183c6175b832784329d58feb4b" + +S = "${WORKDIR}/Scalar-List-Utils-${PV}" + +inherit cpan ptest-perl + +do_install_prepend() { + # requires "-T" (taint) command line option + rm -rf ${B}/t/tainted.t +} + +BBCLASSEXTEND = "native" -- cgit 1.2.3-korg