[OE-core] [PATCH 11/21] lwp-mediatypes-perl: add new recipe

mingli.yu at windriver.com mingli.yu at windriver.com
Mon Aug 29 02:16:29 UTC 2016


From: Mingli Yu <Mingli.Yu at windriver.com>

* Add new recipe lwp-mediatypes-perl as libwww-perl-perl
  rdepends on lwp-mediatypes-perl

Signed-off-by: Mingli Yu <Mingli.Yu at windriver.com>
---
 .../perl/lwp-mediatypes-perl_6.02.bb               | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 meta/recipes-devtools/perl/lwp-mediatypes-perl_6.02.bb

diff --git a/meta/recipes-devtools/perl/lwp-mediatypes-perl_6.02.bb b/meta/recipes-devtools/perl/lwp-mediatypes-perl_6.02.bb
new file mode 100644
index 0000000..513bac9
--- /dev/null
+++ b/meta/recipes-devtools/perl/lwp-mediatypes-perl_6.02.bb
@@ -0,0 +1,32 @@
+DESCRIPTION = "This module provides functions for handling media (also known as MIME) \
+types and encodings. The mapping from file extensions to media types is \
+defined by \
+the media.types file. If the ~/.media.types file exists it is used \
+instead. \
+For backwards compatibility we will also look for ~/.mime.types."
+
+SECTION = "libs"
+LICENSE = "Artistic-1.0 | GPL-2.0"
+PR = "r0"
+
+MAINTAINER=	"Poky <poky at yoctoproject.org>"
+HOMEPAGE=	"https://metacpan.org/release/LWP-MediaTypes"
+
+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/LWP-MediaTypes-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "8c5f25fb64b974d22aff424476ba13c9"
+SRC_URI[sha256sum] = "18790b0cc5f0a51468495c3847b16738f785a2d460403595001e0b932e5db676"
+
+S = "${WORKDIR}/LWP-MediaTypes-${PV}"
+
+inherit cpan
+
+do_compile() {
+	export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
+	cpan_do_compile
+}
+
+BBCLASSEXTEND = "native"
-- 
2.8.1




More information about the Openembedded-core mailing list