From 3f26af624bafd562647d83dcad32fde6e8977a69 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 21 May 2015 18:12:13 +0800 Subject: [PATCH] perl/json: Add two libraries needed for perl/JSON handling Besides DBI we need the JSON module. As far as I can see JSON can use JSON:XS as a fast encoder/decoder. This is why both libraries need to be provided. --- recipes-extra/perl-json/libjson-perl_2.90.bb | 20 +++++++++++++++++++ .../perl-json/libjson-xs-perl_3.01.bb | 19 ++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 recipes-extra/perl-json/libjson-perl_2.90.bb create mode 100644 recipes-extra/perl-json/libjson-xs-perl_3.01.bb diff --git a/recipes-extra/perl-json/libjson-perl_2.90.bb b/recipes-extra/perl-json/libjson-perl_2.90.bb new file mode 100644 index 0000000..e1d78eb --- /dev/null +++ b/recipes-extra/perl-json/libjson-perl_2.90.bb @@ -0,0 +1,20 @@ +SUMMARY = "The Perl JSON API" +DESCRIPTION = "" +HOMEPAGE = "http://search.cpan.org/~makamaka/JSON-2.90/lib/JSON.pm" +SECTION = "libs" +LICENSE = "Artistic-1.0 | GPL-1.0+" +RDEPENDS_${PN} = " perl-module-carp \ + libjson-perl-xs \ +" + +LIC_FILES_CHKSUM = "file://MYMETA.yml;md5=0493d966114fbe8a4d6e2013cefa60ca" + +SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MA/MAKAMAKA/JSON-${PV}.tar.gz" +SRC_URI[md5sum] = "e1512169a623e790a3f69b599cc1d3b9" +SRC_URI[sha256sum] = "4ddbb3cb985a79f69a34e7c26cde1c81120d03487e87366f9a119f90f7bdfe88" + +S = "${WORKDIR}/JSON-${PV}" + +inherit cpan + +BBCLASSEXTEND = "native" diff --git a/recipes-extra/perl-json/libjson-xs-perl_3.01.bb b/recipes-extra/perl-json/libjson-xs-perl_3.01.bb new file mode 100644 index 0000000..a7b905a --- /dev/null +++ b/recipes-extra/perl-json/libjson-xs-perl_3.01.bb @@ -0,0 +1,19 @@ +SUMMARY = "The Perl JSON API" +DESCRIPTION = "" +HOMEPAGE = "http://search.cpan.org/~makamaka/JSON-2.90/lib/JSON.pm" +SECTION = "libs" +LICENSE = "Artistic-1.0 | GPL-1.0+" +RDEPENDS_${PN} = " perl-module-encoding \ +" + +LIC_FILES_CHKSUM = "file://COPYING;md5=043dba8b278e1db1b0ef93f30140b02b" + +SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/JSON-XS-${PV}.tar.gz" +SRC_URI[md5sum] = "b7be65295baf6dd9233c6494782c1153" +SRC_URI[sha256sum] = "4e8df3256a5aa9ed304ce1bbcd9140737deef31ba847bff9f4c15480c88c71ab" + +S = "${WORKDIR}/JSON-XS-${PV}" + +inherit cpan + +BBCLASSEXTEND = "native"