Skip to content

Commit

Permalink
ftp/cpr: Add cpr 1.6.2
Browse files Browse the repository at this point in the history
C++ Requests is a simple wrapper around libcurl inspired by the excellent Python
Requests project.

Despite its name, libcurl's easy interface is anything but, and making mistakes
misusing it is a common source of error and frustration. Using the more
expressive language facilities of C++11, this library captures the essence of
making network calls into a few concise idioms.

WWW: https://whoshuu.github.io/cpr/
WWW: https://github.com/whoshuu/cpr
  • Loading branch information
sunpoet committed May 2, 2021
1 parent 36fa737 commit 12a2874
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 0 deletions.
1 change: 1 addition & 0 deletions ftp/Makefile
Expand Up @@ -8,6 +8,7 @@
SUBDIR += bftpd
SUBDIR += bsdftpd-ssl
SUBDIR += cmdftp
SUBDIR += cpr
SUBDIR += curl
SUBDIR += curlie
SUBDIR += curlpp
Expand Down
23 changes: 23 additions & 0 deletions ftp/cpr/Makefile
@@ -0,0 +1,23 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>

PORTNAME= cpr
PORTVERSION= 1.6.2
CATEGORIES= ftp

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= C++ Requests: Curl for People

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

LIB_DEPENDS= libcurl.so:ftp/curl

USES= cmake compiler:c++11-lang ssl

CMAKE_OFF= CPR_BUILD_TESTS CPR_BUILD_TESTS_SSL CPR_CURL_NOSIGNAL CPR_FORCE_DARWINSSL_BACKEND CPR_FORCE_WINSSL_BACKEND CPR_GENERATE_COVERAGE CPR_USE_SYSTEM_GTEST
CMAKE_ON= BUILD_SHARED_LIBS CPR_ENABLE_SSL CPR_FORCE_OPENSSL_BACKEND CPR_FORCE_USE_SYSTEM_CURL

GH_ACCOUNT= whoshuu
USE_GITHUB= yes

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions ftp/cpr/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1619910295
SHA256 (whoshuu-cpr-1.6.2_GH0.tar.gz) = c45f9c55797380c6ba44060f0c73713fbd7989eeb1147aedb8723aa14f3afaa3
SIZE (whoshuu-cpr-1.6.2_GH0.tar.gz) = 68856
10 changes: 10 additions & 0 deletions ftp/cpr/pkg-descr
@@ -0,0 +1,10 @@
C++ Requests is a simple wrapper around libcurl inspired by the excellent Python
Requests project.

Despite its name, libcurl's easy interface is anything but, and making mistakes
misusing it is a common source of error and frustration. Using the more
expressive language facilities of C++11, this library captures the essence of
making network calls into a few concise idioms.

WWW: https://whoshuu.github.io/cpr/
WWW: https://github.com/whoshuu/cpr
33 changes: 33 additions & 0 deletions ftp/cpr/pkg-plist
@@ -0,0 +1,33 @@
include/cpr/api.h
include/cpr/auth.h
include/cpr/bearer.h
include/cpr/body.h
include/cpr/callback.h
include/cpr/connect_timeout.h
include/cpr/cookies.h
include/cpr/cpr.h
include/cpr/cprtypes.h
include/cpr/curl_container.h
include/cpr/curlholder.h
include/cpr/digest.h
include/cpr/error.h
include/cpr/limit_rate.h
include/cpr/low_speed.h
include/cpr/max_redirects.h
include/cpr/multipart.h
include/cpr/ntlm.h
include/cpr/parameters.h
include/cpr/payload.h
include/cpr/proxies.h
include/cpr/response.h
include/cpr/session.h
include/cpr/ssl_options.h
include/cpr/status_codes.h
include/cpr/timeout.h
include/cpr/unix_socket.h
include/cpr/user_agent.h
include/cpr/util.h
include/cpr/verbose.h
lib/libcpr.so
lib/libcpr.so.1
lib/libcpr.so.1.6

0 comments on commit 12a2874

Please sign in to comment.