Browse Source

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.
neels/inmarsat
Holger Hans Peter Freyther 7 years ago
parent
commit
3f26af624b
  1. 20
      recipes-extra/perl-json/libjson-perl_2.90.bb
  2. 19
      recipes-extra/perl-json/libjson-xs-perl_3.01.bb

20
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"

19
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"
Loading…
Cancel
Save