summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-06-18 00:57:22 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-01 15:39:58 +0100
commit3020570504826da0583986af84ca7ff2d936c22a (patch)
tree555f2cbd2b43c95892a4d086f1cc801d5fad847a /meta/recipes-devtools/perl
parent304ebe1fa2b05f62a15882095317044fd29c4c8d (diff)
downloadpoky-3020570504826da0583986af84ca7ff2d936c22a.tar.gz
perl: use perl.inc for target and native perl
It can reduce the duplicated code. (From OE-Core rev: c27bb63d7ea6487f065cb56dca952b510650288c) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/perl')
-rw-r--r--meta/recipes-devtools/perl/perl-native_5.22.0.bb12
-rw-r--r--meta/recipes-devtools/perl/perl.inc8
-rw-r--r--meta/recipes-devtools/perl/perl_5.22.0.bb19
3 files changed, 15 insertions, 24 deletions
diff --git a/meta/recipes-devtools/perl/perl-native_5.22.0.bb b/meta/recipes-devtools/perl/perl-native_5.22.0.bb
index dbfd82d23f..488871a51d 100644
--- a/meta/recipes-devtools/perl/perl-native_5.22.0.bb
+++ b/meta/recipes-devtools/perl/perl-native_5.22.0.bb
@@ -1,12 +1,6 @@
1SUMMARY = "Perl scripting language" 1require perl.inc
2HOMEPAGE = "http://www.perl.org/"
3SECTION = "libs"
4LICENSE = "Artistic-1.0 | GPL-1.0+"
5 2
6LIC_FILES_CHKSUM = "file://Copying;md5=5b122a36d0f6dc55279a0ebc69f3c60b \ 3SRC_URI += "\
7 file://Artistic;md5=2e6fd2475335af892494fe1f7327baf3"
8
9SRC_URI = "http://www.cpan.org/src/5.0/${BP}.tar.xz \
10 file://Configure-multilib.patch \ 4 file://Configure-multilib.patch \
11 file://perl-configpm-switch.patch \ 5 file://perl-configpm-switch.patch \
12 file://native-nopacklist.patch \ 6 file://native-nopacklist.patch \
@@ -19,8 +13,6 @@ SRC_URI = "http://www.cpan.org/src/5.0/${BP}.tar.xz \
19SRC_URI[md5sum] = "ff0f09b17de426eff323426cb140ee79" 13SRC_URI[md5sum] = "ff0f09b17de426eff323426cb140ee79"
20SRC_URI[sha256sum] = "be83ead0c5c26cbbe626fa4bac1a4beabe23a9eebc15d35ba49ccde11878e196" 14SRC_URI[sha256sum] = "be83ead0c5c26cbbe626fa4bac1a4beabe23a9eebc15d35ba49ccde11878e196"
21 15
22S = "${WORKDIR}/perl-${PV}"
23
24inherit native 16inherit native
25 17
26NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}" 18NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}"
diff --git a/meta/recipes-devtools/perl/perl.inc b/meta/recipes-devtools/perl/perl.inc
new file mode 100644
index 0000000000..0d9716c235
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl.inc
@@ -0,0 +1,8 @@
1SUMMARY = "Perl scripting language"
2HOMEPAGE = "http://www.perl.org/"
3SECTION = "devel"
4LICENSE = "Artistic-1.0 | GPL-1.0+"
5LIC_FILES_CHKSUM = "file://Copying;md5=5b122a36d0f6dc55279a0ebc69f3c60b \
6 file://Artistic;md5=2e6fd2475335af892494fe1f7327baf3"
7
8SRC_URI = "http://www.cpan.org/src/5.0/${BP}.tar.xz"
diff --git a/meta/recipes-devtools/perl/perl_5.22.0.bb b/meta/recipes-devtools/perl/perl_5.22.0.bb
index 8022f47275..e749078a0f 100644
--- a/meta/recipes-devtools/perl/perl_5.22.0.bb
+++ b/meta/recipes-devtools/perl/perl_5.22.0.bb
@@ -1,16 +1,9 @@
1SUMMARY = "Perl scripting language" 1require perl.inc
2HOMEPAGE = "http://www.perl.org/" 2
3SECTION = "devel"
4LICENSE = "Artistic-1.0 | GPL-1.0+"
5LIC_FILES_CHKSUM = "file://Copying;md5=5b122a36d0f6dc55279a0ebc69f3c60b \
6 file://Artistic;md5=2e6fd2475335af892494fe1f7327baf3"
7# We need gnugrep (for -I) 3# We need gnugrep (for -I)
8DEPENDS = "virtual/db grep-native" 4DEPENDS = "virtual/db grep-native"
9DEPENDS += "gdbm zlib" 5DEPENDS += "gdbm zlib"
10 6
11SRC_URI = "http://www.cpan.org/src/5.0/${BP}.tar.xz \
12"
13
14# Pick up patches from debian 7# Pick up patches from debian
15# http://ftp.de.debian.org/debian/pool/main/p/perl/perl_5.22.0-1.debian.tar.xz 8# http://ftp.de.debian.org/debian/pool/main/p/perl/perl_5.22.0-1.debian.tar.xz
16SRC_URI += " \ 9SRC_URI += " \
@@ -54,11 +47,9 @@ SRC_URI += " \
54 file://native-perlinc.patch \ 47 file://native-perlinc.patch \
55 file://perl-enable-gdbm.patch \ 48 file://perl-enable-gdbm.patch \
56 file://cross-generate_uudmap.patch \ 49 file://cross-generate_uudmap.patch \
57 file://fix_bad_rpath.patch \ 50 file://fix_bad_rpath.patch \
58 file://perl-archlib-exp.patch \ 51 file://perl-archlib-exp.patch \
59 file://dynaloaderhack.patch \ 52 file://dynaloaderhack.patch \
60 \
61 \
62 file://config.sh \ 53 file://config.sh \
63 file://config.sh-32 \ 54 file://config.sh-32 \
64 file://config.sh-32-le \ 55 file://config.sh-32-le \