mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
New port: www/cpr: Curl for people, a simple wrapper around libcurl
PR: 229962 Submitted by: Maxim Filimonov <che@bein.link>
This commit is contained in:
parent
dde2d7ff93
commit
af28466512
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=475967
@ -94,6 +94,7 @@
|
||||
SUBDIR += coppermine
|
||||
SUBDIR += cplanet
|
||||
SUBDIR += cppcms
|
||||
SUBDIR += cpr
|
||||
SUBDIR += crawl
|
||||
SUBDIR += crp
|
||||
SUBDIR += css-mode.el
|
||||
|
30
www/cpr/Makefile
Normal file
30
www/cpr/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= cpr
|
||||
DISTVERSION= 1.3.0-57
|
||||
DISTVERSIONSUFFIX= -g3d14e61
|
||||
CATEGORIES= www
|
||||
|
||||
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
|
||||
PATCHFILES= 8eb16e267843d18834bf42d9ae4ccfb58f34bdb5.patch:-p1
|
||||
|
||||
MAINTAINER= che@bein.link
|
||||
COMMENT= Curl for people, a simple wrapper around libcurl
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
LIB_DEPENDS= libcurl.so:ftp/curl
|
||||
|
||||
USES= cmake:outsource
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= whoshuu
|
||||
GH_TUPLE= whoshuu:mongoose:df9f7a7:mongoose/opt/mongoose
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
CMAKE_OFF= BUILD_CPR_TESTS
|
||||
CMAKE_ON= BUILD_SHARED_LIBS USE_SYSTEM_CURL
|
||||
|
||||
INSTALL_TARGET= install
|
||||
|
||||
.include <bsd.port.mk>
|
7
www/cpr/distinfo
Normal file
7
www/cpr/distinfo
Normal file
@ -0,0 +1,7 @@
|
||||
TIMESTAMP = 1533009130
|
||||
SHA256 (whoshuu-cpr-1.3.0-57-g3d14e61_GH0.tar.gz) = 14c91766e2f2e2a594212ebcb71b41851402865800f4626559a618a3fd93a2e0
|
||||
SIZE (whoshuu-cpr-1.3.0-57-g3d14e61_GH0.tar.gz) = 34678
|
||||
SHA256 (whoshuu-mongoose-df9f7a7_GH0.tar.gz) = 3bebbb71bf30a9524dba2a434087965e237c86018906dc2af4eaee8bc273b55f
|
||||
SIZE (whoshuu-mongoose-df9f7a7_GH0.tar.gz) = 114812
|
||||
SHA256 (8eb16e267843d18834bf42d9ae4ccfb58f34bdb5.patch) = 240d8eee48d5602c1b6dd69f69e33335da642b618a18002514326ae075e1aa47
|
||||
SIZE (8eb16e267843d18834bf42d9ae4ccfb58f34bdb5.patch) = 1715
|
11
www/cpr/files/patch-cpr_session.cpp
Normal file
11
www/cpr/files/patch-cpr_session.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
--- cpr/session.cpp.orig 2018-07-18 20:02:06 UTC
|
||||
+++ cpr/session.cpp
|
||||
@@ -350,7 +350,7 @@ Response Session::Impl::Patch() {
|
||||
Response Session::Impl::Post() {
|
||||
auto curl = curl_->handle;
|
||||
if (curl) {
|
||||
- curl_easy_setopt(curl, CURLOPT_HTTPGET, 0L);
|
||||
+ curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
|
||||
curl_easy_setopt(curl, CURLOPT_NOBODY, 0L);
|
||||
}
|
||||
|
7
www/cpr/pkg-descr
Normal file
7
www/cpr/pkg-descr
Normal file
@ -0,0 +1,7 @@
|
||||
C++ Requests is a simple wrapper around libcurl inspired by the excellent
|
||||
Python Requests project.
|
||||
|
||||
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://github.com/whoshuu/cpr
|
23
www/cpr/pkg-plist
Normal file
23
www/cpr/pkg-plist
Normal file
@ -0,0 +1,23 @@
|
||||
include/cpr/api.h
|
||||
include/cpr/auth.h
|
||||
include/cpr/body.h
|
||||
include/cpr/cookies.h
|
||||
include/cpr/cpr.h
|
||||
include/cpr/cprtypes.h
|
||||
include/cpr/curlholder.h
|
||||
include/cpr/defines.h
|
||||
include/cpr/digest.h
|
||||
include/cpr/error.h
|
||||
include/cpr/low_speed.h
|
||||
include/cpr/max_redirects.h
|
||||
include/cpr/multipart.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/timeout.h
|
||||
include/cpr/util.h
|
||||
lib/cmake/cpr/cpr-config.cmake
|
||||
lib/libcpr.so
|
Loading…
Reference in New Issue
Block a user