[oe-commits] org.oe.dev cpan.bbclass: Run the install routine as the staging task instead of install when run as part of a native build

rpurdie commit oe at amethyst.openembedded.net
Mon Mar 17 20:46:51 UTC 2008


cpan.bbclass: Run the install routine as the staging task instead of install when run as part of a native build

Author: rpurdie at openembedded.org
Branch: org.openembedded.dev
Revision: 9263c7abd0834d6d0e579cb7a83af9da4c50de6a
ViewMTN: http://monotone.openembedded.org/revision/info/9263c7abd0834d6d0e579cb7a83af9da4c50de6a
Files:
1
classes/cpan.bbclass
Diffs:

#
# mt diff -r58df1ea5fa8845d23959d7a6b888394427680afc -r9263c7abd0834d6d0e579cb7a83af9da4c50de6a
#
#
#
# patch "classes/cpan.bbclass"
#  from [3d10b2c778e3f89f5026df7ac1fcd54bc43fd360]
#    to [7a1ee7c60006de5f1fdeedf6a41459c55b0a894e]
#
============================================================
--- classes/cpan.bbclass	3d10b2c778e3f89f5026df7ac1fcd54bc43fd360
+++ classes/cpan.bbclass	7a1ee7c60006de5f1fdeedf6a41459c55b0a894e
@@ -50,7 +50,16 @@ cpan_do_install () {
 }
 
 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 do_stage
-EXPORT_FUNCTIONS do_configure do_compile do_install






More information about the Openembedded-commits mailing list