svn commit: r475967 - in head/www: . cpr cpr/files
Yuri Victorovich
yuri at FreeBSD.org
Tue Jul 31 03:55:22 UTC 2018
Author: yuri
Date: Tue Jul 31 03:55:19 2018
New Revision: 475967
URL: https://svnweb.freebsd.org/changeset/ports/475967
Log:
New port: www/cpr: Curl for people, a simple wrapper around libcurl
PR: 229962
Submitted by: Maxim Filimonov <che at bein.link>
Added:
head/www/cpr/
head/www/cpr/Makefile (contents, props changed)
head/www/cpr/distinfo (contents, props changed)
head/www/cpr/files/
head/www/cpr/files/patch-cpr_session.cpp (contents, props changed)
head/www/cpr/pkg-descr (contents, props changed)
head/www/cpr/pkg-plist (contents, props changed)
Modified:
head/www/Makefile
Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile Tue Jul 31 02:26:36 2018 (r475966)
+++ head/www/Makefile Tue Jul 31 03:55:19 2018 (r475967)
@@ -94,6 +94,7 @@
SUBDIR += coppermine
SUBDIR += cplanet
SUBDIR += cppcms
+ SUBDIR += cpr
SUBDIR += crawl
SUBDIR += crp
SUBDIR += css-mode.el
Added: head/www/cpr/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/cpr/Makefile Tue Jul 31 03:55:19 2018 (r475967)
@@ -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 at 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>
Added: head/www/cpr/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/cpr/distinfo Tue Jul 31 03:55:19 2018 (r475967)
@@ -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
Added: head/www/cpr/files/patch-cpr_session.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/cpr/files/patch-cpr_session.cpp Tue Jul 31 03:55:19 2018 (r475967)
@@ -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);
+ }
+
Added: head/www/cpr/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/cpr/pkg-descr Tue Jul 31 03:55:19 2018 (r475967)
@@ -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
Added: head/www/cpr/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/cpr/pkg-plist Tue Jul 31 03:55:19 2018 (r475967)
@@ -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
More information about the svn-ports-head
mailing list