diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2015-06-18 00:57:22 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-01 15:39:58 +0100 |
commit | 3020570504826da0583986af84ca7ff2d936c22a (patch) | |
tree | 555f2cbd2b43c95892a4d086f1cc801d5fad847a /meta/recipes-devtools/perl | |
parent | 304ebe1fa2b05f62a15882095317044fd29c4c8d (diff) | |
download | poky-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.bb | 12 | ||||
-rw-r--r-- | meta/recipes-devtools/perl/perl.inc | 8 | ||||
-rw-r--r-- | meta/recipes-devtools/perl/perl_5.22.0.bb | 19 |
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 @@ | |||
1 | SUMMARY = "Perl scripting language" | 1 | require perl.inc |
2 | HOMEPAGE = "http://www.perl.org/" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "Artistic-1.0 | GPL-1.0+" | ||
5 | 2 | ||
6 | LIC_FILES_CHKSUM = "file://Copying;md5=5b122a36d0f6dc55279a0ebc69f3c60b \ | 3 | SRC_URI += "\ |
7 | file://Artistic;md5=2e6fd2475335af892494fe1f7327baf3" | ||
8 | |||
9 | SRC_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 \ | |||
19 | SRC_URI[md5sum] = "ff0f09b17de426eff323426cb140ee79" | 13 | SRC_URI[md5sum] = "ff0f09b17de426eff323426cb140ee79" |
20 | SRC_URI[sha256sum] = "be83ead0c5c26cbbe626fa4bac1a4beabe23a9eebc15d35ba49ccde11878e196" | 14 | SRC_URI[sha256sum] = "be83ead0c5c26cbbe626fa4bac1a4beabe23a9eebc15d35ba49ccde11878e196" |
21 | 15 | ||
22 | S = "${WORKDIR}/perl-${PV}" | ||
23 | |||
24 | inherit native | 16 | inherit native |
25 | 17 | ||
26 | NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}" | 18 | NATIVE_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 @@ | |||
1 | SUMMARY = "Perl scripting language" | ||
2 | HOMEPAGE = "http://www.perl.org/" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "Artistic-1.0 | GPL-1.0+" | ||
5 | LIC_FILES_CHKSUM = "file://Copying;md5=5b122a36d0f6dc55279a0ebc69f3c60b \ | ||
6 | file://Artistic;md5=2e6fd2475335af892494fe1f7327baf3" | ||
7 | |||
8 | SRC_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 @@ | |||
1 | SUMMARY = "Perl scripting language" | 1 | require perl.inc |
2 | HOMEPAGE = "http://www.perl.org/" | 2 | |
3 | SECTION = "devel" | ||
4 | LICENSE = "Artistic-1.0 | GPL-1.0+" | ||
5 | LIC_FILES_CHKSUM = "file://Copying;md5=5b122a36d0f6dc55279a0ebc69f3c60b \ | ||
6 | file://Artistic;md5=2e6fd2475335af892494fe1f7327baf3" | ||
7 | # We need gnugrep (for -I) | 3 | # We need gnugrep (for -I) |
8 | DEPENDS = "virtual/db grep-native" | 4 | DEPENDS = "virtual/db grep-native" |
9 | DEPENDS += "gdbm zlib" | 5 | DEPENDS += "gdbm zlib" |
10 | 6 | ||
11 | SRC_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 |
16 | SRC_URI += " \ | 9 | SRC_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 \ |