Index: Makefile =================================================================== --- Makefile (revision 475107) +++ Makefile (working copy) @@ -94,6 +94,7 @@ SUBDIR += coppermine SUBDIR += cplanet SUBDIR += cppcms + SUBDIR += cpr SUBDIR += crawl Index: cpr/Makefile =================================================================== --- cpr/Makefile (nonexistent) +++ cpr/Makefile (working copy) @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= cpr +PORTVERSION= 1.3.0 +CATEGORIES= www + +MAINTAINER=che@bein.link +COMMENT= Curl for People + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS=curl:ftp/curl + +USES= cmake +CMAKE_OFF= BUILD_CPR_TESTS +CMAKE_ON= USE_SYSTEM_CURL + +USE_GITHUB= YES +GH_ACCOUNT= whoshuu +GH_PROJECT= googletest:googletest mongoose:mongoose +GH_TAGNAME= ${PORTVERSION} 3be1ef9:googletest df9f7a7:mongoose +GH_SUBDIR= opt/googletest:googletest opt/mongoose:mongoose + +INSTALL_TARGET= install + +.include Property changes on: cpr/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: cpr/distinfo =================================================================== --- cpr/distinfo (nonexistent) +++ cpr/distinfo (working copy) @@ -0,0 +1,9 @@ +TIMESTAMP = 1531423394 +SHA256 (whoshuu-cpr-1.3.0_GH0.tar.gz) = 82597627e8b2aef1f0482631c9b11595c63a7565bb462a5995d126da4419ac99 +SIZE (whoshuu-cpr-1.3.0_GH0.tar.gz) = 33594 +SHA256 (whoshuu-curl-3ea7679_GH0.tar.gz) = ec60a73e4b6f23ace8b85f2e7c871a86163f4166ed41439ca34a21047386f17e +SIZE (whoshuu-curl-3ea7679_GH0.tar.gz) = 2691751 +SHA256 (whoshuu-googletest-3be1ef9_GH0.tar.gz) = 0a16b591bf078e8005ac62e156c2a5c55e46c536f04e89f08e581818ad045b48 +SIZE (whoshuu-googletest-3be1ef9_GH0.tar.gz) = 487746 +SHA256 (whoshuu-mongoose-df9f7a7_GH0.tar.gz) = 3bebbb71bf30a9524dba2a434087965e237c86018906dc2af4eaee8bc273b55f +SIZE (whoshuu-mongoose-df9f7a7_GH0.tar.gz) = 114812 Property changes on: cpr/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: cpr/files/patch-CMakeLists.txt =================================================================== --- cpr/files/patch-CMakeLists.txt (nonexistent) +++ cpr/files/patch-CMakeLists.txt (working copy) @@ -0,0 +1,9 @@ +--- CMakeLists.txt.orig 2018-07-18 21:24:46 UTC ++++ CMakeLists.txt +@@ -74,3 +74,6 @@ add_subdirectory(cpr) + if(BUILD_CPR_TESTS) + add_subdirectory(test) + endif() ++ ++install(DIRECTORY include/cpr DESTINATION include) ++install(FILES cpr-config.cmake DESTINATION lib/cmake/cpr) Property changes on: cpr/files/patch-CMakeLists.txt ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: cpr/files/patch-cpr-config.cmake =================================================================== --- cpr/files/patch-cpr-config.cmake (nonexistent) +++ cpr/files/patch-cpr-config.cmake (working copy) @@ -0,0 +1,21 @@ +--- cpr-config.cmake.orig 2018-07-18 20:06:59 UTC ++++ cpr-config.cmake +@@ -11,11 +11,15 @@ + # file that uses this interface + + find_path(CPR_INCLUDE_DIR +- NAMES cpr.h) ++ NAMES cpr/cpr.h ++ PATHS ++ /usr/local/include) + + find_library(CPR_LIBRARY +- NAMES cpr +- HINTS ${CPR_LIBRARY_ROOT}) ++ NAMES cpr ++ PATHS ++ /usr/local/lib ++ ) + + include(FindPackageHandleStandardArgs) + find_package_handle_standard_args(CPR REQUIRED_VARS CPR_LIBRARY CPR_INCLUDE_DIR) Property changes on: cpr/files/patch-cpr-config.cmake ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: cpr/files/patch-cpr_CMakeLists.txt =================================================================== --- cpr/files/patch-cpr_CMakeLists.txt (nonexistent) +++ cpr/files/patch-cpr_CMakeLists.txt (working copy) @@ -0,0 +1,8 @@ +--- cpr/CMakeLists.txt.orig 2018-07-18 21:27:14 UTC ++++ cpr/CMakeLists.txt +@@ -45,3 +45,5 @@ add_library(${CPR_LIBRARIES} + message(STATUS "Using CURL_LIBRARIES: ${CURL_LIBRARIES}.") + target_link_libraries(${CPR_LIBRARIES} + ${CURL_LIBRARIES}) ++ ++install(TARGETS ${CPR_LIBRARIES} ARCHIVE DESTINATION lib) Property changes on: cpr/files/patch-cpr_CMakeLists.txt ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: cpr/files/patch-cpr_session.cpp =================================================================== --- cpr/files/patch-cpr_session.cpp (nonexistent) +++ cpr/files/patch-cpr_session.cpp (working copy) @@ -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); + } + Property changes on: cpr/files/patch-cpr_session.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: cpr/pkg-descr =================================================================== --- cpr/pkg-descr (nonexistent) +++ cpr/pkg-descr (working copy) @@ -0,0 +1,4 @@ +C++ Requests is a simple wrapper around libcurl inspired by the excellent +Python Requests project. + +WWW: https://github.com/whoshuu/cpr Property changes on: cpr/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: cpr/pkg-plist =================================================================== --- cpr/pkg-plist (nonexistent) +++ cpr/pkg-plist (working copy) @@ -0,0 +1,23 @@ +lib/libcpr.a +lib/cmake/cpr/cpr-config.cmake +include/cpr/ssl_options.h +include/cpr/auth.h +include/cpr/parameters.h +include/cpr/util.h +include/cpr/cookies.h +include/cpr/defines.h +include/cpr/body.h +include/cpr/low_speed.h +include/cpr/digest.h +include/cpr/cpr.h +include/cpr/cprtypes.h +include/cpr/api.h +include/cpr/proxies.h +include/cpr/payload.h +include/cpr/session.h +include/cpr/response.h +include/cpr/curlholder.h +include/cpr/multipart.h +include/cpr/max_redirects.h +include/cpr/timeout.h +include/cpr/error.h Property changes on: cpr/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property