]> code.ossystems Code Review - openembedded-core.git/commitdiff
cpan.bbclass: Fix native staging functions (sync with OE.dev)
authorRichard Purdie <richard@openedhand.com>
Wed, 19 Mar 2008 16:07:05 +0000 (16:07 +0000)
committerRichard Purdie <richard@openedhand.com>
Wed, 19 Mar 2008 16:07:05 +0000 (16:07 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4063 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/cpan.bbclass

index 5a0b4a5c92116fe90763a9ec99649405b7031e5d..506d4c4c81d0c2b1076a96f8a82b489b78595db7 100644 (file)
@@ -50,7 +50,16 @@ cpan_do_compile () {
 }
 
 cpan_do_install () {
-       oe_runmake install_vendor
+       if [ ${@is_target(d)} == "yes" ]; then
+               oe_runmake install_vendor
+       fi
+}
+
+cpan_do_stage () {
+       if [ ${@is_target(d)} == "no" ]; then
+               oe_runmake install_vendor
+       fi
 }
+                                                               
 
-EXPORT_FUNCTIONS do_configure do_compile do_install
+EXPORT_FUNCTIONS do_configure do_compile do_install do_stage