From: Mingli Yu <[email protected]>

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

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

diff --git a/meta/recipes-devtools/perl/net-http-perl_6.09.bb 
b/meta/recipes-devtools/perl/net-http-perl_6.09.bb
new file mode 100644
index 0000000..87959ad
--- /dev/null
+++ b/meta/recipes-devtools/perl/net-http-perl_6.09.bb
@@ -0,0 +1,33 @@
+DESCRIPTION = "The \"Net::HTTP\" class is a low-level HTTP client. An instance 
of the \
+\"Net::HTTP\" class represents a connection to an HTTP server. The HTTP \
+protocol is described in RFC 2616. The \"Net::HTTP\" class supports \
+\"HTTP/1.0\" and \"HTTP/1.1\"."
+
+SECTION = "libs"
+LICENSE = "Artistic-1.0 | GPL-2.0"
+PR = "r0"
+
+MAINTAINER=    "Poky <[email protected]>"
+HOMEPAGE=      "https://metacpan.org/release/Net-HTTP";
+
+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 
\
+file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI = 
"https://cpan.metacpan.org/authors/id/E/ET/ETHER/Net-HTTP-${PV}.tar.gz";
+
+SRC_URI[md5sum] = "3d84d17f64c7316d69e7eb7b4e292b9a"
+SRC_URI[sha256sum] = 
"52762b939d84806908ba544581c5708375f7938c3c0e496c128ca3fbc425e58d"
+RDEPENDS_${PN} += "uri-perl"
+RDEPENDS_${PN} += "io-compress-perl"
+RRECOMMENDS_${PN} += "io-socket-ssl-perl"
+
+S = "${WORKDIR}/Net-HTTP-${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