]> git.openpandora.org Git - openembedded.git/commitdiff
cpan.bbclass/cpan_build.bbclass: Make all perl modules DEPEND on perl
authorJamie Lenehan <lenehan@twibble.org>
Tue, 26 Sep 2006 08:06:33 +0000 (08:06 +0000)
committerJamie Lenehan <lenehan@twibble.org>
Tue, 26 Sep 2006 08:06:33 +0000 (08:06 +0000)
and RDEPEND on perl-native to avoid having to add it to every single
perl module recipe.

classes/cpan.bbclass
classes/cpan_build.bbclass

index 8acc9ab8f874776b0525c88d2e30fa656950898d..c48bd1a98028717d915b67b0eac195fae6554b07 100644 (file)
@@ -1,6 +1,12 @@
+#
+# This is for perl modules that use the old Makefile.PL build system
+#
 FILES_${PN} += '${libdir}/perl5'
 EXTRA_CPANFLAGS = ""
 
+DEPENDS  += "perl-native"
+RDEPENDS += "perl"
+
 cpan_do_configure () {
        perl Makefile.PL ${EXTRA_CPANFLAGS}
        if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
index b61a009eedfe0bca904b7c2334e120a775a3b9ce..b7cdf7d82164b5f160565ea3346dfaaa31ff33f6 100644 (file)
@@ -1,6 +1,12 @@
+#
+# This is for perl modules that use the new Build.PL build system
+#
 INHIBIT_NATIVE_STAGE_INSTALL = "1"
 FILES_${PN} += '${libdir}/perl5'
 
+DEPENDS  += "perl-native"
+RDEPENDS += "perl"
+
 def is_crosscompiling(d):
     import bb
     if not bb.data.inherits_class('native', d):