From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id ICGqGRNVBGYt+AAA62LTzQ:P1 (envelope-from ) for ; Wed, 27 Mar 2024 18:19:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id ICGqGRNVBGYt+AAA62LTzQ (envelope-from ) for ; Wed, 27 Mar 2024 18:19:15 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=Tsf1jtZI; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711559955; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=X1C6YYLRfqO/opn5o9zTZ/q+e34JVa/CY+fgl6wwdrU=; b=UzPLM5YI7a3MgP7VeGV8YM7wsyh/amZ50Uv3IS32GyxI4CSUVskyAmEUPH1MojSpxokJj9 /9vF8dhonxcvkce64/Bmxmdqahhk4tS/dsdMCP2Mh5v1hQGquSWtgULh4hC6hY5+NWJdpK F0GgoYLhZa1P1Kjwelhe9S5/9LZkN5UztNTFLRDeEuWOtvFxvqEXJA6je+HgEBP4HMnboS scI1SxoicOtEdoqZlxulJJu+Ut0HCjHJTzRkg1cupfdVLVTuTkEYardOP2/CtOecBcXkcE wwL2SPzcoEaYRG9jJoD0dGg7yb/imclw1/hDoSHk9MDtPpFEznMoVdRXIhOl0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=Tsf1jtZI; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711559955; a=rsa-sha256; cv=none; b=gM7qa6Ozu3UTEBUGmKL+o2N8v9K2vsuxAF8PK+yV1N6VX+pHFwSJDQLlv2LBXqBlcMtfky vs3HOEQ249JRYP73aache5K7YvYlI60gyfnUKIIWhzQ6vG9eome5QfF1209svwBICiz6o1 EeFG8q6qzk1hkBn0LUOSCsIiBrn+YgYxFYSHy7Q6VBxZXj+PGLNKvjEo9A+MDr7fZWhwEj 4vh36GLe650yLEcXxGdngW7vbeXkVZwI2ttirzjb9soW4geNvQUnwfHOTU32OaVP+/I/jp rMH226EeWiZVFAzJhxH3zyHlYjAGCLsq+Q8E2veTlTux1vvJMgTFRC6SzEQSKQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0271642897 for ; Wed, 27 Mar 2024 18:19:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpWva-00008R-93; Wed, 27 Mar 2024 13:19:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpWvY-00007R-6b for guix-patches@gnu.org; Wed, 27 Mar 2024 13:19:04 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rpWvX-0006aR-8D for guix-patches@gnu.org; Wed, 27 Mar 2024 13:19:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rpWvX-00031w-Ec for guix-patches@gnu.org; Wed, 27 Mar 2024 13:19:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70035] [PATCH 4/8] gnu: Add pystring. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 27 Mar 2024 17:19:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70035 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70035@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 70035-submit@debbugs.gnu.org id=B70035.171155994211622 (code B ref 70035); Wed, 27 Mar 2024 17:19:03 +0000 Received: (at 70035) by debbugs.gnu.org; 27 Mar 2024 17:19:02 +0000 Received: from localhost ([127.0.0.1]:38285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpWvV-00031G-A9 for submit@debbugs.gnu.org; Wed, 27 Mar 2024 13:19:01 -0400 Received: from mout02.posteo.de ([185.67.36.66]:48907) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpWvP-000300-7t for 70035@debbugs.gnu.org; Wed, 27 Mar 2024 13:18:57 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 5FBF7240101 for <70035@debbugs.gnu.org>; Wed, 27 Mar 2024 18:18:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1711559929; bh=Pp+C7AAhwchMRU3zrmcS9MXliwSfqHLE1pPE5lqprWU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=Tsf1jtZIyvy3XCHqgmK/Wi6tbwOm9MUK3Hb8LXN+YgubbVjUragKXU+Gf/UOenBoz 8lXd5ChyRbUeJpQbcqbA8K9RwihrX6qQuRBeavOxD8I/Z1pp0zaDyLy00C+U2lIov4 khuHKPRYLOlGyoMUEAefXwijYqaxaqlfC7AMhyg6+UqOCXMsOXGSc+0iPsPU1RlFZM FdkyKx8NSHK6Y2/VSqYpQ8Wz4NcqeUzI3Wz5YD8LpvVUOQf7inkAgjmMHhNJmOSktX OwhvvaRkDVCd0WPATQB0i4lI+AqZizzAk8mtsWcr4wjBcXj28luahVzLE+ebDGot+0 y+u/BFLPGiN2g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4V4YL031V8z9rxL; Wed, 27 Mar 2024 18:18:47 +0100 (CET) From: Vinicius Monego Date: Wed, 27 Mar 2024 17:17:44 +0000 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: 3.45 X-Migadu-Queue-Id: 0271642897 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: 3.45 X-TUID: zwnoFXZYVehj * gnu/packages/cpp.scm (pystring): New variable. Change-Id: Ifff1ae3d3ed8ec880a2dd098d6d81de28d7bdda6 --- gnu/packages/cpp.scm | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index acbe3e4836..02445eecea 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -10,7 +10,7 @@ ;;; Copyright © 2020 Roel Janssen ;;; Copyright © 2020, 2021, 2023, 2024 Ricardo Wurmus ;;; Copyright © 2020 Brice Waegeneire -;;; Copyright © 2020, 2021, 2022 Vinicius Monego +;;; Copyright © 2020, 2021, 2022, 2024 Vinicius Monego ;;; Copyright © 2020, 2022 Marius Bakke ;;; Copyright © 2020 Michael Rohleder ;;; Copyright © 2020 Alexandros Theodotou @@ -477,6 +477,45 @@ (define-public rct (license (list license:expat ; cJSON license:bsd-4))))) ; everything else (LICENSE.txt) +(define-public pystring + (package + (name "pystring") + (version "1.1.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/imageworks/pystring") + (commit (string-append "v" version)))) + (sha256 + (base32 "0h12x24skrlx4fv0k5vl8wnar8gi6bq091yp93awkwsbnm8qwkzd")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + (list #:tests? #f + #:phases + #~(modify-phases %standard-phases + ;; The install phase doesn't install the header + (add-after 'install 'install-header + (lambda _ + (mkdir-p (string-append #$output "/include")) + (copy-file + (string-append #$(package-source this-package) + "/pystring.h") + (string-append #$output + "/include/pystring.h"))))))) + (native-inputs (list pkg-config)) + (home-page "https://github.com/aseba-community/dashel") + (synopsis "C++ functions matching the Python string methods") + (description + "Pystring is a collection of C++ functions which match the interface and +behavior of Python's string class methods using std::string. Implemented in +C++, it does not require or make use of a python interpreter. It provides +convenience and familiarity for common string operations not included in the +standard C++ library. It's also useful in environments where both C++ and +Python are used.") + (license license:bsd-3))) + (define-public dashel (package (name "dashel") -- 2.39.2