From owner-svn-ports-all@freebsd.org Tue Apr 23 17:52:38 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2051915A11CF; Tue, 23 Apr 2019 17:52:38 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B72EA842CF; Tue, 23 Apr 2019 17:52:37 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 91082F4; Tue, 23 Apr 2019 17:52:37 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x3NHqbnJ020799; Tue, 23 Apr 2019 17:52:37 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x3NHqa6h020792; Tue, 23 Apr 2019 17:52:36 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201904231752.x3NHqa6h020792@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Tue, 23 Apr 2019 17:52:36 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r499772 - in head/www: . p5-HTTP-Simple X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/www: . p5-HTTP-Simple X-SVN-Commit-Revision: 499772 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: B72EA842CF X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.971,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Apr 2019 17:52:38 -0000 Author: sunpoet Date: Tue Apr 23 17:52:36 2019 New Revision: 499772 URL: https://svnweb.freebsd.org/changeset/ports/499772 Log: Add p5-HTTP-Simple 0.002 HTTP::Simple is a wrapper of HTTP::Tiny that provides simplified functions for performing HTTP requests in a similar manner to LWP::Simple, but with slightly more useful error handling. For full control of the request process and response handling, use HTTP::Tiny directly. IO::Socket::SSL is required for HTTPS requests with HTTP::Tiny. Request methods that return the body content of the response will return a byte string suitable for directly printing, but that may need to be decoded for text operations. The HTTP::Tiny object used by these functions to make requests can be accessed as $HTTP::Simple::UA (for example, to configure the timeout, or replace it with a compatible object like HTTP::Tinyish). The JSON encoder used by the JSON functions defaults to a JSON::PP instance, and can be accessed as $HTTP::Simple::JSON. WWW: https://metacpan.org/release/HTTP-Simple Added: head/www/p5-HTTP-Simple/ head/www/p5-HTTP-Simple/Makefile (contents, props changed) head/www/p5-HTTP-Simple/distinfo (contents, props changed) head/www/p5-HTTP-Simple/pkg-descr (contents, props changed) head/www/p5-HTTP-Simple/pkg-plist (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Tue Apr 23 17:18:13 2019 (r499771) +++ head/www/Makefile Tue Apr 23 17:52:36 2019 (r499772) @@ -993,6 +993,7 @@ SUBDIR += p5-HTTP-Session-State-MobileAgentID SUBDIR += p5-HTTP-Session-Store-DBI SUBDIR += p5-HTTP-Session2 + SUBDIR += p5-HTTP-Simple SUBDIR += p5-HTTP-SimpleLinkChecker SUBDIR += p5-HTTP-Size SUBDIR += p5-HTTP-Thin Added: head/www/p5-HTTP-Simple/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/p5-HTTP-Simple/Makefile Tue Apr 23 17:52:36 2019 (r499772) @@ -0,0 +1,24 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= HTTP-Simple +PORTVERSION= 0.002 +CATEGORIES= www perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Simple procedural interface to HTTP::Tiny + +LICENSE= ART20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-IO-Socket-SSL>=0:security/p5-IO-Socket-SSL + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include Added: head/www/p5-HTTP-Simple/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/p5-HTTP-Simple/distinfo Tue Apr 23 17:52:36 2019 (r499772) @@ -0,0 +1,3 @@ +TIMESTAMP = 1556035811 +SHA256 (HTTP-Simple-0.002.tar.gz) = 2fd86af56b8d70faa29d2b606724fd5264c725c053dc0d665e4438ca03207bab +SIZE (HTTP-Simple-0.002.tar.gz) = 18492 Added: head/www/p5-HTTP-Simple/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/p5-HTTP-Simple/pkg-descr Tue Apr 23 17:52:36 2019 (r499772) @@ -0,0 +1,19 @@ +HTTP::Simple is a wrapper of HTTP::Tiny that provides simplified functions for +performing HTTP requests in a similar manner to LWP::Simple, but with slightly +more useful error handling. For full control of the request process and response +handling, use HTTP::Tiny directly. + +IO::Socket::SSL is required for HTTPS requests with HTTP::Tiny. + +Request methods that return the body content of the response will return a byte +string suitable for directly printing, but that may need to be decoded for text +operations. + +The HTTP::Tiny object used by these functions to make requests can be accessed +as $HTTP::Simple::UA (for example, to configure the timeout, or replace it with +a compatible object like HTTP::Tinyish). + +The JSON encoder used by the JSON functions defaults to a JSON::PP instance, and +can be accessed as $HTTP::Simple::JSON. + +WWW: https://metacpan.org/release/HTTP-Simple Added: head/www/p5-HTTP-Simple/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/p5-HTTP-Simple/pkg-plist Tue Apr 23 17:52:36 2019 (r499772) @@ -0,0 +1,2 @@ +%%SITE_PERL%%/HTTP/Simple.pm +%%PERL5_MAN3%%/HTTP::Simple.3.gz