diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2010-07-25 18:25:49 +0200 |
---|---|---|
committer | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2010-07-26 19:06:48 +0200 |
commit | 8d209c6d13f52d872031b5ac41f2fb4ec2cd4170 (patch) | |
tree | d8ded4ed843276b67ae575145e5ca4ac41d8ad53 /classes/cpan.bbclass | |
parent | bbc3d4827417d047094b4faafdda9dd2f50422ff (diff) |
cpan.bbclass: removed legacy staging
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>
Diffstat (limited to 'classes/cpan.bbclass')
-rw-r--r-- | classes/cpan.bbclass | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/classes/cpan.bbclass b/classes/cpan.bbclass index dfc092601e..24e0c6e326 100644 --- a/classes/cpan.bbclass +++ b/classes/cpan.bbclass @@ -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 |