cpan.bbclass: removed legacy staging
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Sun, 25 Jul 2010 16:25:49 +0000 (18:25 +0200)
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Mon, 26 Jul 2010 17:06:48 +0000 (19:06 +0200)
bumped PR for the main perl recipes so this change takes effect

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Roman I Khimov <khimov@altell.ru>
classes/cpan.bbclass
recipes/perl/perl_5.10.1.bb
recipes/perl/perl_5.8.8.bb

index dfc0926..24e0c6e 100644 (file)
@@ -13,6 +13,8 @@ export PERL_INC = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}/CORE"
 export PERL_LIB = "${STAGING_DATADIR}/perl/${@get_perl_version(d)}"
 export PERL_ARCHLIB = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}"
 
+NATIVE_INSTALL_WORKS = "1"
+
 cpan_do_configure () {
        yes '' | perl Makefile.PL ${EXTRA_CPANFLAGS}
        if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
@@ -31,16 +33,7 @@ cpan_do_compile () {
 }
 
 cpan_do_install () {
-       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
+       oe_runmake DESTDIR="${D}" install_vendor
 }
-                                                               
 
-EXPORT_FUNCTIONS do_configure do_compile do_install do_stage
+EXPORT_FUNCTIONS do_configure do_compile do_install
index 86b08dc..e7c90d8 100644 (file)
@@ -5,7 +5,7 @@ LICENSE = "Artistic|GPL"
 PRIORITY = "optional"
 # We need gnugrep (for -I)
 DEPENDS = "virtual/db perl-native grep-native"
-PR = "r7"
+PR = "r8"
 
 # Not tested enough
 DEFAULT_PREFERENCE = "-1"
index c73fe4e..29ae66c 100644 (file)
@@ -5,7 +5,7 @@ LICENSE = "Artistic|GPL"
 PRIORITY = "optional"
 # We need gnugrep (for -I)
 DEPENDS = "virtual/db perl-native grep-native"
-PR = "r34"
+PR = "r35"
 
 # Major part of version
 PVM = "5.8"