From patchwork Wed Apr 3 01:30:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 62654 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 F238227BBE9; Wed, 3 Apr 2024 02:32:34 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E2C5627BBEB for ; Wed, 3 Apr 2024 02:32:31 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrpTu-0008JS-Go; Tue, 02 Apr 2024 21:32:02 -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 1rrpTs-0008Hd-DT for guix-patches@gnu.org; Tue, 02 Apr 2024 21:32:00 -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 1rrpTs-0001Bp-4V for guix-patches@gnu.org; Tue, 02 Apr 2024 21:32:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rrpTw-0002DC-4x for guix-patches@gnu.org; Tue, 02 Apr 2024 21:32:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70035] [PATCH v3 4/9] gnu: Add pystring. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 03 Apr 2024 01:32:04 +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.17121078958266 (code B ref 70035); Wed, 03 Apr 2024 01:32:04 +0000 Received: (at 70035) by debbugs.gnu.org; 3 Apr 2024 01:31:35 +0000 Received: from localhost ([127.0.0.1]:56614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrpTS-00029F-S9 for submit@debbugs.gnu.org; Tue, 02 Apr 2024 21:31:35 -0400 Received: from mout02.posteo.de ([185.67.36.66]:53347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrpTQ-000284-42 for 70035@debbugs.gnu.org; Tue, 02 Apr 2024 21:31:33 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 72038240101 for <70035@debbugs.gnu.org>; Wed, 3 Apr 2024 03:31:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1712107882; bh=mFfLlijsRIHSQau664UOfXE0rg1puY0eGfl5Vd5UdLk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=h/zpL6LwJ7RiMqMq7H/EJS0168cdohPJW8VnsWcgmR4Bx3/uq9vIZt/5m0FWehHu1 X6DvIGS5YZJyBtjG2rZDwSQrT7Q9ZAbSgsgRjroFLjCk20ZNopVvxuzm1Sj29ViFvh KT9uZdLThC0rMfBuc53LcAGK6ioTZdiM5kHn4lXfUX1qhooxRoFyVnWi9+0KrFSJbz F6SS02hehpVQJmhiULRfi9MeUQJZU4l+TqPS5EDaO3JqiY4+vIWChUJ4xmL72PeThg LORoeLo7i92vZjsAk7b7YxbaDdgFLTI1DZOyZjvB38N1YtT3BcrxXhhw4NWARauSVI IELZDT8Fhmj1w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4V8RzY4rK6z6tx5; Wed, 3 Apr 2024 03:31:21 +0200 (CEST) From: Vinicius Monego Date: Wed, 3 Apr 2024 01:30:24 +0000 Message-Id: <2d5c8882ce6a7e3913872b68b0f2cd3503283467.1712107465.git.monego@posteo.net> In-Reply-To: References: MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/cpp.scm (pystring): New variable. Change-Id: Ifff1ae3d3ed8ec880a2dd098d6d81de28d7bdda6 --- gnu/packages/cpp.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 2c04920166..7c3c35e048 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -477,6 +477,44 @@ (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 #: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/imageworks/pystring") + (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")