[oe-commits] Robert Yang : perl: use perl.inc for target and native perl
git at git.openembedded.org
git at git.openembedded.org
Sun Jun 28 12:38:55 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: 90b0e0d3a1be56dc10f4dd504283e4263eee1637
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=90b0e0d3a1be56dc10f4dd504283e4263eee1637
Author: Robert Yang <liezhi.yang at windriver.com>
Date: Thu Jun 18 00:57:22 2015 -0700
perl: use perl.inc for target and native perl
It can reduce the duplicated code.
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
meta/recipes-devtools/perl/perl-native_5.22.0.bb | 12 ++----------
meta/recipes-devtools/perl/perl.inc | 8 ++++++++
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 dbfd82d..488871a 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 @@
-SUMMARY = "Perl scripting language"
-HOMEPAGE = "http://www.perl.org/"
-SECTION = "libs"
-LICENSE = "Artistic-1.0 | GPL-1.0+"
+require perl.inc
-LIC_FILES_CHKSUM = "file://Copying;md5=5b122a36d0f6dc55279a0ebc69f3c60b \
- file://Artistic;md5=2e6fd2475335af892494fe1f7327baf3"
-
-SRC_URI = "http://www.cpan.org/src/5.0/${BP}.tar.xz \
+SRC_URI += "\
file://Configure-multilib.patch \
file://perl-configpm-switch.patch \
file://native-nopacklist.patch \
@@ -19,8 +13,6 @@ SRC_URI = "http://www.cpan.org/src/5.0/${BP}.tar.xz \
SRC_URI[md5sum] = "ff0f09b17de426eff323426cb140ee79"
SRC_URI[sha256sum] = "be83ead0c5c26cbbe626fa4bac1a4beabe23a9eebc15d35ba49ccde11878e196"
-S = "${WORKDIR}/perl-${PV}"
-
inherit native
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 0000000..0d9716c
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl.inc
@@ -0,0 +1,8 @@
+SUMMARY = "Perl scripting language"
+HOMEPAGE = "http://www.perl.org/"
+SECTION = "devel"
+LICENSE = "Artistic-1.0 | GPL-1.0+"
+LIC_FILES_CHKSUM = "file://Copying;md5=5b122a36d0f6dc55279a0ebc69f3c60b \
+ file://Artistic;md5=2e6fd2475335af892494fe1f7327baf3"
+
+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 8022f47..e749078 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 @@
-SUMMARY = "Perl scripting language"
-HOMEPAGE = "http://www.perl.org/"
-SECTION = "devel"
-LICENSE = "Artistic-1.0 | GPL-1.0+"
-LIC_FILES_CHKSUM = "file://Copying;md5=5b122a36d0f6dc55279a0ebc69f3c60b \
- file://Artistic;md5=2e6fd2475335af892494fe1f7327baf3"
+require perl.inc
+
# We need gnugrep (for -I)
DEPENDS = "virtual/db grep-native"
DEPENDS += "gdbm zlib"
-SRC_URI = "http://www.cpan.org/src/5.0/${BP}.tar.xz \
-"
-
# Pick up patches from debian
# http://ftp.de.debian.org/debian/pool/main/p/perl/perl_5.22.0-1.debian.tar.xz
SRC_URI += " \
@@ -54,11 +47,9 @@ SRC_URI += " \
file://native-perlinc.patch \
file://perl-enable-gdbm.patch \
file://cross-generate_uudmap.patch \
- file://fix_bad_rpath.patch \
- file://perl-archlib-exp.patch \
- file://dynaloaderhack.patch \
- \
- \
+ file://fix_bad_rpath.patch \
+ file://perl-archlib-exp.patch \
+ file://dynaloaderhack.patch \
file://config.sh \
file://config.sh-32 \
file://config.sh-32-le \
More information about the Openembedded-commits
mailing list