diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-10 14:35:29 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-12 15:26:52 +0100 |
commit | f5c128008365e141082c129417eb72d2751e8045 (patch) | |
tree | f5d969302d73813c56d3f871d456173ef63fe9a6 /meta/classes/cpan-base.bbclass | |
parent | 7c6c717a54423480c0ac9ed13861e3c1cc47e2b2 (diff) | |
download | openembedded-core-f5c128008365e141082c129417eb72d2751e8045.tar.gz |
classes: Update classes to match new bitbake class scope functionality
Move classes to classes-global or classes-recipe as appropriate to take
advantage of new bitbake functionality to check class scope/usage.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cpan-base.bbclass')
-rw-r--r-- | meta/classes/cpan-base.bbclass | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/meta/classes/cpan-base.bbclass b/meta/classes/cpan-base.bbclass deleted file mode 100644 index 1db0a4ded6..0000000000 --- a/meta/classes/cpan-base.bbclass +++ /dev/null @@ -1,33 +0,0 @@ -# -# Copyright OpenEmbedded Contributors -# -# SPDX-License-Identifier: MIT -# - -# -# cpan-base providers various perl related information needed for building -# cpan modules -# -FILES:${PN} += "${libdir}/perl5 ${datadir}/perl5" - -DEPENDS += "${@["perl", "perl-native"][(bb.data.inherits_class('native', d))]}" -RDEPENDS:${PN} += "${@["perl", ""][(bb.data.inherits_class('native', d))]}" - -inherit perl-version - -def is_target(d): - if not bb.data.inherits_class('native', d): - return "yes" - return "no" - -PERLLIBDIRS = "${libdir}/perl5" -PERLLIBDIRS:class-native = "${libdir}/perl5" - -def cpan_upstream_check_pattern(d): - for x in (d.getVar('SRC_URI') or '').split(' '): - if x.startswith("https://cpan.metacpan.org"): - _pattern = x.split('/')[-1].replace(d.getVar('PV'), r'(?P<pver>\d+.\d+)') - return _pattern - return '' - -UPSTREAM_CHECK_REGEX ?= "${@cpan_upstream_check_pattern(d)}" |