blob: 867edf87073f49b732dbe0e5cf915cc914382b03 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#
2# cpan-base providers various perl related information needed for building
3# cpan modules
4#
Brad Bishop19323692019-04-05 15:28:33 -04005FILES_${PN} += "${libdir}/perl5 ${datadir}/perl5"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006
7DEPENDS += "${@["perl", "perl-native"][(bb.data.inherits_class('native', d))]}"
8RDEPENDS_${PN} += "${@["perl", ""][(bb.data.inherits_class('native', d))]}"
9
Brad Bishop6e60e8b2018-02-01 10:27:11 -050010inherit perl-version
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012def is_target(d):
13 if not bb.data.inherits_class('native', d):
14 return "yes"
15 return "no"
16
Brad Bishop19323692019-04-05 15:28:33 -040017PERLLIBDIRS = "${libdir}/perl5"
18PERLLIBDIRS_class-native = "${libdir}/perl5"