From patchwork Wed Jun 17 12:02:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dale Mellor X-Patchwork-Id: 22764 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 983BD27BBE1; Wed, 17 Jun 2020 13:59:31 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, MIME_BASE64_TEXT,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id B9C0227BBE3 for ; Wed, 17 Jun 2020 13:59:29 +0100 (BST) Received: from localhost ([::1]:46202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlXf7-0006Lp-4g for patchwork@mira.cbaines.net; Wed, 17 Jun 2020 08:59:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlXQA-0003Xx-E2 for guix-patches@gnu.org; Wed, 17 Jun 2020 08:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39162) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jlXQA-0004uL-58 for guix-patches@gnu.org; Wed, 17 Jun 2020 08:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jlXQA-0002nd-2p for guix-patches@gnu.org; Wed, 17 Jun 2020 08:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41919] [patch] Add curlpp C++ bindings to curl package Resent-From: Dale Mellor Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 17 Jun 2020 12:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41919 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41919@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159239779310684 (code B ref -1); Wed, 17 Jun 2020 12:44:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jun 2020 12:43:13 +0000 Received: from localhost ([127.0.0.1]:50704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlXPL-0002m8-7o for submit@debbugs.gnu.org; Wed, 17 Jun 2020 08:43:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:42128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlWll-0007V8-9p for submit@debbugs.gnu.org; Wed, 17 Jun 2020 08:02:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlWlk-00048M-QQ for guix-patches@gnu.org; Wed, 17 Jun 2020 08:02:17 -0400 Received: from rdmp.org ([52.19.174.175]:38416) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlWli-0006Xi-3m for guix-patches@gnu.org; Wed, 17 Jun 2020 08:02:16 -0400 Received: from [127.0.0.1] (helo=localhost) by rdmp.org with esmtp (Exim 4.92) (envelope-from ) id 1jlWld-0002KH-I6 for guix-patches@gnu.org; Wed, 17 Jun 2020 12:02:09 +0000 Message-ID: From: Dale Mellor Date: Wed, 17 Jun 2020 13:02:09 +0100 Organization: DM Bespoke Computer Solutions Ltd User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Received-SPF: softfail client-ip=52.19.174.175; envelope-from=guix-devel-0brg6b@rdmp.org; helo=rdmp.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/17 08:02:09 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, MIME_BASE64_TEXT=1.741, SPF_HELO_SOFTFAIL=0.732, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Wed, 17 Jun 2020 08:43:10 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 17 Jun 2020 08:59:10 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From 36c628cd27c2c6f281ec800767ba0e514fae13b1 Mon Sep 17 00:00:00 2001 From: Dale Mellor Date: Wed, 17 Jun 2020 12:42:54 +0100 Subject: [PATCH] gnu: Add curlpp library. * gnu/packages/curl.scm (curlpp): New variable. --- gnu/packages/curl.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm index 48d7dd40bd..f7dc7161de 100644 --- a/gnu/packages/curl.scm +++ b/gnu/packages/curl.scm @@ -10,6 +10,7 @@ ;;; Copyright © 2018 Roel Janssen ;;; Copyright © 2019 Ricardo Wurmus ;;; Copyright © 2020 Jakub Kądziołka +;;; Copyright © 2020 Dale Mellor ;;; ;;; This file is part of GNU Guix. ;;; @@ -32,10 +33,12 @@ #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix utils) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system go) #:use-module (gnu packages) #:use-module (gnu packages compression) + #:use-module (gnu packages gawk) #:use-module (gnu packages golang) #:use-module (gnu packages guile) #:use-module (gnu packages kerberos) @@ -258,3 +261,32 @@ not offer a replacement for libcurl.") Guile to do client-side URL transfers, like requesting documents from HTTP or FTP servers. It is based on the curl library.") (license license:gpl3+))) + +(define-public curlpp + (package + (name "curlpp") + (version "0.8.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jpbarrette/curlpp.git") + (commit "v0.8.1"))) + (sha256 + (base32 "1b0ylnnrhdax4kwjq64r1fk0i24n5ss6zfzf4hxwgslny01xiwrk")))) + (build-system cmake-build-system) + (arguments `(#:phases (modify-phases %standard-phases (delete 'check)))) + (propagated-inputs `(("curl" ,curl))) + (synopsis "C++ wrapper around libcURL") + (description + "A free and easy-to-use client-side C++ URL transfer library, +supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE and LDAP. The +curlpp library supports HTTPS certificates, HTTP POST, HTTP PUT, FTP +uploading, kerberos, HTTP form based upload, proxies, cookies, user+password +authentication, file transfer resume, http proxy tunneling and more! The +curlpp library is highly portable, it builds and works identically on numerous +platforms, including Solaris, NetBSD, FreeBSD, OpenBSD, Darwin, HPUX, IRIX, +AIX, Tru64, Linux, Windows, Amiga, OS/2, BeOs, Mac OS X, Ultrix, QNX, OpenVMS, +RISC OS, Novell NetWare, DOS and more... curlpp is free, thread-safe, IPv6 +compatible, feature rich, well supported and fast.") + (home-page "http://www.curlpp.org") + (license license:x11-style))) -- 2.20.1