cpan_build: adapt to new staging for native
authorRoman I Khimov <khimov@altell.ru>
Thu, 18 Mar 2010 15:29:38 +0000 (18:29 +0300)
committerRoman I Khimov <khimov@altell.ru>
Tue, 23 Mar 2010 21:45:27 +0000 (00:45 +0300)
Signed-off-by: Roman I Khimov <khimov@altell.ru>
classes/cpan_build.bbclass

index 899c401..56f5816 100644 (file)
@@ -3,7 +3,7 @@
 #
 inherit cpan-base
 
-INHIBIT_NATIVE_STAGE_INSTALL = "1"
+NATIVE_INSTALL_WORKS = "1"
 
 #
 # We also need to have built libmodule-build-perl-native for
@@ -46,12 +46,8 @@ cpan_build_do_compile () {
 cpan_build_do_install () {
        if [ ${@is_target(d)} == "yes" ]; then
                perl Build install
-       fi
-}
-
-do_stage_append () {
-       if [ ${@is_target(d)} == "no" ]; then
-               perl Build install
+       else
+               perl Build install destdir="${WORKDIR}/image"
        fi
 }