Add p5-JSON-API 1.1.0, module to interact with a JSON API.

This commit is contained in:
Emanuel Haupt 2017-03-26 13:42:26 +00:00
parent 3275ef39ad
commit de069389fb
5 changed files with 41 additions and 0 deletions

View file

@ -1055,6 +1055,7 @@
SUBDIR += p5-Image-Delivery
SUBDIR += p5-Interchange6
SUBDIR += p5-JE
SUBDIR += p5-JSON-API
SUBDIR += p5-Jemplate
SUBDIR += p5-Jifty
SUBDIR += p5-Kwiki

29
www/p5-JSON-API/Makefile Normal file
View file

@ -0,0 +1,29 @@
# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
# $FreeBSD$
PORTNAME= JSON-API
PORTVERSION= 1.1.0
DISTVERSIONPREFIX= v
CATEGORIES= www perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Module to interact with a JSON API
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
BUILD_DEPENDS= p5-JSON>=2:converters/p5-JSON \
p5-libwww>=0:www/p5-libwww \
p5-URI-Encode>0:www/p5-URI-Encode
RUN_DEPENDS:= ${BUILD_DEPENDS}
TEST_DEPENDS= p5-IO-Capture>=0:devel/p5-IO-Capture \
p5-Test-Fake-HTTPD>=0:devel/p5-Test-Fake-HTTPD \
p5-Test-Pod-Coverage>=0:devel/p5-Test-Pod-Coverage
USES= perl5
USE_PERL5= modbuild
NO_ARCH= yes
.include <bsd.port.mk>

3
www/p5-JSON-API/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1490534196
SHA256 (JSON-API-v1.1.0.tar.gz) = 29724b5db667c51ba5a31c259389c6f70faa9081a43a74699dea3a30365d6ce9
SIZE (JSON-API-v1.1.0.tar.gz) = 19841

View file

@ -0,0 +1,6 @@
This module wraps JSON and LWP::UserAgent to create a flexible utility for
accessing APIs that accept/provide JSON data.
It supports all the options LWP supports, including authentication.
WWW: http://search.cpan.org/dist/JSON-API/

View file

@ -0,0 +1,2 @@
%%SITE_PERL%%/JSON/API.pm
%%PERL5_MAN3%%/JSON::API.3.gz