View | Details | Raw Unified | Return to bug 273875
Collapse All | Expand All

(-)b/ftp/coeurl/Makefile (-4 / +4 lines)
Lines 1-6 Link Here
1
PORTNAME=	coeurl
1
PORTNAME=	coeurl
2
DISTVERSIONPREFIX=v
2
DISTVERSIONPREFIX=v
3
DISTVERSION=	0.3.0
3
DISTVERSION=	0.3.0
4
PORTREVISION=	1
4
CATEGORIES=	ftp www
5
CATEGORIES=	ftp www
5
6
6
MAINTAINER=	adridg@FreeBSD.org
7
MAINTAINER=	adridg@FreeBSD.org
Lines 10-22 WWW= https://nheko.im/nheko-reborn/coeurl Link Here
10
LICENSE=	MIT
11
LICENSE=	MIT
11
LICENSE_FILE=	${WRKSRC}/LICENSE
12
LICENSE_FILE=	${WRKSRC}/LICENSE
12
13
13
LIB_DEPENDS=	\
14
LIB_DEPENDS=	libcurl.so:ftp/curl \
14
		libcurl.so:ftp/curl \
15
		libevent.so:devel/libevent \
15
		libevent.so:devel/libevent \
16
		libfmt.so:devel/libfmt \
16
		libspdlog.so:devel/spdlog
17
		libspdlog.so:devel/spdlog
17
18
18
USES=		compiler:c++17-lang pkgconfig \
19
USES=		compiler:c++17-lang meson pkgconfig tar:xz
19
		meson tar:xz
20
20
21
USE_GITLAB=	yes
21
USE_GITLAB=	yes
22
GL_SITE=	https://nheko.im/
22
GL_SITE=	https://nheko.im/
(-)b/ftp/coeurl/files/patch-lib_client.cpp (+19 lines)
Added Link Here
1
--- lib/client.cpp.orig	2023-01-10 04:14:36 UTC
2
+++ lib/client.cpp
3
@@ -6,6 +6,7 @@
4
 #include <thread>
5
 
6
 #include "coeurl/request.hpp"
7
+#include "coeurl/errors.hpp"
8
 
9
 namespace coeurl {
10
 std::shared_ptr<spdlog::logger> Client::log = spdlog::null_logger_mt("coeurl_null");
11
@@ -352,7 +353,7 @@ void Client::remove_request(Request *r) {
12
         long http_code;
13
         curl_easy_getinfo(req->easy, CURLINFO_RESPONSE_CODE, &http_code);
14
 
15
-        Client::log->trace("DONE: {} => {} ({}) http: {}", req->url_, req->curl_error, req->error, http_code);
16
+        Client::log->trace("DONE: {} => {} ({}) http: {}", req->url_, coeurl::to_string(req->curl_error), req->error, http_code);
17
 
18
         if (req->on_complete_)
19
             req->on_complete_(*req.get());

Return to bug 273875