From nobody Sat Nov 20 22:30:31 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 60F381896F2B; Sat, 20 Nov 2021 22:30:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HxSsh0Xlmz3M7Q; Sat, 20 Nov 2021 22:30:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D3FB223F6A; Sat, 20 Nov 2021 22:30:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1AKMUVqb093622; Sat, 20 Nov 2021 22:30:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AKMUVKG093610; Sat, 20 Nov 2021 22:30:31 GMT (envelope-from git) Date: Sat, 20 Nov 2021 22:30:31 GMT Message-Id: <202111202230.1AKMUVKG093610@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Adriaan de Groot Subject: git: ba53edfff7f3 - main - ftp/coeurl: New port, C++ wrapper around libcurl List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: adridg X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ba53edfff7f33f38bb7ecf19f813d39ba5729edd Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by adridg: URL: https://cgit.FreeBSD.org/ports/commit/?id=ba53edfff7f33f38bb7ecf19f813d39ba5729edd commit ba53edfff7f33f38bb7ecf19f813d39ba5729edd Author: Adriaan de Groot AuthorDate: 2021-11-20 22:07:56 +0000 Commit: Adriaan de Groot CommitDate: 2021-11-20 22:30:28 +0000 ftp/coeurl: New port, C++ wrapper around libcurl Functionally, This seems to be an awful lot like ftp/curlpp, but consumers want something else. This is part of the mtxclient and nheko Matrix stack. --- ftp/Makefile | 1 + ftp/coeurl/Makefile | 25 +++++++++++++++++++++++++ ftp/coeurl/distinfo | 3 +++ ftp/coeurl/pkg-descr | 5 +++++ ftp/coeurl/pkg-plist | 7 +++++++ 5 files changed, 41 insertions(+) diff --git a/ftp/Makefile b/ftp/Makefile index 927c8e8f9344..5f9c9638ce9c 100644 --- a/ftp/Makefile +++ b/ftp/Makefile @@ -8,6 +8,7 @@ SUBDIR += bftpd SUBDIR += bsdftpd-ssl SUBDIR += cmdftp + SUBDIR += coeurl SUBDIR += curl SUBDIR += curlie SUBDIR += curlpp diff --git a/ftp/coeurl/Makefile b/ftp/coeurl/Makefile new file mode 100644 index 000000000000..8e7ab363cc58 --- /dev/null +++ b/ftp/coeurl/Makefile @@ -0,0 +1,25 @@ +PORTNAME= coeurl +DISTVERSIONPREFIX=v +DISTVERSION= 0.1.0 +CATEGORIES= ftp www + +MAINTAINER= adridg@FreeBSD.org +COMMENT= Simple async wrapper around CURL for C++ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= \ + libcurl.so:ftp/curl \ + libevent.so:devel/libevent \ + libspdlog.so:devel/spdlog + +USES= compiler:c++17-lang pkgconfig \ + meson tar:xz + +USE_GITLAB= yes +GL_SITE= https://nheko.im/ +GL_ACCOUNT= nheko-reborn +GL_COMMIT= a08f619adaa1ccd34eb6315d6578eddae0d1cc9b + +.include diff --git a/ftp/coeurl/distinfo b/ftp/coeurl/distinfo new file mode 100644 index 000000000000..3b3f2ff15ab3 --- /dev/null +++ b/ftp/coeurl/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1637438851 +SHA256 (nheko-reborn-coeurl-a08f619adaa1ccd34eb6315d6578eddae0d1cc9b_GL0.tar.gz) = fee0dc804699d99b01b994943d2a64178b9ca1827d4b1cb4f27d7d34d8235ce8 +SIZE (nheko-reborn-coeurl-a08f619adaa1ccd34eb6315d6578eddae0d1cc9b_GL0.tar.gz) = 51155 diff --git a/ftp/coeurl/pkg-descr b/ftp/coeurl/pkg-descr new file mode 100644 index 000000000000..7e2f95c9b858 --- /dev/null +++ b/ftp/coeurl/pkg-descr @@ -0,0 +1,5 @@ +Simple library to do http requests asynchronously via CURL in C++. +(Eventually as coroutines, once all the compilers I need to support +support them.) This is based on the CURL-libevent example. + +WWW: https://nheko.im/nheko-reborn/coeurl diff --git a/ftp/coeurl/pkg-plist b/ftp/coeurl/pkg-plist new file mode 100644 index 000000000000..2e9882675a3f --- /dev/null +++ b/ftp/coeurl/pkg-plist @@ -0,0 +1,7 @@ +include/coeurl/client.hpp +include/coeurl/headers.hpp +include/coeurl/request.hpp +lib/libcoeurl.so +lib/libcoeurl.so.0 +lib/libcoeurl.so.0.1.0 +libdata/pkgconfig/coeurl.pc