Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # |
| 2 | # cpan-base providers various perl related information needed for building |
| 3 | # cpan modules |
| 4 | # |
| 5 | FILES_${PN} += "${libdir}/perl ${datadir}/perl" |
| 6 | |
| 7 | DEPENDS += "${@["perl", "perl-native"][(bb.data.inherits_class('native', d))]}" |
| 8 | RDEPENDS_${PN} += "${@["perl", ""][(bb.data.inherits_class('native', d))]}" |
| 9 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 10 | inherit perl-version |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | def is_target(d): |
| 13 | if not bb.data.inherits_class('native', d): |
| 14 | return "yes" |
| 15 | return "no" |
| 16 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 17 | PERLLIBDIRS = "${libdir}/perl" |
| 18 | PERLLIBDIRS_class-native = "${libdir}/perl-native" |