]> code.ossystems Code Review - openembedded-core.git/commitdiff
perl: use perl.inc for target and native perl
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 18 Jun 2015 07:57:22 +0000 (00:57 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Jul 2015 14:38:21 +0000 (15:38 +0100)
It can reduce the duplicated code.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/recipes-devtools/perl/perl-native_5.22.0.bb
meta/recipes-devtools/perl/perl.inc [new file with mode: 0644]
meta/recipes-devtools/perl/perl_5.22.0.bb

index dbfd82d23fe8ce4c131d8072a73c99324720d75c..488871a51d202c904736065f9b33219387dcf2b4 100644 (file)
@@ -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 (file)
index 0000000..0d9716c
--- /dev/null
@@ -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"
index 8022f47275cbb0712c2f8b638c1751ef5ab260c3..e749078a0f80b4e412632ac3bbbb8cff991e2220 100644 (file)
@@ -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 \