summaryrefslogtreecommitdiff
path: root/meta/classes/cpan-base.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/cpan-base.bbclass')
-rw-r--r--meta/classes/cpan-base.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/cpan-base.bbclass b/meta/classes/cpan-base.bbclass
index a5fdb33895..cc0d11e515 100644
--- a/meta/classes/cpan-base.bbclass
+++ b/meta/classes/cpan-base.bbclass
@@ -4,8 +4,8 @@
#
FILES_${PN} += "${libdir}/perl5 ${datadir}/perl5"
-DEPENDS += "perl perl-native"
-RDEPENDS += "perl"
+DEPENDS += "${@["perl", "perl-native"][(bb.data.inherits_class('native', d))]}"
+RDEPENDS += "${@["perl", ""][(bb.data.inherits_class('native', d))]}"
# Determine the staged version of perl from the perl configuration file
def get_perl_version(d):