cpan.bbclass: Run the install routine as the staging task instead of install when...
authorRichard Purdie <rpurdie@rpsys.net>
Mon, 17 Mar 2008 20:43:12 +0000 (20:43 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Mon, 17 Mar 2008 20:43:12 +0000 (20:43 +0000)
classes/cpan.bbclass

index 5a0b4a5..506d4c4 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