From: Mingli Yu <[email protected]>

* Add new recipe http-date-perl as libwww-perl-perl
  rdepends on http-date-perl

Signed-off-by: Mingli Yu <[email protected]>
---
 meta/recipes-devtools/perl/http-date-perl_6.02.bb | 31 +++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 meta/recipes-devtools/perl/http-date-perl_6.02.bb

diff --git a/meta/recipes-devtools/perl/http-date-perl_6.02.bb 
b/meta/recipes-devtools/perl/http-date-perl_6.02.bb
new file mode 100644
index 0000000..aa7995d
--- /dev/null
+++ b/meta/recipes-devtools/perl/http-date-perl_6.02.bb
@@ -0,0 +1,31 @@
+DESCRIPTION = "This module provides functions that deal the date formats used 
by the \
+HTTP protocol (and then some more). Only the first two functions, \
+time2str() and \
+str2time(), are exported by default."
+
+SECTION = "libs"
+LICENSE = "Artistic-1.0 | GPL-2.0"
+PR = "r0"
+
+MAINTAINER=    "Poky <[email protected]>"
+HOMEPAGE=      "https://metacpan.org/release/HTTP-Date";
+
+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 
\
+file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI = 
"http://cpan.metacpan.org/authors/id/G/GA/GAAS/HTTP-Date-${PV}.tar.gz";
+
+SRC_URI[md5sum] = "52b7a0d5982d61be1edb217751d7daba"
+SRC_URI[sha256sum] = 
"e8b9941da0f9f0c9c01068401a5e81341f0e3707d1c754f8e11f42a7e629e333"
+RRECOMMENDS_${PN} += "libtimedate-perl"
+
+S = "${WORKDIR}/HTTP-Date-${PV}"
+
+inherit cpan
+
+do_compile() {
+       export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 
'libc-*.so')"
+       cpan_do_compile
+}
+
+BBCLASSEXTEND = "native"
-- 
2.8.1

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to