From 767e7f360fbc036103dcbdf569bd59261be39e96 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Tue, 6 Sep 2022 13:32:14 +0800 Subject: libdev-checklib-perl: upgrade 1.14 -> 1.16 0001-CheckLib.pm-don-t-execute-the-binary.patch refreshed for new version. Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../perl/libdev-checklib-perl_1.16.bb | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 meta-oe/recipes-devtools/perl/libdev-checklib-perl_1.16.bb (limited to 'meta-oe/recipes-devtools/perl/libdev-checklib-perl_1.16.bb') diff --git a/meta-oe/recipes-devtools/perl/libdev-checklib-perl_1.16.bb b/meta-oe/recipes-devtools/perl/libdev-checklib-perl_1.16.bb new file mode 100644 index 0000000000..74a09e7bf8 --- /dev/null +++ b/meta-oe/recipes-devtools/perl/libdev-checklib-perl_1.16.bb @@ -0,0 +1,28 @@ +SUMMARY = "A Perl module that checks whether a particular C library and its headers are available" +DESCRIPTION = "This module provides a way of checking whether a particular library \ +and its headers are available, by attempting to compile a simple program and \ +link against it." +HOMEPAGE = "https://metacpan.org/pod/Devel::CheckLib" +SECTION = "libs" +LICENSE = "Artistic-1.0 | GPL-1.0-or-later" + +LIC_FILES_CHKSUM = "file://README;md5=7911cdbb572d25c5f2e2ea17f669efc2" + +SRC_URI = "https://cpan.metacpan.org/modules/by-module/Devel/Devel-CheckLib-${PV}.tar.gz \ + file://0001-CheckLib.pm-don-t-execute-the-binary.patch \ +" +SRC_URI[sha256sum] = "869d38c258e646dcef676609f0dd7ca90f085f56cf6fd7001b019a5d5b831fca" + +S = "${WORKDIR}/Devel-CheckLib-${PV}" + +inherit cpan + +do_install:append() { + # update interpreter on shebang line + # since old version env doesn't support multiple arguments, replace option + # '-w' with 'use warnings;' + sed -i -e "s:^#!.*:#!/usr/bin/env perl:" \ + -e "/use strict;/ause warnings;" ${D}${bindir}/use-devel-checklib +} + +BBCLASSEXTEND="native" -- cgit v1.2.3-54-g00ecf