diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-18 20:05:55 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-18 20:05:55 +0000 |
commit | ca5f36ee6ad756e1e540288a56a504c1d8ecc7a3 (patch) | |
tree | 9ad90f44e75c449f54f30bb702aa797ee8083a78 /meta/classes/cpan_build.bbclass | |
parent | 06685d7558891dc50b439cf82c394cfadc3ee1d4 (diff) | |
download | poky-ca5f36ee6ad756e1e540288a56a504c1d8ecc7a3.tar.gz |
perl: Update from OE.dev and convert to use do_install for staging
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/cpan_build.bbclass')
-rw-r--r-- | meta/classes/cpan_build.bbclass | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/meta/classes/cpan_build.bbclass b/meta/classes/cpan_build.bbclass index 6cac85c5fe..944e8d4ac0 100644 --- a/meta/classes/cpan_build.bbclass +++ b/meta/classes/cpan_build.bbclass | |||
@@ -23,7 +23,7 @@ cpan_build_do_configure () { | |||
23 | if [ ${@is_target(d)} == "yes" ]; then | 23 | if [ ${@is_target(d)} == "yes" ]; then |
24 | # build for target | 24 | # build for target |
25 | . ${STAGING_LIBDIR}/perl/config.sh | 25 | . ${STAGING_LIBDIR}/perl/config.sh |
26 | if [ "${IS_NEW_PERL}" = "yes" ]; then | 26 | |
27 | perl Build.PL --installdirs vendor \ | 27 | perl Build.PL --installdirs vendor \ |
28 | --destdir ${D} \ | 28 | --destdir ${D} \ |
29 | --install_path lib="${datadir}/perl5" \ | 29 | --install_path lib="${datadir}/perl5" \ |
@@ -32,19 +32,9 @@ cpan_build_do_configure () { | |||
32 | --install_path bin=${bindir} \ | 32 | --install_path bin=${bindir} \ |
33 | --install_path bindoc=${mandir}/man1 \ | 33 | --install_path bindoc=${mandir}/man1 \ |
34 | --install_path libdoc=${mandir}/man3 | 34 | --install_path libdoc=${mandir}/man3 |
35 | else | ||
36 | perl Build.PL --installdirs vendor \ | ||
37 | --destdir ${D} \ | ||
38 | --install_path lib="${libdir}/perl5/site_perl/${version}" \ | ||
39 | --install_path arch="${libdir}/perl5/site_perl/${version}/${TARGET_SYS}" \ | ||
40 | --install_path script=${bindir} \ | ||
41 | --install_path bin=${bindir} \ | ||
42 | --install_path bindoc=${mandir}/man1 \ | ||
43 | --install_path libdoc=${mandir}/man3 | ||
44 | fi | ||
45 | else | 35 | else |
46 | # build for host | 36 | # build for host |
47 | perl Build.PL --installdirs site | 37 | perl Build.PL --installdirs site --destdir ${D} |
48 | fi | 38 | fi |
49 | } | 39 | } |
50 | 40 | ||
@@ -52,16 +42,9 @@ cpan_build_do_compile () { | |||
52 | perl Build | 42 | perl Build |
53 | } | 43 | } |
54 | 44 | ||
45 | NATIVE_INSTALL_WORKS = "1" | ||
55 | cpan_build_do_install () { | 46 | cpan_build_do_install () { |
56 | if [ ${@is_target(d)} == "yes" ]; then | 47 | perl Build install |
57 | perl Build install | ||
58 | fi | ||
59 | } | ||
60 | |||
61 | do_stage () { | ||
62 | if [ ${@is_target(d)} == "no" ]; then | ||
63 | perl Build install | ||
64 | fi | ||
65 | } | 48 | } |
66 | 49 | ||
67 | EXPORT_FUNCTIONS do_configure do_compile do_install | 50 | EXPORT_FUNCTIONS do_configure do_compile do_install |