From patchwork Tue Jun 29 13:23:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jean-Baptiste Volatier X-Patchwork-Id: 30783 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 442C527BC81; Tue, 29 Jun 2021 14:24:13 +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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,SPF_HELO_PASS,T_DKIM_INVALID,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 ESMTPS id F337E27BC78 for ; Tue, 29 Jun 2021 14:24:12 +0100 (BST) Received: from localhost ([::1]:49126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyDil-0001ov-QJ for patchwork@mira.cbaines.net; Tue, 29 Jun 2021 09:24:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyDic-0001it-OF for guix-patches@gnu.org; Tue, 29 Jun 2021 09:24:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42380) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyDic-0002Rq-G5 for guix-patches@gnu.org; Tue, 29 Jun 2021 09:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lyDic-0005I2-Cw for guix-patches@gnu.org; Tue, 29 Jun 2021 09:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48325] [PATCH 1/4] gnu: Add utf8proc-2.6.1. Resent-From: Jean-Baptiste Volatier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Jun 2021 13:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48325 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: zimoun , Jean-Baptiste Volatier , 48325@debbugs.gnu.org, Ludovic =?utf-8?q?Court=C3=A8s?= Received: via spool by 48325-submit@debbugs.gnu.org id=B48325.162497300520252 (code B ref 48325); Tue, 29 Jun 2021 13:24:02 +0000 Received: (at 48325) by debbugs.gnu.org; 29 Jun 2021 13:23:25 +0000 Received: from localhost ([127.0.0.1]:53915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyDi0-0005Ga-Jf for submit@debbugs.gnu.org; Tue, 29 Jun 2021 09:23:24 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:37077) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyDhy-0005GK-9J for 48325@debbugs.gnu.org; Tue, 29 Jun 2021 09:23:23 -0400 Date: Tue, 29 Jun 2021 13:23:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1624972995; bh=jFGW1GPWlh0p6swtWjeKVJcrQz9CpiFudJz8+/ts5W0=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=eXQCPBCTCtO5skJsClrCFEsLSOTJ3gGsXPrs/6MeEXGYrHNqBbggVY9lNmteJTLpi EhbC4kMq4swyggfrBGsTmJjSCGRqnk2RYkRAvHzwpVEAHBTNttIRoVWh5dvzBIJ/UL 8dguuAfC9zKGPqT+XEhCcOHCYra4KJuoxcROJFhzxBddt/XscO2WPi2036ImHX76JR t7cFGfTLEOHWNcJ2tiQJLI6p4d3T9MrcPHfXIBT15vrXpL18sjAUndjc8+7UR2048q qXFNPT4+yCWcOdRvPbtBh8JRCIN7bNlN/jqUUBJYFty/XsGdeEfzNhtQ+BcRPkjy4i tAo8I0MpmKvfA== Message-ID: <20210629132128.22249-2-jbv@pm.me> In-Reply-To: <20210629132128.22249-1-jbv@pm.me> References: <20210513140818.10217-1-zimon.toutoune@gmail.com> <87mtsy67rv.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> <87pmx0kn5p.fsf_-_@gnu.org> <87zgw2znuf.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> <86v96ejt4s.fsf@gmail.com> <20210629132128.22249-1-jbv@pm.me> 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" Reply-to: Jean-Baptiste Volatier X-ACL-Warn: , Jean-Baptiste Volatier via Guix-patches X-Patchwork-Original-From: Jean-Baptiste Volatier via Guix-patches via From: Jean-Baptiste Volatier X-getmail-retrieved-from-mailbox: Patches * gnu/packages/textutils.scm (utf8proc-2.6.1): New variable. Co-Authored-By: zimoun . --- gnu/packages/textutils.scm | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) -- 2.32.0 diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index ab34373705..dbd6dce283 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2019 Mădălin Ionel Patrașcu ;;; Copyright © 2019 Wiktor Żelazny ;;; Copyright © 2020 Maxim Cournoyer +;;; Copyright © 2021 Simon Tournier ;;; ;;; This file is part of GNU Guix. ;;; @@ -63,6 +64,7 @@ #:use-module (gnu packages python-build) #:use-module (gnu packages python-xyz) #:use-module (gnu packages readline) + #:use-module (gnu packages ruby) #:use-module (gnu packages slang) #:use-module (gnu packages web)) @@ -201,6 +203,45 @@ normalization, case-folding, and other operations for data in the UTF-8 encoding, supporting Unicode version 9.0.0.") (license license:expat))) +(define-public utf8proc-2.6.1 + (package + (inherit utf8proc) + (name "utf8proc") + (version "2.6.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/JuliaStrings/utf8proc") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1zqc6airkzkssbjxanx5v8blfk90180gc9id0dx8ncs54f1ib8w7")))) + (arguments + (substitute-keyword-arguments (package-arguments utf8proc) + ((#:phases phases) + `(modify-phases ,phases + (replace 'check-data + (lambda* (#:key inputs #:allow-other-keys) + (for-each (lambda (i) + (copy-file (assoc-ref inputs i) + (string-append "data/" i))) + '("NormalizationTest.txt" "GraphemeBreakTest.txt" + "DerivedCoreProperties.txt")))))))) + (native-inputs + (append + (package-native-inputs utf8proc) + (let ((UNICODE_VERSION "13.0.0")) + `(("DerivedCoreProperties.txt" + ,(origin + (method url-fetch) + (uri (string-append "https://www.unicode.org/Public/" + UNICODE_VERSION "/ucd/DerivedCoreProperties.txt")) + (sha256 + (base32 "0j12x112cd8fpgazkc8izxnhhpia44p1m36ff8yapslxndcmzm55")))) + ;; For tests + ("ruby" ,ruby))))))) + (define-public libconfuse (package (name "libconfuse")