From patchwork Mon Jul 25 12:16:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 40924 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 83D6D27BBE9; Mon, 25 Jul 2022 13:18:33 +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 AA66927BBEA for ; Mon, 25 Jul 2022 13:18:32 +0100 (BST) Received: from localhost ([::1]:46852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFx2d-00071p-Qa for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:18:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFx2B-0006xp-IP for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59657) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFx2A-0005Dt-8k for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFx2A-0002se-4q for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56759] [PATCH 01/20] gnu: Add ruby-wapiti. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Jul 2022 12:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56759 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56759@debbugs.gnu.org Cc: Philip McGrath Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875144410910 (code B ref 56759); Mon, 25 Jul 2022 12:18:02 +0000 Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:17:24 +0000 Received: from localhost ([127.0.0.1]:49383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFx1Y-0002pt-4B for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:17:24 -0400 Received: from mail-qv1-f51.google.com ([209.85.219.51]:40552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFx1U-0002pf-OG for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:17:22 -0400 Received: by mail-qv1-f51.google.com with SMTP id i4so8239576qvv.7 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:17:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=I6yoy1iC/cab/TBpls+x1+KDkn4JQf2rP4/JVqSlJeA=; b=gVHOK39vVSgBwAj48RdawTRDAq0PxSTNnLgVC0K/NjmIuwwZlKawvGPoLmmj+ME3Vj XkfnZ9yXdKwNWBBGLFrc5BNq5SffVaFsxCzNQOHhbURbHEbFFD4jK+KuezvgvMP9JG2L RDFsCOZkpVzdhx10t8/ThXjULezakY8iZZ/8B0ktib8qB434Nc4uUChe0LCFEtRfinz4 MacmXIzmWxs9zQAqhn6FgBhR87DV7QVaJGLfokmTLdb7wz0KoVLO34Li63NP9CYd12jF 10WIN0hO3HVO+R7QYoDoxOLq+f/M7sCMsKuk+lbauUCZiFGkD0bNg38SuHV99G6v24h/ fTXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=I6yoy1iC/cab/TBpls+x1+KDkn4JQf2rP4/JVqSlJeA=; b=NqPNBr43tfP9IA3+oj7NGuBiMuvIECdwHZwnYQ2YU5e2lxbk9J/iX0+N4yh0uZPpNW ZNBWbmIKiHCFKQlwE42iq3zGA2NJMmpOJQf5KKjIeM4EDiCWOfTpmXDnE0drQxdR63SM MnknwwL53+FKKoq0LZ/uc9LnxQJSTLTkXTrCDl97KCP+3e2WkmUldPgRwfNqYjyVR6b2 m6fBYnv1xhiMxs1gKHeRc2nC6DHt6aL4NWY+URjwDGOQ0zi+yqJI8B4GUeFx7AF9qkMQ PqsoRKBxKnSO0XUP7VGfXChjJYcdCJtdV9u7JQ91YBTZN1dHgc++cwa8y0XHLGqnqSwQ 5Dkg== X-Gm-Message-State: AJIora/oTVmAGny9vBfXRr6o8MVWRw9IsJ1eD3Qg68XacF5eclRTaYIc 6R01GiTovuN37oMSzSKZ4yFCrxPW3W3JC776 X-Google-Smtp-Source: AGRyM1vMDSaMkkTm38/2OAqyeWE8emAS8Pmuxj2BeSTqc6OKna+dAzrn8Xza2gbuGFGNrpfJt26sbg== X-Received: by 2002:ad4:5cc4:0:b0:474:9e1:9f5b with SMTP id iu4-20020ad45cc4000000b0047409e19f5bmr9991820qvb.129.1658751434883; Mon, 25 Jul 2022 05:17:14 -0700 (PDT) Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51]) by smtp.gmail.com with UTF8SMTPSA id dm53-20020a05620a1d7500b006af0ce13499sm9137229qkb.115.2022.07.25.05.17.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jul 2022 05:17:14 -0700 (PDT) From: Philip McGrath Date: Mon, 25 Jul 2022 08:16:16 -0400 Message-Id: <666dd566788cc1eda22fc49bcee8a32f17f26627.1658750358.git.philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/ruby.scm (ruby-wapiti): New variable. --- gnu/packages/ruby.scm | 46 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index c1e3dca807..9a75118946 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -28,6 +28,7 @@ ;;; Copyright © 2021 EuAndreh ;;; Copyright © 2020 Tomás Ortín Fernández ;;; Copyright © 2021 Giovanni Biscuolo +;;; Copyright © 2022 Philip McGrath ;;; ;;; This file is part of GNU Guix. ;;; @@ -12984,3 +12985,48 @@ (define-public ruby-blather (description "Blather is a XMPP DSL for Ruby written on top of EventMachine and Nokogiri.") (license license:expat))) + +(define-public ruby-wapiti + (package + (name "ruby-wapiti") + (version "2.0.0") + ;; the gem archive lacks tests + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/inukshuk/wapiti-ruby") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1kawqw45j7mqk5zmwbn67x1vxiapdgm2ypqqz2bs9l5s7nglzr5b")))) + (build-system ruby-build-system) + (propagated-inputs + (list ruby-builder + ruby-rexml)) + (native-inputs + (list ruby-byebug + ruby-pry + ruby-rake-compiler + ruby-rspec + ruby-simplecov)) + (arguments + (list + #:test-target "spec" + #:phases + #~(modify-phases %standard-phases + (add-after 'replace-git-ls-files 'replace-another-git-ls-files + (lambda args + (substitute* "wapiti.gemspec" + (("`git ls-files spec`") + "`find spec -type f | sort`")))) + (add-before 'build 'compile + (lambda args + (invoke "rake" "compile")))))) + (home-page "https://github.com/inukshuk/wapiti-ruby") + (synopsis "Wicked fast Conditional Random Fields for Ruby") + (description + "The Wapiti-Ruby gem provides a wicked fast linear-chain @acronym{CRF, +Conditional Random Fields} API for sequence segmentation and labelling. It is +based on the codebase of @url{https://wapiti.limsi.fr, Wapiti}.") + (license license:bsd-2))) From patchwork Mon Jul 25 12:16:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 40922 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 4222427BBEA; Mon, 25 Jul 2022 13:18:32 +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 E4F3027BBE9 for ; Mon, 25 Jul 2022 13:18:31 +0100 (BST) Received: from localhost ([::1]:46804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFx2d-0006yt-2N for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:18:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFx2B-0006y6-Uh for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59659) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFx2B-0005E9-Ky for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFx2A-0002sl-H7 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56759] [PATCH 02/20] gnu: Add ruby-namae. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Jul 2022 12:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56759 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56759@debbugs.gnu.org Cc: Philip McGrath Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875145210936 (code B ref 56759); Mon, 25 Jul 2022 12:18:02 +0000 Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:17:32 +0000 Received: from localhost ([127.0.0.1]:49386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFx1g-0002qK-H9 for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:17:32 -0400 Received: from mail-qv1-f43.google.com ([209.85.219.43]:44954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFx1e-0002q2-WF for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:17:31 -0400 Received: by mail-qv1-f43.google.com with SMTP id b11so3684454qvo.11 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:17:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lOhDGrLQ3vMGuLfmnaiZczYrGqNC+r6vocgVj7Wz80Q=; b=hmuxjdH16oMZzz2UXOyzVpIi06LuHcD0Wm9k2xGxmeG/qxX/7SA7IOAbHVyHlHlcQ1 /69sZTlZsPCEtSUBEpabUAP0FQcjyJMhUByCQw4/iy26VPBiIpt2W/ZhzI/RuYfQXdcI LJdnkhfBGEhAU6LGfa7QFhLnkM++F76Lo8xilshvwEohgxytlQ39UHbEAEUkuGRFeszh cWFjvMSKeZnrPq5M17nVPpnJxmi9tkNGfKSgBhsxlECBw3Faa9nIj8ii9IUnMToiv1pe 22xE8k0ln3PBd9jnwrK1KLhPHYK+fF056P5SnotbvlMmNbG7EWNUx3IvQTkQjbONf6s0 fO4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lOhDGrLQ3vMGuLfmnaiZczYrGqNC+r6vocgVj7Wz80Q=; b=qzZ956VPGi/henvwgINTAoJyiS5s3ETASUMWu0rD71Wf56U6ZBL795wlDRVwRrzwUr sAesY/dk4blA2W9dhZ6ZioetR2Rs5ELHkdi4AChI8DNPJEaBfONQTe1S1bAMPfRFsJBD iTYyBDAQnABtL/1Azn9KqwVUWQ4ekSjM9T2NE/CZV/gm9C49Hclc5A1xplTpFB+mY1zY PLP73L72ihAlqIXcqfdP6LP5/ESIOyhkivxAU9y2XTqr/3zOyCdYDiPugI0+XRa6FDBe 0F3f+54opBp6oWrILv1ahUOW75Lg9l7uJ+4gcbMSWlQ1JblDFWABCRlhYZt/qB3wipeJ moVw== X-Gm-Message-State: AJIora9iTWK6vPmP3uvtLeX/eLUF4wursA8WyBAfuRgVudDkg6Ae+xlz YDPY4pcFlmXJz4bJIxvGfMAB76ht+8EnhX3J X-Google-Smtp-Source: AGRyM1uh2UDBy7HE1SEX4a3gB2MOmGAlFFg2ZQwiE9QS+PSFomiMGwS1z/sNlUlP6Wg18RPNfODAsQ== X-Received: by 2002:ad4:5964:0:b0:474:fb6:13e4 with SMTP id eq4-20020ad45964000000b004740fb613e4mr10242053qvb.7.1658751445082; Mon, 25 Jul 2022 05:17:25 -0700 (PDT) Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51]) by smtp.gmail.com with UTF8SMTPSA id u13-20020a05620a0c4d00b0069fe1dfbeffsm9095550qki.92.2022.07.25.05.17.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jul 2022 05:17:24 -0700 (PDT) From: Philip McGrath Date: Mon, 25 Jul 2022 08:16:17 -0400 Message-Id: X-Mailer: git-send-email 2.32.0 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/ruby.scm (ruby-namae): New variable. --- gnu/packages/ruby.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 9a75118946..2f47d898db 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -13030,3 +13030,42 @@ (define-public ruby-wapiti Conditional Random Fields} API for sequence segmentation and labelling. It is based on the codebase of @url{https://wapiti.limsi.fr, Wapiti}.") (license license:bsd-2))) + +(define-public ruby-namae + (package + (name "ruby-namae") + (version "1.1.1") + (source (origin + (method url-fetch) + (uri (rubygems-uri "namae" version)) + (sha256 + (base32 + "1j3nl1klkx3gymrdxfc1hlq4a8qlvhhl9aj5v1v08b9fz27sky0l")))) + (build-system ruby-build-system) + (native-inputs + (list ruby-cucumber + ruby-rspec + ruby-simplecov)) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'extract-gemspec 'allow-newer-cucumber + (lambda args + (substitute* "Gemfile" + (("'cucumber', '[^']*'") + "'cucumber'")))) + (replace 'check + ;; Avoid 'rake' so we don't need jeweler. + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (apply invoke + "rspec" + (find-files "spec" "_spec\\.rb$")))))))) + (home-page "https://github.com/berkmancenter/namae") + (synopsis "Parser for human names") + (description + "Namae (名前) is a parser for human names. It recognizes personal names +of various cultural backgrounds and tries to split them into their component +parts (e.g., given and family names, honorifics etc.).") + (license (list license:bsd-2 license:agpl3+)))) From patchwork Mon Jul 25 12:16:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 40926 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 13B5C27BBE9; Mon, 25 Jul 2022 13:18:55 +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 6C3AC27BBE9 for ; Mon, 25 Jul 2022 13:18:54 +0100 (BST) Received: from localhost ([::1]:47692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFx2z-0007bY-IU for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:18:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFx2C-0006yU-CE for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59666) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFx2C-0005EO-2G for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFx2A-0002ss-SY for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56759] [PATCH 03/20] gnu: Add itex2mml. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Jul 2022 12:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56759 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56759@debbugs.gnu.org Cc: Philip McGrath Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875145610953 (code B ref 56759); Mon, 25 Jul 2022 12:18:02 +0000 Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:17:36 +0000 Received: from localhost ([127.0.0.1]:49389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFx1j-0002qb-Rs for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:17:36 -0400 Received: from mail-qt1-f173.google.com ([209.85.160.173]:40556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFx1i-0002qB-MV for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:17:35 -0400 Received: by mail-qt1-f173.google.com with SMTP id bz13so8019982qtb.7 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:17:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bwdDyaPogtZsEKKne1uG/7tuaFrHFdSXYNwqJiX6gHQ=; b=X53dNCUL9OajRW6YDNEqHxJL8awfy3kQD6mpJ/fzSZkUs5cri2mIfYiddugrvhi821 ISvQ2FkT6pZHg5xUoipiRc64T9k/klQYpifuvUESy9MSGZ+RWE4SbE7DTLR19bAS6Mam BSWJ7tPsjhXb9y9ts0Nx5uPctG9Yaggr9naRBc5EeJ2+lHLDjAMlRT5tPdZeHIeG1T9b gCtbAdXRxikmA3vFUp0num5pTF8IXjdXEM83kJTdDNVlXTI5ky2t4alTrASxQlDEVFnR i5ofIYm31vHFCGZkJ8LnRJpwCyWYNVNDRCaaSLktY7znhaIlIPSZeTSmh3Y8C1QR6HM6 jl6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bwdDyaPogtZsEKKne1uG/7tuaFrHFdSXYNwqJiX6gHQ=; b=G8OS4miQ0qFHaAgfZ9z6C3NStVqhtVBxYnl9gml+f7xB9KFokkqAlFlERMTbjFHYiV 31TS3VSIriBK3Al7T6StNlNjQMi43/PlavKAyeqKt3Co5sRT7D+e3IwinMTeNiIhRZVu qm1DvtNjdZskHuKKlOm7Nn5h7YPRQGzJUr6f5DyCG5O6EJuoJa9zlbIzfgNoZlRmiSwl x+Wvs4dmBzPsqvwR5GXdP4/KW8cLUg6wyAXs+ghIF4W6xTT5RcC0oZ0c0oe5NTdsvJcG G3Ia0Qgmy6rTIdfzQkFg3tPL/RpccJuABe1cLUE7t8v83raT2A2YCM/v6m8p3yLGT6jf jMGw== X-Gm-Message-State: AJIora/dc9UpXyyVwfwPsZCAshoip8XVEolGJ3PfZNPT58afztMFXjEY CEf41oI335OCvVb2kx2cvMIthryTVFX/YTGg X-Google-Smtp-Source: AGRyM1ufj9r13r2TD8IvjeGgHIkfVkEc0i8EHuIc6uuhNgIkRtKIOxuXp2AehNb4As+nTy7trqTQqQ== X-Received: by 2002:ac8:590d:0:b0:31f:31c8:7402 with SMTP id 13-20020ac8590d000000b0031f31c87402mr7096183qty.475.1658751449079; Mon, 25 Jul 2022 05:17:29 -0700 (PDT) Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51]) by smtp.gmail.com with UTF8SMTPSA id k20-20020a05622a03d400b0031eb5648b86sm7706566qtx.41.2022.07.25.05.17.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jul 2022 05:17:28 -0700 (PDT) From: Philip McGrath Date: Mon, 25 Jul 2022 08:16:18 -0400 Message-Id: <107638742c25f67113b279b72cfda6d70d09032e.1658750358.git.philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/maths.scm (itex2mml): New variable. --- gnu/packages/maths.scm | 53 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 6a84f47468..648358c681 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -52,6 +52,7 @@ ;;; Copyright © 2021 Pierre-Antoine Bouttier ;;; Copyright © 2022 Zhu Zihao ;;; Copyright © 2022 Sharlatan Hellseher +;;; Copyright © 2022 Philip McGrath ;;; ;;; This file is part of GNU Guix. ;;; @@ -1738,6 +1739,58 @@ (define-public h5check HDF5 file is encoded according to the HDF File Format Specification.") (license (license:x11-style "file://COPYING")))) +(define-public itex2mml + (package + (name "itex2mml") + (version "1.6.1") + (source (origin + (method url-fetch) + (uri (string-append "https://golem.ph.utexas.edu" + "/~distler/blog/files/itexToMML-" + version + ".tar.gz")) + (sha256 + (base32 + "0pz51c0hfh2mg8xli0wj7hf92s3b7yf5r4114g8z8722lcm5gwiy")) + (snippet + #~(begin + (use-modules (guix build utils)) + (delete-file-recursively "itex-binaries"))))) + (build-system gnu-build-system) + (native-inputs + (list bison + flex)) + (arguments + (list + #:make-flags #~(list (string-append "BINDIR=" #$output "/bin/") + (string-append "CC=" #$(cc-for-target))) + #:tests? #f ;; there are none + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'chdir + (lambda args + (chdir "itex-src"))) + (add-before 'install 'make-bindir + (lambda args + (mkdir-p (string-append #$output "/bin")))) + (add-after 'install 'install-doc + (lambda* (#:key outputs #:allow-other-keys) + (let* ((doc-prefix (or (assoc-ref outputs "doc") + #$output)) + (itex2mml+version (strip-store-file-name #$output)) + (doc-dir (string-append doc-prefix + "/share/doc/" + itex2mml+version))) + (install-file "../README" doc-dir))))))) + (home-page "https://golem.ph.utexas.edu/~distler/blog/itex2MML.html") + (synopsis "LaTeX to XHTML/MathML converter") + (description + "The @command{itex2MML} utility is a stream filter. It takes text with +embedded itex equations, converts the itex equations to MathML, and outputs +the resulting text.") + (license (list license:lgpl2.0+ license:gpl2+ license:mpl1.1)))) + (define-public itpp (package (name "itpp") From patchwork Mon Jul 25 12:16:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 40923 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 6D36C27BBEC; Mon, 25 Jul 2022 13:18:33 +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 A8F7F27BBE9 for ; Mon, 25 Jul 2022 13:18:32 +0100 (BST) Received: from localhost ([::1]:46814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFx2d-000701-L7 for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:18:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFx2B-0006xw-Nt for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFx2B-0005E1-EJ for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFx2B-0002sz-AS for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56759] [PATCH 04/20] gnu: Add ruby-ritex. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Jul 2022 12:18:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56759 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56759@debbugs.gnu.org Cc: Philip McGrath Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875146110971 (code B ref 56759); Mon, 25 Jul 2022 12:18:03 +0000 Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:17:41 +0000 Received: from localhost ([127.0.0.1]:49392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFx1p-0002qt-BM for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:17:41 -0400 Received: from mail-qv1-f45.google.com ([209.85.219.45]:45651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFx1m-0002qS-Sd for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:17:39 -0400 Received: by mail-qv1-f45.google.com with SMTP id h18so8216508qvr.12 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:17:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Y9s5oED/W0NGbiX6ypOC1TERyNEUrvsVxzEDqSL8ajY=; b=T4ZeHSMqYMz3la5FPq+UD22rXnsU3BMTOUBZqlsvEGfBUhHU52O6/NEioBJ5+pFxs2 k8HrdwVtBiCfkcQjGTohplPrenvL0OSZBwH/pS8LB6cQdLPHuZIy0rx6pgppEdo3VhWb aZ1Yl7QINoya6+xO2rIpY0xOcqIhB5rWtgMO9rdZ7tcj0GjZkRD2uHpf//92HosDqAy7 24W9SnICAJXtT/rv+0KMPnVx6rHflSOnm4oaquUUiYOJNkKOF68zxWe06a+TRNeyklSs vB8zdCq1oeRIieaOnfZvGcEi0+qIyMGK1uC9fzDLI1U10iEsSXvr7cktcCyceogzLizx CLNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Y9s5oED/W0NGbiX6ypOC1TERyNEUrvsVxzEDqSL8ajY=; b=ziqxECIN2BPnAq7zyLtCheEsSVq+3gd8/UGKNXeR84Xv7bV21iRZ5ad81lwcLJvgKG VqHMOQ7pI0j0MykZqKYNsTgHGZC3FId8AYE4ng1Y0P7nxqsa5RGXKHDrtAN1s49Po5D5 8escjGTYsR3mNROu0IXBZxm/AWJTgtFSfvDX7Uyl061lYo7mNU8tONT7QmLqveMEMG5X 2RUHW5l561+ygNcdrukK2JNVpQPmWrR7alP2O/nEPcdlsAMtzpwnuN1TJ85VF8WMh7F3 cuTWY4KLND68uglfSW5kN12k6UdfKMWrtDXoc9A9WMN2S9ighFDNhyVawjry6HiPa6YJ Nl0g== X-Gm-Message-State: AJIora8C/mKF/qeCk6VMUI2ln6FZSe8CxUShTSVTiglYEQGamBXxl3eY uuBCgtYEqSt8WOQ0dhrpnCtEMJJ88Y2lXF8V X-Google-Smtp-Source: AGRyM1v3DMGEs6QR4SrlNaOJa5uzqRPdTaXK2uHYNs6jCKLdGFmDWWGj8J94xkJ4otAytCDV+EwiBw== X-Received: by 2002:ad4:5c8e:0:b0:474:912:3ce with SMTP id o14-20020ad45c8e000000b00474091203cemr10335466qvh.37.1658751453317; Mon, 25 Jul 2022 05:17:33 -0700 (PDT) Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51]) by smtp.gmail.com with UTF8SMTPSA id o62-20020a374141000000b006b56a4400f6sm8888116qka.16.2022.07.25.05.17.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jul 2022 05:17:33 -0700 (PDT) From: Philip McGrath Date: Mon, 25 Jul 2022 08:16:19 -0400 Message-Id: X-Mailer: git-send-email 2.32.0 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/ruby.scm (ruby-ritex): New variable. --- gnu/packages/ruby.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 2f47d898db..746bb9b6ce 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -13069,3 +13069,45 @@ (define-public ruby-namae of various cultural backgrounds and tries to split them into their component parts (e.g., given and family names, honorifics etc.).") (license (list license:bsd-2 license:agpl3+)))) + +(define-public ruby-ritex + (package + (name "ruby-ritex") + (version "1.0.1") + (source (origin + (method url-fetch) + (uri (rubygems-uri "ritex" version)) + (sha256 + (base32 + "07rlm3nyz9sxzy1srxs6a31hw81r6w7swrb85fiwi393z8npwc3a")))) + (build-system ruby-build-system) + (native-inputs + (list itex2mml)) + (arguments + ;; thanks to the Gentoo packagers for figuring this out + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'extract-gemspec 'fix-tests + (lambda* (#:key native-inputs inputs #:allow-other-keys) + (substitute* "test/mathml.rb" + (("\\./itex2MML") + ;; don't use the absolute path to avoid keeping a reference + "itex2MML") + (("cmp ',\\\\,\\\\,,,\\\\,'" orig) + (string-append "# " orig " # patched for Guix"))) + (substitute* "test/answer-key.yaml" + (("- ,\\\\,\\\\,,,\\\\," orig) + (string-append "# " orig " # patched for Guix"))))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "ruby" "-Ilib:." "test/all.rb"))))))) + (home-page "https://rubygems.org/gems/ritex") + (synopsis "Convert expressions from WebTeX into MathML") + (description + "Ritex converts expressions from WebTeX into MathML. WebTeX is an +adaptation of TeX math syntax for web display. Ritex makes inserting math +into HTML pages easy. It supports most TeX math syntax as well as macros.") + ;; doesn't clearly state -only vs -or-later + (license license:gpl2))) From patchwork Mon Jul 25 12:16:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 40927 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 F1A6E27BBEB; Mon, 25 Jul 2022 13:18:55 +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 01E1E27BBEA for ; Mon, 25 Jul 2022 13:18:55 +0100 (BST) Received: from localhost ([::1]:47722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFx30-0007dY-3t for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:18:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFx2C-0006yJ-5b for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59662) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFx2B-0005EH-SI for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFx2B-0002t7-Nq for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56759] [PATCH 05/20] gnu: Add ruby-latex-decode. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Jul 2022 12:18:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56759 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56759@debbugs.gnu.org Cc: Philip McGrath Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875146710991 (code B ref 56759); Mon, 25 Jul 2022 12:18:03 +0000 Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:17:47 +0000 Received: from localhost ([127.0.0.1]:49395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFx1u-0002rD-No for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:17:47 -0400 Received: from mail-qv1-f51.google.com ([209.85.219.51]:45662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFx1q-0002qk-QB for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:17:43 -0400 Received: by mail-qv1-f51.google.com with SMTP id h18so8216626qvr.12 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jABfdQfGUZ9bX8q/MIzr5oGGaVPfq5g38FPMW5cBCa8=; b=IUt3f+O0Xcb+00wq+xOFu8yZcmeANJrlrkEGvgncw/x87R3D1/9M6xyGTDQR9Tw2N3 5fBTjrax60wbx2gLObglSbyzrzGL9Qv9+rNJMgT3EsiM6BRxNwDwA9w/7K7L1xkdUMTY OyhmHNqxAjEpCNjyX5beqsQp4cDQ5tRt2OjxweREBze9bFXNIPlm/jW9Qm2ZToDIM9Af OZOefJ9RGMONy0yledQ3AK6sbkjr2jHmWAEP6BEH6h5+b2KYQszyoghFyUyXC8uX4JBl ftFZi6H0c+mz7gpVycYhtVhOlfdJATHPi50ppGkih86UkcpHuAW3qdaAXbg4qYf9bvNI wtMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jABfdQfGUZ9bX8q/MIzr5oGGaVPfq5g38FPMW5cBCa8=; b=KKtnp6v09zoXDpnQ+tL+rLw5XssWMqdWfXx0NwRVurcpGFpm9TaSKeLnPQiUpZ2s+x A0jBmnIuR2CIeTk07TFrW/mWWq6U/ZR+9AEV423rpr8Vx1hPe+NfdHxbOSt8hcRjX8sG 3/MftDd7rPkNVi/9KJC2VFLwtYBfeFOmJOpSUpIeUqb3cvWWRpnB+JjU8mUAJiuh/cB4 ok2cY2aaVK0YBAGDtx6q/LPDtxXf3CKGgUEhFx82fPTUjF20XN4rVvSfBU71sOufFM2Q EpHI1PsyyGVSenr9vK7pJkwDlvAiSpWNYW2xgCHwIgxmH1d4zlLAuwhYwWwwHbkqyMOq osdw== X-Gm-Message-State: AJIora9AH/sPxUBjK0rLKH0k9K2l6hgbRIbYqSCT83RiXn2x6w538sDe csYi8BSjawpCVsGvY5HCuWAV77yv1u0VHEEW X-Google-Smtp-Source: AGRyM1tBTRkBvHJD6+alM7XZtEHRFOS1VbgNxhtT+PgeSMORfDOepWpXbZliYymQejo2DriHgNBLdA== X-Received: by 2002:a05:6214:27ed:b0:473:fedb:3055 with SMTP id jt13-20020a05621427ed00b00473fedb3055mr10344777qvb.108.1658751457307; Mon, 25 Jul 2022 05:17:37 -0700 (PDT) Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51]) by smtp.gmail.com with UTF8SMTPSA id r6-20020a05620a298600b006a787380a5csm9377370qkp.67.2022.07.25.05.17.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jul 2022 05:17:37 -0700 (PDT) From: Philip McGrath Date: Mon, 25 Jul 2022 08:16:20 -0400 Message-Id: X-Mailer: git-send-email 2.32.0 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/patches/ruby-latex-decode-fix-test.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/ruby.scm (ruby-latex-decode): New variable. --- gnu/local.mk | 1 + .../patches/ruby-latex-decode-fix-test.patch | 66 +++++++++++++++++++ gnu/packages/ruby.scm | 50 ++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 gnu/packages/patches/ruby-latex-decode-fix-test.patch diff --git a/gnu/local.mk b/gnu/local.mk index 0c4edf6e56..3bc947f30c 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1774,6 +1774,7 @@ dist_patch_DATA = \ %D%/packages/patches/rocm-comgr-3.1.0-dependencies.patch \ %D%/packages/patches/rocm-opencl-runtime-4.3-noclinfo.patch \ %D%/packages/patches/rocm-opencl-runtime-4.3-noopencl.patch \ + %D%/packages/patches/ruby-latex-decode-fix-test.patch \ %D%/packages/patches/ruby-mustache-1.1.1-fix-race-condition-tests.patch \ %D%/packages/patches/ruby-sanitize-system-libxml.patch \ %D%/packages/patches/rustc-1.39.0-src.patch \ diff --git a/gnu/packages/patches/ruby-latex-decode-fix-test.patch b/gnu/packages/patches/ruby-latex-decode-fix-test.patch new file mode 100644 index 0000000000..58d7d16258 --- /dev/null +++ b/gnu/packages/patches/ruby-latex-decode-fix-test.patch @@ -0,0 +1,66 @@ +From 698e39a251d433e2cd2934586a2dfc5e6582c4f9 Mon Sep 17 00:00:00 2001 +From: Philip McGrath +Date: Sun, 24 Jul 2022 09:12:55 -0400 +Subject: [PATCH] Improve readability of whitespace tests + +This change fixes the test for `~x` in some environments in which it +was previously failing. + +Related to https://github.com/inukshuk/latex-decode/issues/13 +--- + features/step_definitions/latex.rb | 5 +++++ + features/symbols.feature | 7 ------- + features/whitespace.feature | 13 +++++++++++++ + 3 files changed, 18 insertions(+), 7 deletions(-) + create mode 100644 features/whitespace.feature + +diff --git a/features/step_definitions/latex.rb b/features/step_definitions/latex.rb +index 4b1b595..fca63c0 100644 +--- a/features/step_definitions/latex.rb ++++ b/features/step_definitions/latex.rb +@@ -5,3 +5,8 @@ end + Then /^the result should be ('|")(.*)\1$/ do |quote,value| + expect(@result).to eq(value) + end ++ ++# For whitespace or other characters that are hard to read in source code: ++Then /^I should get '([^']*)' \+ U\+(\h{4,}) \+ '([^']*)'$/ do |pre,code,post| ++ expect(@result).to eq(pre + code.hex.chr(Encoding::UTF_8) + post) ++end +diff --git a/features/symbols.feature b/features/symbols.feature +index 46d9a51..f8a5e84 100644 +--- a/features/symbols.feature ++++ b/features/symbols.feature +@@ -12,10 +12,3 @@ Feature: Decode LaTeX symbol directives + | \\uparrow | ↑ | + | \\downarrow | ↓ | + | \\rightarrow | → | +- +- Scenarios: Whitespace +- | latex | unicode | description | +- | x\\,x | x x | small space | +- | x~x | x x | non-breaking space | +- | ~x |  x | non-breaking space | +- +diff --git a/features/whitespace.feature b/features/whitespace.feature +new file mode 100644 +index 0000000..fe5b208 +--- /dev/null ++++ b/features/whitespace.feature +@@ -0,0 +1,13 @@ ++Feature: Decode LaTeX whitespace directives ++ As a hacker who works with LaTeX ++ I want to be able to decode LaTeX whitespace ++ ++ Scenario Outline: LaTeX to Unicode transformation ++ When I decode the string '' ++ Then I should get
 + U+ + 
++
++  Scenarios: Whitespace
++    | latex | pre | code | post | description                |
++    | x~x   | 'x' | 00A0 | 'x'  | non-breaking space         |
++    | ~y    | ''  | 00A0 | 'y'  | leading non-breaking space |
++    | z\\,z | 'z' | 2009 | 'z'  | small space                |
+-- 
+2.32.0
+
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 746bb9b6ce..fb9d5c53b9 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13111,3 +13111,53 @@ (define-public ruby-ritex
 into HTML pages easy.  It supports most TeX math syntax as well as macros.")
     ;; doesn't clearly state -only vs -or-later
     (license license:gpl2)))
+
+(define-public ruby-latex-decode
+  (let ((commit "08cc2d4a2c1359abaeb2f1e1a9d78e16a546cf7c")
+        (revision "1"))
+    ;; The commit is a released version, but doesn't have a Git tag.
+    ;; Using Git rather than the gem makes it easier to patch.
+    (package
+      (name "ruby-latex-decode")
+      (version (git-version "0.3.2" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/inukshuk/latex-decode")
+                      (commit commit)))
+                (sha256
+                 (base32
+                  "0clvnqms81i33iff3pr3zz8sbyknvg704zghd62ysqrlbi4jpcpk"))
+                (patches
+                 ;; see https://github.com/inukshuk/latex-decode/issues/13
+                 (search-patches "ruby-latex-decode-fix-test.patch"))
+                (file-name (git-file-name name version))))
+      (build-system ruby-build-system)
+      (native-inputs
+       (list ruby-byebug
+             ruby-cucumber
+             ruby-ritex
+             ruby-rspec))
+      (arguments
+       (list
+        #:test-target "cucumber"
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-after 'extract-gemspec 'less-strict-dependencies
+              (lambda args
+                (substitute* "Gemfile"
+                  (("'cucumber', '[^']*'")
+                   "'cucumber'"))))
+            (add-after 'replace-git-ls-files 'replace-another-git-ls-files
+              (lambda args
+                (substitute* "latex-decode.gemspec"
+                  (("`git ls-files -- [{]test,spec,features[}]/\\*`")
+                   "`find {test,spec,features} -type f | sort`")))))))
+      (home-page "https://github.com/inukshuk/latex-decode")
+      (synopsis "Convert LaTeX to Unicode")
+      (description
+       "This package provides a gem to convert LaTeX input to Unicode.  Its
+original use was as an input filter for BibTeX-Ruby, but it can be used
+independently to decode LaTeX.  Many of the patterns used by this Ruby gem are
+based on François Charette's equivalent Perl module @code{LaTeX::Decode}.")
+      (license license:gpl3+))))

From patchwork Mon Jul 25 12:16:21 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: Philip McGrath 
X-Patchwork-Id: 40930
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 53BF527BBE9; Mon, 25 Jul 2022 13:19:35 +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 EED4E27BBE9
	for ; Mon, 25 Jul 2022 13:19:34 +0100 (BST)
Received: from localhost ([::1]:48484 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from )
	id 1oFx3e-0008A3-31
	for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:19:34 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47488)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from )
 id 1oFx2D-0006yu-3R
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:05 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:59667)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from )
 id 1oFx2C-0005Ej-Qr
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:04 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from ) id 1oFx2C-0002tT-F4
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:04 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#56759] [PATCH 06/20] gnu: Add ruby-link-header.
Resent-From: Philip McGrath 
Original-Sender: "Debbugs-submit" 
Resent-CC: guix-patches@gnu.org
Resent-Date: Mon, 25 Jul 2022 12:18:04 +0000
Resent-Message-ID: 
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 56759
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 56759@debbugs.gnu.org
Cc: Philip McGrath 
Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875147111010
 (code B ref 56759); Mon, 25 Jul 2022 12:18:04 +0000
Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:17:51 +0000
Received: from localhost ([127.0.0.1]:49398 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from )
 id 1oFx1y-0002rV-E9
 for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:17:50 -0400
Received: from mail-qk1-f176.google.com ([209.85.222.176]:46930)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from ) id 1oFx1u-0002r0-VU
 for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:17:47 -0400
Received: by mail-qk1-f176.google.com with SMTP id v28so8386927qkg.13
 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:17:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=philipmcgrath.com; s=google;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=Od4q+5Ll0iFghRQFwd1EiqqP5Bwp0MrSPhnfuyT37mI=;
 b=QiZKLdBylbhtpmLV4B6MmnbMaGycbibl96CP46gKikWHj+kDEybQMtgfki05X/t3/5
 vpT3gfvXtN9rfy3yT2A4BwLCntsXpOtaRQwbA2FN5Hrf0l2bAAb8fMMPzpRGKewB88Hj
 K+RYC4+sJMtpowK86DapyDVREL3CfXFCRwEMfhMYTw53JQ/MNNnllpyQZfxw6zTEs5oy
 m/q6mXbwR+wPiueOJHEdrZN4ZWKsST0fHBwLOCssSuCoqPzCZeVHZoUzkl/0X2dk1X43
 5mMu05/fy8ktRTTllMg0x2rH+y40PweWUG/vuwvAdWlXix+270Uwr5l0h4Vm1B5k2Zsp
 18ng==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=Od4q+5Ll0iFghRQFwd1EiqqP5Bwp0MrSPhnfuyT37mI=;
 b=Vb/03M7EHJlS3ZrDshpAHDerNGZlHvrKE394m+KvHAR3F4CU+txCv851cOUuw7MTJW
 KU0eGNCp8gQLVcv9VWS1R1dgFHeSjoaPv2lT+vtZnyYmZT2HdjqcnPmYXU7WeZxlfjIB
 0BzI418aaaFVMJLM/P0SMCI83lbV0SPMWeAVTbKEo1mIqc7yd1igtFypeOrNvLrSST9J
 3cMXSwyVo9CTCRnizg4f+9e7cscgFj6q5h+bt732E8zOfQTG2f63matEDFLje8FGaSV1
 TW06tP/DROrQnT0bhH+U5cerdR6HeojAPlTBWmwJgEKU4+C+X18QJa9JvCXwI4n7HjhI
 OVmQ==
X-Gm-Message-State: AJIora/5PcK4IejndOj5LY8UlAJdxFAGuiJR3XegLFrP/rZ+4x3Moi2S
 vzTFtOkIzpzPpGoDBiKh+MwRmKrDYltJEFuX
X-Google-Smtp-Source: 
 AGRyM1t8hceLVOT6MZQC8D/hu0scm8uJnyFntn4QnKPXu3RxZU6W50tNbf+1LU4zkCpW5cvSkK0cVw==
X-Received: by 2002:a05:620a:468d:b0:6b6:775:d5ab with SMTP id
 bq13-20020a05620a468d00b006b60775d5abmr9025701qkb.652.1658751461296;
 Mon, 25 Jul 2022 05:17:41 -0700 (PDT)
Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51])
 by smtp.gmail.com with UTF8SMTPSA id
 ew5-20020a05622a514500b0031ecb90454fsm7391857qtb.70.2022.07.25.05.17.40
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 25 Jul 2022 05:17:41 -0700 (PDT)
From: Philip McGrath 
Date: Mon, 25 Jul 2022 08:16:21 -0400
Message-Id: 
 <4de278fe252f3b20e37a852ca4fcd6980c5ae77e.1658750358.git.philip@philipmcgrath.com>
X-Mailer: git-send-email 2.32.0
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"
 
X-getmail-retrieved-from-mailbox: Patches

* gnu/packages/ruby.scm (ruby-link-header): New variable.
---
 gnu/packages/ruby.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index fb9d5c53b9..d03d13371c 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13161,3 +13161,24 @@ (define-public ruby-latex-decode
 independently to decode LaTeX.  Many of the patterns used by this Ruby gem are
 based on François Charette's equivalent Perl module @code{LaTeX::Decode}.")
       (license license:gpl3+))))
+
+(define-public ruby-link-header
+  (package
+    (name "ruby-link-header")
+    (version "0.0.8")
+    (source (origin
+              (method url-fetch)
+              (uri (rubygems-uri "link_header" version))
+              (sha256
+               (base32
+                "1yamrdq4rywmnpdhbygnkkl9fdy249fg5r851nrkkxr97gj5rihm"))))
+    (build-system ruby-build-system)
+    (home-page "https://github.com/asplake/link_header")
+    (synopsis "Parse and format HTTP @code{Link} headers")
+    (description
+     "This gem provides the classes @code{LinkHeader} and
+@code{LinkHeader::Link}, which represent HTTP @code{Link} headers conforming
+to RFC 5988.  Objects can be constructed from and converted to text or a
+JSON-friendly @code{Array} representation.  They can also be used to generate
+corresponding HTML @code{link} elements.")
+    (license license:expat)))

From patchwork Mon Jul 25 12:16:22 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philip McGrath 
X-Patchwork-Id: 40925
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 E44D927BBE9; Mon, 25 Jul 2022 13:18:33 +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 E157B27BBEB
	for ; Mon, 25 Jul 2022 13:18:32 +0100 (BST)
Received: from localhost ([::1]:46834 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from )
	id 1oFx2e-000712-0d
	for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:18:32 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47490)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from )
 id 1oFx2D-0006zT-DQ
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:05 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:59668)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from )
 id 1oFx2D-0005Es-1w
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:05 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from ) id 1oFx2C-0002tf-UV
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:04 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#56759] [PATCH 07/20] gnu: Add ruby-rdf.
Resent-From: Philip McGrath 
Original-Sender: "Debbugs-submit" 
Resent-CC: guix-patches@gnu.org
Resent-Date: Mon, 25 Jul 2022 12:18:04 +0000
Resent-Message-ID: 
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 56759
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 56759@debbugs.gnu.org
Cc: Philip McGrath 
Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875147511034
 (code B ref 56759); Mon, 25 Jul 2022 12:18:04 +0000
Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:17:55 +0000
Received: from localhost ([127.0.0.1]:49401 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from )
 id 1oFx22-0002rp-S0
 for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:17:55 -0400
Received: from mail-qt1-f171.google.com ([209.85.160.171]:37536)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from ) id 1oFx1y-0002rA-T4
 for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:17:51 -0400
Received: by mail-qt1-f171.google.com with SMTP id l14so8033086qtv.4
 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:17:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=philipmcgrath.com; s=google;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=DFjMT3LZZ/mQmYVqI+J2yLbwvG4uyTxQsw96vhtvDFw=;
 b=hp2DB3BIwzP3ZrPbXy2VdOuMc8DjBuqYsG7aoYBiQrjqTqlgnZ3t5PceytWFAJxggv
 N3lxktai+98hAy16baRqpsMT/bTLlpCL/dVic9u7lTTdZ27Ox3YDtsuSLsWnaymUeYGS
 ysABXlygOG9cRFERplu7wrTuN/D4ItHBHCmDHwMlUTU/ONHN91z7+BPhIPQbv/zdm+WC
 16yj3Rmse5e8eJ1uyaRX8Zspn/1/DQs76DKAvKjn0LxUYvUzxCgBBaLPbZqoDBLh95Sm
 UdtTenFNhR9WTinysNd3gijf6ltE96TU0au95Mi2iKrUnZ868APh0Szb7GcBlROctRsg
 GMjQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=DFjMT3LZZ/mQmYVqI+J2yLbwvG4uyTxQsw96vhtvDFw=;
 b=wxAzFsNCqKZoupGd6bIMIkltrxcMXIh9smmhyAnbDWKIwXbG2o9S9PgiBjLNu8hQOZ
 OaLSWetpyMTIibyzAufhY8DOnGiyYDH8v8PmVc7wfbrHJvZNLy/AlQwQjGwXXHcrxzTG
 IQsJqVSvGUnCXe19U4wLwBSMutLmJmfuiM0neGtq7+EZDwr2Y7tIZ3fBTPyWJAx9mXat
 4F11h6vlCrvk18UuG/1QezE/BglRf4DIud1qPj9o4ZP4imUQgr7G6li9t6wT7bFEAimW
 j2LswppHxKSBnJ2s2g4nIzo+SdMw/0nqIgtjrUqK0KkMg2u04lvESD07zhD7d+8u450J
 hatw==
X-Gm-Message-State: AJIora9cBOflkkcduFA4Guh9+5iZLpbrp3J1vg8IGxKN4klP4ynxDCy2
 p1cLM43tk9bfn+pRz5i1ky8ypgpjgzJRtx7X
X-Google-Smtp-Source: 
 AGRyM1srO2/q04EPA3lsjVbu7axwBzMtoow2yXPfjzytfVW0eRDdf9rgU30M4uUKSyqUab85eoKgSQ==
X-Received: by 2002:ac8:4e35:0:b0:31e:ffe7:1a71 with SMTP id
 d21-20020ac84e35000000b0031effe71a71mr10101764qtw.261.1658751465392;
 Mon, 25 Jul 2022 05:17:45 -0700 (PDT)
Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51])
 by smtp.gmail.com with UTF8SMTPSA id
 h14-20020ac8776e000000b0031f36cd1958sm2110766qtu.81.2022.07.25.05.17.45
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 25 Jul 2022 05:17:45 -0700 (PDT)
From: Philip McGrath 
Date: Mon, 25 Jul 2022 08:16:22 -0400
Message-Id: 
 
X-Mailer: git-send-email 2.32.0
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"
 
X-getmail-retrieved-from-mailbox: Patches

* gnu/packages/ruby.scm (ruby-rdf): New variable.
---
 gnu/packages/ruby.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index d03d13371c..d3b50f3202 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13182,3 +13182,25 @@ (define-public ruby-link-header
 JSON-friendly @code{Array} representation.  They can also be used to generate
 corresponding HTML @code{link} elements.")
     (license license:expat)))
+
+(define-public ruby-rdf
+  (package
+    (name "ruby-rdf")
+    (version "3.2.8")
+    (source (origin
+              (method url-fetch)
+              (uri (rubygems-uri "rdf" version))
+              (sha256
+               (base32
+                "1cj0k8ryd8hgbkgqb5swvy6fiygxny3y5bln0my5gv6dbfv3gm20"))))
+    (build-system ruby-build-system)
+    (propagated-inputs (list ruby-link-header))
+    (arguments
+     (list #:tests? #f)) ;; tests have many cyclic dependencies
+    (home-page "https://ruby-rdf.github.io/")
+    (synopsis "Linked Data for Ruby")
+    (description
+     "This gem contains the core algorithms and classes used for doing basic
+programming with @acronym{RDF, Resource Description Framework} data,
+implemented in pure Ruby.")
+    (license license:unlicense)))

From patchwork Mon Jul 25 12:16:23 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philip McGrath 
X-Patchwork-Id: 40929
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 77F6F27BBEA; Mon, 25 Jul 2022 13:19:29 +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 378C427BBE9
	for ; Mon, 25 Jul 2022 13:19:29 +0100 (BST)
Received: from localhost ([::1]:48404 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from )
	id 1oFx3Y-00086b-B5
	for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:19:28 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47492)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from )
 id 1oFx2D-00070A-NJ
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:05 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:59669)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from )
 id 1oFx2D-0005Ez-Dq
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:05 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from ) id 1oFx2D-0002tm-9y
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:05 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#56759] [PATCH 08/20] gnu: Add ruby-rdf-vocab.
Resent-From: Philip McGrath 
Original-Sender: "Debbugs-submit" 
Resent-CC: guix-patches@gnu.org
Resent-Date: Mon, 25 Jul 2022 12:18:05 +0000
Resent-Message-ID: 
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 56759
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 56759@debbugs.gnu.org
Cc: Philip McGrath 
Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875147911053
 (code B ref 56759); Mon, 25 Jul 2022 12:18:05 +0000
Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:17:59 +0000
Received: from localhost ([127.0.0.1]:49405 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from )
 id 1oFx27-0002sC-7i
 for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:17:59 -0400
Received: from mail-qk1-f181.google.com ([209.85.222.181]:34351)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from ) id 1oFx22-0002rT-VK
 for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:17:56 -0400
Received: by mail-qk1-f181.google.com with SMTP id c3so8444393qko.1
 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:17:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=philipmcgrath.com; s=google;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=vbpzWuDOnL2mbE32xdUFe+Hstkq8VzakuKzA2u9QJd4=;
 b=FQqCiPotUuD8ymLyYbNzDtvqVyxLYqUZW2wv9YTrzygNnNQqeIP8m05vbsPm6TOI4D
 YQ5xjHH6X/i6mIL+QSfFdsAvRxwddGlKy2Nt7f7jIwCNhFKc1KhZSzykPj4SmN7h81TG
 8K5pZ+h8bOEZWXb6P0shWdbAoPLkFrpRPy3NJYdd0l6qXZMf+Uo/+bJ5KdRZaxCEdWEX
 kjkCCRG6Vk0DTNH+VnKCNW463u+GfZAmttvA+VT+wSUtT+eOCAeOlPS2zEesuQ1IWbPz
 oNEU6xVvZgRm2hBvCoeNJ+C4hu2Oa8ckMe2pqqZEqVIjo1IklImDlyi4u9q8cI9b5yBp
 FGgg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=vbpzWuDOnL2mbE32xdUFe+Hstkq8VzakuKzA2u9QJd4=;
 b=WF2EoxfKJWDYQb6WD30jobYDWgmG7S24YvLj8jarzumknekQqkOuopmqUkl/Agfc9v
 E63Xya0IINEoTf6tYWPNC24QkJ6xCDo5YV7oQSmOulYqSFwFik6qZU8K63+JLghVihf/
 X5zy8gSrDg93CKugXr09Sx/MiGDYOWh/PIoXjzjBLzTfZzKBvpw1u1/3NK2pQDKklAc9
 F9LWUPiOFwUL4XKmvBxMDysk15TM+TMtkjwKAtWjouYVc7dTovJtlWUyF/vdVGZQLMoK
 NdJkmJyfYwSAKccWrqqL60dYBPtnzvO3TUpsVOR/5RWD0J7dea8e5ApI9hMtmAW2aCbF
 uzYw==
X-Gm-Message-State: AJIora984uoNwBDJmM+RDKSRpsQ4nK8mjLJKUGAKR2lTG00L/FoR8Ram
 Ch9fDGUTw8w25uA7QMJPD9WQdqVpubfZHh2u
X-Google-Smtp-Source: 
 AGRyM1sGzOoFCi5JjR6bk8RI2mRix6Rr9GS4A95dX+lYKe3nsP1Ge4TJsfU7BLJE2Sz3slUhQxZNjA==
X-Received: by 2002:a05:620a:17a1:b0:6b6:e1c:f29c with SMTP id
 ay33-20020a05620a17a100b006b60e1cf29cmr8749440qkb.523.1658751469415;
 Mon, 25 Jul 2022 05:17:49 -0700 (PDT)
Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51])
 by smtp.gmail.com with UTF8SMTPSA id
 y11-20020a05622a004b00b003051f450049sm7799672qtw.8.2022.07.25.05.17.49
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 25 Jul 2022 05:17:49 -0700 (PDT)
From: Philip McGrath 
Date: Mon, 25 Jul 2022 08:16:23 -0400
Message-Id: 
 
X-Mailer: git-send-email 2.32.0
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"
 
X-getmail-retrieved-from-mailbox: Patches

* gnu/packages/ruby.scm (ruby-rdf-vocab): New variable.
---
 gnu/packages/ruby.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index d3b50f3202..9cf5b531fb 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13204,3 +13204,25 @@ (define-public ruby-rdf
 programming with @acronym{RDF, Resource Description Framework} data,
 implemented in pure Ruby.")
     (license license:unlicense)))
+
+(define-public ruby-rdf-vocab
+  (package
+    (name "ruby-rdf-vocab")
+    (version "3.2.1")
+    (source (origin
+              (method url-fetch)
+              (uri (rubygems-uri "rdf-vocab" version))
+              (sha256
+               (base32
+                "1bqmp9rfjvd56ajjz68ij6jla1wjf1fqg7bi4dpnjrsmn4pwaq7l"))))
+    (build-system ruby-build-system)
+    (propagated-inputs
+     (list ruby-rdf))
+    (arguments
+     (list #:tests? #f)) ;; tests have many cyclic dependencies
+    (home-page "https://github.com/ruby-rdf/rdf-vocab")
+    (synopsis "Common RDF vocabularies")
+    (description
+     "This gem extends @code{ruby-rdf} with several common @acronym{RDF,
+Resource Description Framework} vocabularies.")
+    (license license:unlicense)))

From patchwork Mon Jul 25 12:16:24 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philip McGrath 
X-Patchwork-Id: 40928
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 4BE0727BBEA; Mon, 25 Jul 2022 13:18:56 +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 A77CC27BBE9
	for ; Mon, 25 Jul 2022 13:18:55 +0100 (BST)
Received: from localhost ([::1]:47762 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from )
	id 1oFx30-0007f8-Rj
	for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:18:54 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47496)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from )
 id 1oFx2E-00070n-2r
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:06 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:59670)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from )
 id 1oFx2D-0005F8-PK
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:05 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from ) id 1oFx2D-0002tu-LR
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:18:05 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#56759] [PATCH 09/20] gnu: Add ruby-bibtex-ruby.
Resent-From: Philip McGrath 
Original-Sender: "Debbugs-submit" 
Resent-CC: guix-patches@gnu.org
Resent-Date: Mon, 25 Jul 2022 12:18:05 +0000
Resent-Message-ID: 
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 56759
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 56759@debbugs.gnu.org
Cc: Philip McGrath 
Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875148411131
 (code B ref 56759); Mon, 25 Jul 2022 12:18:05 +0000
Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:18:04 +0000
Received: from localhost ([127.0.0.1]:49414 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from )
 id 1oFx2B-0002tF-SS
 for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:04 -0400
Received: from mail-qt1-f170.google.com ([209.85.160.170]:34764)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from ) id 1oFx27-0002rm-4c
 for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:01 -0400
Received: by mail-qt1-f170.google.com with SMTP id e5so8040319qts.1
 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:17:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=philipmcgrath.com; s=google;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=Hi91072bXbtKgTeGS538OSNYv2ZDXNw6EH2o8CrME4g=;
 b=VcvXXekJw6NtuIcoPBl6cAjIEBs3WmaGznARGtWToPHP/wqoL3s61S1GPOhi4PtilT
 6UXseIvBStNZXcou5YEOOxrWHB66SMggNusJ1dkKdDainuGOgSYUNZR8Ipbz11PtvJMb
 tbz5Z2lPxRqHy9HiVPpqt3fyawzXXec3nMoeCjf6f5ICL1Aw5850Qre/2pt0q0txkqQa
 iBZHGghwHNcHgUc2L/SxmD5c+20x20qe+iHH6z3Ff4Bx3FqK7zuvLSPlRLntNZt3hzhB
 li1nHXptTdNyAQUZxgnBbyZ87QGFXQrTvHxkNjRIMKAG35a7xreNdonEllTu0+g0TjVx
 JoPw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=Hi91072bXbtKgTeGS538OSNYv2ZDXNw6EH2o8CrME4g=;
 b=HDZwZpyNs2cCXJYrsg0uxgv79FDvk7fssdosevPWtDI0rNiDPRET7riHhg/k3tGQru
 q//+XGmb8CHO1JuEAXdd8rxPNdWtno0MZ0/4sDKIaOZCoXWdUNd+83XTDya/lYMeq8s+
 8BfIY+sVijoe1WwzhVgDn7I4R2cRyC12rtWrkuDe6SKGzAdG+42hKXImybBu49GVCWAh
 R94niGTbrHLL+Zah1C3ysRpLGdgg58jHqwoEi2l/UM4r3Rkdu9aiwKzcIsLy1hCl/N40
 Mg15805YcYrRcSFqbZIInkyhuK9gL/QbMJeyPkoSjaYij5NHb76bwaFZzu9/Uxw4bHE/
 S9rg==
X-Gm-Message-State: AJIora+zAK+H+NYyWBq2p7jf2IGPE4ynrtiJhdZpEGbCKvVWV05J0d6k
 Nxv1JL3mAcXgi42ZmGjmWZWdfcZ9LA6ilNIP
X-Google-Smtp-Source: 
 AGRyM1so6wFidY4eBMYiuUktVfBn+x4d1S//5QNerQRqlrE96NgeoBg7Q+pa3jQEbuyBfsD2vuRKWg==
X-Received: by 2002:ac8:5983:0:b0:31f:2161:26f6 with SMTP id
 e3-20020ac85983000000b0031f216126f6mr10117782qte.237.1658751473579;
 Mon, 25 Jul 2022 05:17:53 -0700 (PDT)
Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51])
 by smtp.gmail.com with UTF8SMTPSA id
 u7-20020a05620a454700b006b5ee4de4fbsm8964201qkp.37.2022.07.25.05.17.53
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 25 Jul 2022 05:17:53 -0700 (PDT)
From: Philip McGrath 
Date: Mon, 25 Jul 2022 08:16:24 -0400
Message-Id: 
 <9dec20822de0192c8add11fbd619261f6db71172.1658750358.git.philip@philipmcgrath.com>
X-Mailer: git-send-email 2.32.0
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"
 
X-getmail-retrieved-from-mailbox: Patches

* gnu/packages/ruby.scm (ruby-bibtex-ruby): New variable.
---
 gnu/packages/ruby.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 9cf5b531fb..f0f7703b32 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13226,3 +13226,46 @@ (define-public ruby-rdf-vocab
      "This gem extends @code{ruby-rdf} with several common @acronym{RDF,
 Resource Description Framework} vocabularies.")
     (license license:unlicense)))
+
+(define-public ruby-bibtex-ruby
+  (package
+    (name "ruby-bibtex-ruby")
+    (version "6.0.0")
+    (source (origin
+              (method url-fetch)
+              (uri (rubygems-uri "bibtex-ruby" version))
+              (sha256
+               (base32
+                "0vynqa8q9hwghw6sdljr304b5gh11nqzy5nwqqwxmgy7pqyf7qw5"))))
+    (build-system ruby-build-system)
+    (propagated-inputs
+     (list ruby-latex-decode
+           ruby-rdf
+           ruby-rdf-vocab))
+    (native-inputs
+     (list ruby-byebug
+           ruby-cucumber
+           ruby-minitest
+           ruby-yard))
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'extract-gemspec 'avoid-bundler
+            (lambda args
+              (substitute* "Rakefile"
+                (("require 'bundler" orig)
+                 (string-append "# " orig " # patched for Guix"))
+                (("Bundler\\.setup" orig)
+                 (string-append "true # " orig " # patched for Guix"))))))))
+    (home-page "https://github.com/inukshuk/bibtex-ruby")
+    (synopsis "Rubyist's Swiss Army knife for all things BibTeX")
+    (description
+     "BibTeX-Ruby is the Rubyist's Swiss Army knife for all things BibTeX.
+It includes a parser for all common BibTeX objects and a sophisticated name
+parser that tokenizes correctly formatted names.  BibTeX-Ruby recognizes
+BibTeX string replacements, joins values containing multiple strings or
+variables, supports cross-references, and decodes common LaTeX formatting
+instructions to unicode.  If you are in a hurry, it also allows for easy
+export/conversion to formats such as YAML, JSON, CSL, and XML (BibTeXML).")
+    (license license:gpl3+)))

From patchwork Mon Jul 25 12:16:25 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philip McGrath 
X-Patchwork-Id: 40934
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 3148727BBEA; Mon, 25 Jul 2022 13:19:52 +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 BDAC027BBE9
	for ; Mon, 25 Jul 2022 13:19:51 +0100 (BST)
Received: from localhost ([::1]:49200 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from )
	id 1oFx3u-0000Lw-Q4
	for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:19:50 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47766)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from )
 id 1oFx38-0008Jy-8n
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:02 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:59703)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from )
 id 1oFx37-0005O4-WB
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:02 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from ) id 1oFx37-0002xY-R7
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:01 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#56759] [PATCH 10/20] gnu: Add ruby-unicode-scripts.
Resent-From: Philip McGrath 
Original-Sender: "Debbugs-submit" 
Resent-CC: guix-patches@gnu.org
Resent-Date: Mon, 25 Jul 2022 12:19:01 +0000
Resent-Message-ID: 
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 56759
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 56759@debbugs.gnu.org
Cc: Philip McGrath 
Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875148811184
 (code B ref 56759); Mon, 25 Jul 2022 12:19:01 +0000
Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:18:08 +0000
Received: from localhost ([127.0.0.1]:49423 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from )
 id 1oFx2G-0002uJ-Dl
 for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:08 -0400
Received: from mail-qk1-f182.google.com ([209.85.222.182]:33561)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from ) id 1oFx2B-0002s9-Nc
 for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:04 -0400
Received: by mail-qk1-f182.google.com with SMTP id f14so8462892qkm.0
 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:18:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=philipmcgrath.com; s=google;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=8mq/a+/IrRgbdJpWB3UtRQrl6jkQKMxD8Gah0S1KoPo=;
 b=Ldttn9o6GTzl/iCkB/E/P8X1sHFVH5vyBVFHW4SuYsYiV7JTq7HA1y5M3HfwY4CSIW
 HVx/LAlDMwrRpIPNH0hrzY+ScXwQXdRaTSU/th5IwrDXI/JadCPBiY8rLLnot6diqm1C
 jcs4Cgze5nuskOCS9AG5u6tPBp2/S50lgOJzsvpaV0h+pufSyWbRFIxzEhXWN8gpSkHS
 4be66Uyo2WGHuH5FgQSHbfXjEK+CUjQ/PxHMf3GkGMeWxHBITR6r8uQuiR5pu8Nr99oK
 tg7fT7NYZV95M6251JUcNzTdZ1JlhyW4ZjxVJx47dOmPZyPS1AcoIQhgBZv8ARKqsyX3
 52Dg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=8mq/a+/IrRgbdJpWB3UtRQrl6jkQKMxD8Gah0S1KoPo=;
 b=TPy2kYWV8/7j2keNq0iQU9Bi8ihsz/ShrAY4nW5qreHJsXVibQVzEaoYzyLy+x++lg
 2wMw4uHorXReLaeBf4gBVoIp/eAAT3+sfL57OIxJaYgVWbBNWKTGqSdU/XT+S2z4Urm7
 N0/DBy5zpbhcdJwx+Gtfq3mhA/n05JvhV13zIkFEbGGhtXf2MDK9mnGyFqrZhvDSiPNa
 fc8ldi6HwHUrN6JEWwxyU2eyhSbJH5Ab2Ds99954Q/W56duFKa2ZQvsRlAntk/iaWjSx
 yT/oMK9+8cEpXRXnjkBQ1TAFJdVMHumV5DNONiALoTqwgKU4uhCP4B6lfeL8A/s9PYrT
 ZXbg==
X-Gm-Message-State: AJIora8PJmN066xkz5A+CI7gs5DghpMt4NEZuh4F1FtVhDeOT+0KJD8J
 wpYOT9sIuHO+haaBhEquts6nRkBrcsDP7OK0
X-Google-Smtp-Source: 
 AGRyM1uZTU/URhGCwSB1LZI296SLTExpg0o8hjYim8xL8HSliIJYak4MUdeg7JDSAZ4IQTJloOZjuQ==
X-Received: by 2002:ae9:f50d:0:b0:6b5:ed15:495d with SMTP id
 o13-20020ae9f50d000000b006b5ed15495dmr8879975qkg.339.1658751478069;
 Mon, 25 Jul 2022 05:17:58 -0700 (PDT)
Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51])
 by smtp.gmail.com with UTF8SMTPSA id
 h19-20020a05622a171300b0031ef6a420d6sm7782617qtk.35.2022.07.25.05.17.57
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 25 Jul 2022 05:17:57 -0700 (PDT)
From: Philip McGrath 
Date: Mon, 25 Jul 2022 08:16:25 -0400
Message-Id: 
 
X-Mailer: git-send-email 2.32.0
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"
 
X-getmail-retrieved-from-mailbox: Patches

* gnu/packages/ruby.scm (ruby-unicode-scripts): New variable.
---
 gnu/packages/ruby.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index f0f7703b32..99380739c0 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13269,3 +13269,25 @@ (define-public ruby-bibtex-ruby
 instructions to unicode.  If you are in a hurry, it also allows for easy
 export/conversion to formats such as YAML, JSON, CSL, and XML (BibTeXML).")
     (license license:gpl3+)))
+
+(define-public ruby-unicode-scripts
+  (package
+    (name "ruby-unicode-scripts")
+    (version "1.7.0")
+    (source (origin
+              (method url-fetch)
+              (uri (rubygems-uri "unicode-scripts" version))
+              (sha256
+               (base32
+                "1k7kbfk806zam129bp7pdiqkfb5hn51x149irzvjhs4xf22m4yvi"))))
+    (build-system ruby-build-system)
+    (native-inputs
+     (list ruby-minitest))
+    (arguments
+     (list #:test-target "spec"))
+    (home-page "https://github.com/janlelis/unicode-scripts")
+    (synopsis "Unicode script classification library")
+    (description
+     "This gem provides a simple interface for classifying Ruby strings using
+the Unicode @code{Script} and @code{Script_Extensions} properties.")
+    (license license:expat)))

From patchwork Mon Jul 25 12:16:26 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philip McGrath 
X-Patchwork-Id: 40931
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 97FCB27BBEA; Mon, 25 Jul 2022 13:19:45 +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 47EF027BBE9
	for ; Mon, 25 Jul 2022 13:19:45 +0100 (BST)
Received: from localhost ([::1]:48754 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from )
	id 1oFx3o-0008NB-B6
	for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:19:44 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47770)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from )
 id 1oFx38-0008Ky-Oh
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:02 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:59704)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from )
 id 1oFx38-0005OE-Ew
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:02 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from ) id 1oFx38-0002xg-Ad
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:02 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#56759] [PATCH 11/20] gnu: Add ruby-citeproc.
Resent-From: Philip McGrath 
Original-Sender: "Debbugs-submit" 
Resent-CC: guix-patches@gnu.org
Resent-Date: Mon, 25 Jul 2022 12:19:02 +0000
Resent-Message-ID: 
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 56759
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 56759@debbugs.gnu.org
Cc: Philip McGrath 
Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875149311199
 (code B ref 56759); Mon, 25 Jul 2022 12:19:02 +0000
Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:18:13 +0000
Received: from localhost ([127.0.0.1]:49426 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from )
 id 1oFx2K-0002uW-Mn
 for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:13 -0400
Received: from mail-qk1-f170.google.com ([209.85.222.170]:39497)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from ) id 1oFx2F-0002sr-UI
 for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:08 -0400
Received: by mail-qk1-f170.google.com with SMTP id m7so8425186qkk.6
 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:18:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=philipmcgrath.com; s=google;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=vaoUYnJ4XYVIS4WwLD+2i3U05GzjqGkSx6YcSI9nwfc=;
 b=FB3JYv9iZPCZV0+42N1x3Loii0C4oW87QCpBJeX8UDVzUY+PeG43JM8d+mGwzMlMi6
 84xP76Kt3o0bRX4VCz07vlSaEvPkVeM1djbMsnBeM+cmx2KrU+sqrbfgAu+j2EWCbcA3
 fBYFAFYktW4+a2oG6jaj3sw5TzCXcltJbhySy7axCOtevJNcklPrjEXjZtIq5kZ0a1xy
 yc8zgt82WEvzn/DlDpgwK03FFaorUTAdSuXFlQZvIWXzn/T6lRW2pOfAiU27CvEZWHmI
 PE3R5MoxHfcwU8cH0rq/+Z59AuR2OzUECAjcOwtS7OPAZffTe5rjfcLXdxQ0NlpRNEx2
 Ye+g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=vaoUYnJ4XYVIS4WwLD+2i3U05GzjqGkSx6YcSI9nwfc=;
 b=mlolEkeRglzWgTwJvlnPLU1hTFldpfZ8ejLRBUCv7becZbuCKwFo40FhjiOLaJPe+O
 Q6t6YK5JUEjS874oVodNzVkpFAgLdJlyQNvOuRx+wPeuNCLJRM3+9i9+4mMgP19YseTL
 /YIFyi2jIWF236BOAbkUnQT0yu3pCkIKFatXFsltVYzcZwjK9ib8rcVylGx4IHpE2Kqo
 OZQUGPuHyE8KTd0Tc9dp9IBCjqqZGygbRUB5yBkRh3cIXBrohRvjpJugQ8pjzTG1r4dK
 I7CvsdsaCNzsgCDbYG3piDbUFmn+YlLmR5Mz/2vQKROAU9G9TVvWBwI6n6ksP6jTFUWV
 kfdg==
X-Gm-Message-State: AJIora/yGfDbEtYFNX/lVA6Co41y5nK5dEnW2VPWE1y3szPb+dOMJUVy
 kDkxV5Z8HDU4X7Be7751u1rydvl0N+xrXHHD
X-Google-Smtp-Source: 
 AGRyM1vDPusF93ibppw3lJRCJUUykFBIFYk9bMcZVCnmNVsLo6sEu5Q/tEYdAt/UkbElT3rdkLyq8g==
X-Received: by 2002:a05:620a:244d:b0:6b2:538f:ffda with SMTP id
 h13-20020a05620a244d00b006b2538fffdamr8669023qkn.218.1658751482338;
 Mon, 25 Jul 2022 05:18:02 -0700 (PDT)
Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51])
 by smtp.gmail.com with UTF8SMTPSA id
 ca24-20020a05622a1f1800b0031ea864d3b2sm7359688qtb.30.2022.07.25.05.18.02
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 25 Jul 2022 05:18:02 -0700 (PDT)
From: Philip McGrath 
Date: Mon, 25 Jul 2022 08:16:26 -0400
Message-Id: 
 <93b10df99a5686fd904d5626da703a1ec865a031.1658750358.git.philip@philipmcgrath.com>
X-Mailer: git-send-email 2.32.0
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"
 
X-getmail-retrieved-from-mailbox: Patches

* gnu/packages/ruby.scm (ruby-citeproc): New variable.
---
 gnu/packages/ruby.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 99380739c0..2cc83d2f82 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13291,3 +13291,27 @@ (define-public ruby-unicode-scripts
      "This gem provides a simple interface for classifying Ruby strings using
 the Unicode @code{Script} and @code{Script_Extensions} properties.")
     (license license:expat)))
+
+(define-public ruby-citeproc
+  (package
+    (name "ruby-citeproc")
+    (version "1.0.10")
+    (source (origin
+              (method url-fetch)
+              (uri (rubygems-uri "citeproc" version))
+              (sha256
+               (base32
+                "13vl5sjmksk5a8kjcqnjxh7kn9gn1n4f9p1rvqfgsfhs54p0m6l2"))))
+    (build-system ruby-build-system)
+    (propagated-inputs
+     (list ruby-namae))
+    (arguments
+     (list #:tests? #f)) ;; tests have a cyclic dependency
+    (home-page "https://github.com/inukshuk/citeproc")
+    (synopsis "Interface for Ruby citation processors")
+    (description
+     "CiteProc is a citation processor interface and citation data API based
+on the @acronym{CSL, Citation Style Language} specifications.  To actually
+process citations, a dedicated processor engine is required: a pure Ruby
+engine is available in the @code{citeproc-ruby} gem.")
+    (license (list license:agpl3+ license:bsd-2))))

From patchwork Mon Jul 25 12:16:27 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philip McGrath 
X-Patchwork-Id: 40932
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 2249F27BBEA; Mon, 25 Jul 2022 13:19:46 +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 A16F527BBE9
	for ; Mon, 25 Jul 2022 13:19:45 +0100 (BST)
Received: from localhost ([::1]:48778 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from )
	id 1oFx3o-0008Oi-Pv
	for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:19:44 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47774)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from )
 id 1oFx39-0008LM-2r
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:03 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:59705)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from )
 id 1oFx38-0005OP-Pu
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:02 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from ) id 1oFx38-0002xn-M3
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:02 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#56759] [PATCH 12/20] gnu: Add ruby-edtf.
Resent-From: Philip McGrath 
Original-Sender: "Debbugs-submit" 
Resent-CC: guix-patches@gnu.org
Resent-Date: Mon, 25 Jul 2022 12:19:02 +0000
Resent-Message-ID: 
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 56759
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 56759@debbugs.gnu.org
Cc: Philip McGrath 
Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875149611218
 (code B ref 56759); Mon, 25 Jul 2022 12:19:02 +0000
Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:18:16 +0000
Received: from localhost ([127.0.0.1]:49429 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from )
 id 1oFx2O-0002un-44
 for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:16 -0400
Received: from mail-qt1-f169.google.com ([209.85.160.169]:38752)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from ) id 1oFx2K-0002uC-FT
 for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:12 -0400
Received: by mail-qt1-f169.google.com with SMTP id y9so8041573qtv.5
 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:18:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=philipmcgrath.com; s=google;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=2J4iVlPaUT8mJfzvpfKsOPa+px34TUP5FuW65Z1LtEA=;
 b=hQTuezariu+CPJBif1l+CseS+dnU6RDb236s5zfZLX5q+9dtMgNB7r1BIBHxiW5xTp
 eyRDs9bJ4nCWRc+52YSfjD85ZIkpogPKftQXd3eoHNl7xlEIruHbAcVjAHaVH6fhjJT+
 xyLlhWsWOGgQkZ0qaCj6DMts+NNz8nzFkKhbT5izR9sWQ4tpPzwyy5cWDF0fAnkQDdLE
 8hpFx/pfKAZoIWP5H2pta6TLSAwwnheOTP4O/wOg4OZKycw4hX9NUnwLK+yG7/tkFMHZ
 7sTgouYCqibhbOOYD3ZHpxeDpkXMWoXyUU1ohGm6dDdOOZrj846uKoPF0aOQAZmXajNg
 2YYA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=2J4iVlPaUT8mJfzvpfKsOPa+px34TUP5FuW65Z1LtEA=;
 b=MfQB5JHwxoHrlO1DRGYv4+MIv/yHwJopauVNFi5lxGMKQM2Zi0hogdB7smE7jj3Ji8
 PowRrBAEcaXdWDCmbsd9VB+zFCku3K7TU/1t2YZXcy9Jx/j1jnQzV9wlPqajkz7MzJtf
 Ab1FJAn7a8wgKko4nq7Xldr4np9xOdr7oEBgFaLboqr8MK2pebeo4tayndIJ1kaUzNqv
 kDTZfVWT7SeB4ESl7RC/fBV+ojkcRZu+WrPoQHE/LwbZfG8U4I2c320rhN9lOdbjUfCw
 P5yMH8nxxrFtZSqt9eSd9YMhqed+dv/wq+/TaS5R0xwa5lHy612zrKWDu9V6/ph62I9p
 xzjA==
X-Gm-Message-State: AJIora/ZbYVJv59eHpGKY3PWmJGO1N2cTS0ZZFTy9B8Q6LPnftABfE01
 S/1fRFO1xJLniVcHSKlYLKzCNUm/rLayrLFt
X-Google-Smtp-Source: 
 AGRyM1td2JubwmTfORM4tnTRPIvTQF2JzVFD66fSYIrUbtHNbG1xtrThzMl+NTgbY44P0/dbLg0CRA==
X-Received: by 2002:a05:622a:3:b0:31e:f25a:3f54 with SMTP id
 x3-20020a05622a000300b0031ef25a3f54mr9988345qtw.269.1658751486373;
 Mon, 25 Jul 2022 05:18:06 -0700 (PDT)
Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51])
 by smtp.gmail.com with UTF8SMTPSA id
 x2-20020a05620a448200b006a8b6848556sm8874649qkp.7.2022.07.25.05.18.06
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 25 Jul 2022 05:18:06 -0700 (PDT)
From: Philip McGrath 
Date: Mon, 25 Jul 2022 08:16:27 -0400
Message-Id: 
 
X-Mailer: git-send-email 2.32.0
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"
 
X-getmail-retrieved-from-mailbox: Patches

* gnu/packages/ruby.scm (ruby-edtf): New variable.
---
 gnu/packages/ruby.scm | 60 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 2cc83d2f82..32d5fe89ae 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13315,3 +13315,63 @@ (define-public ruby-citeproc
 process citations, a dedicated processor engine is required: a pure Ruby
 engine is available in the @code{citeproc-ruby} gem.")
     (license (list license:agpl3+ license:bsd-2))))
+
+(define-public ruby-edtf
+  (package
+    (name "ruby-edtf")
+    (version "3.1.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/inukshuk/edtf-ruby")
+                    (commit (string-append "v" version))))
+              (sha256
+               (base32
+                "18j8xq8zmrn41cs2gpd1i87agi9905asvnjqndky2cqb5zg3q14g"))
+              (snippet
+               ;; remove generated file
+               #~(delete-file "lib/edtf/parser.rb"))
+              (file-name (git-file-name name version))))
+    (build-system ruby-build-system)
+    (propagated-inputs
+     (list ruby-activesupport))
+    (native-inputs
+     (list ruby-cucumber
+           ruby-rspec))
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'extract-gemspec 'avoid-bundler
+            (lambda args
+              (substitute* "Rakefile"
+                (("require 'bundler" orig)
+                 (string-append "# " orig " # patched for Guix"))
+                (("bundle exec racc")
+                 "racc")
+                (("Cucumber::Rake::Task\\.new[(]:cucumber[)]" orig)
+                 (string-append orig " do |c|\n"
+                                "  c.bundler = false # patched for Guix\n"
+                                "end"))
+                (("Bundler\\.setup" orig)
+                 (string-append "true # " orig " # patched for Guix")))))
+          (add-after 'avoid-bundler 'patch-cucumber-options
+            (lambda args
+              (substitute* "cucumber.yml"
+                ;; this option is not supported, at least in our configuration
+                ((" --publish-quiet")
+                 ""))))
+          (add-before 'build 'compile
+            (lambda args
+              (invoke "rake" "racc")))
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (when tests?
+                (invoke "rake")))))))
+    (home-page "https://github.com/inukshuk/edtf-ruby")
+    (synopsis "Ruby implementation of Extended Date/Time Format")
+    (description
+     "EDTF-Ruby provides a parser and an API for the @acronym{EDTF, Extended
+Date/Time Format} standard, implemented as an extension to Ruby's @code{Date}
+class.")
+    (license license:bsd-2)))

From patchwork Mon Jul 25 12:16:28 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philip McGrath 
X-Patchwork-Id: 40938
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 094C327BBEA; Mon, 25 Jul 2022 13:20:06 +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 560E627BBE9
	for ; Mon, 25 Jul 2022 13:20:05 +0100 (BST)
Received: from localhost ([::1]:50136 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from )
	id 1oFx48-0000y6-FX
	for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:20:04 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47776)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from )
 id 1oFx39-0008Lz-Hb
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:03 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:59706)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from )
 id 1oFx39-0005OX-6g
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:03 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from ) id 1oFx39-0002xu-1T
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:03 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#56759] [PATCH 13/20] gnu: Add ruby-gli.
Resent-From: Philip McGrath 
Original-Sender: "Debbugs-submit" 
Resent-CC: guix-patches@gnu.org
Resent-Date: Mon, 25 Jul 2022 12:19:03 +0000
Resent-Message-ID: 
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 56759
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 56759@debbugs.gnu.org
Cc: Philip McGrath 
Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875150111239
 (code B ref 56759); Mon, 25 Jul 2022 12:19:03 +0000
Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:18:21 +0000
Received: from localhost ([127.0.0.1]:49432 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from )
 id 1oFx2S-0002vC-Im
 for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:20 -0400
Received: from mail-qv1-f47.google.com ([209.85.219.47]:41649)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from ) id 1oFx2N-0002uS-S4
 for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:16 -0400
Received: by mail-qv1-f47.google.com with SMTP id i7so8232434qvr.8
 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:18:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=philipmcgrath.com; s=google;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=BW37mlTNfoKjndF3mrjJae3HoGFFb2EVkcr4W4b+hHE=;
 b=Q8uEHkD8PiopYurd8FVzeOjPD+DUBsBYlx5sR5PfPLP8mnHUbk/C8G0A0nvCkDnS47
 4Bzzs2BrTgfb7WnwIAgtosZ7OMdi11jcGaoVyyf0wwCKE+9aHSlbUDYT3bqqnQDX6+pt
 +dkOkyRTMq3FfyPNrOsCqpaCSF8TnntwRwSe2AkOkNapuLvzsPE/Wg91btIuDV1SQ/89
 JY7SmJF9fgBSZuS0988YOAvZx05fxqFtgfOI6bpfFRxkYS71HHdy+mEGV2IHIq3VDFOh
 CfWa49eB97yhKJjCAK4wcc7Lw69Y/vyunTg7fJ50vCUgbaa5DcJDs7ZB4VAZkPqOTojU
 6pzQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=BW37mlTNfoKjndF3mrjJae3HoGFFb2EVkcr4W4b+hHE=;
 b=c/YVCB/zbXjeW3oZOxfApPL9UGFgMLB1e87Rw6v5FGB5zX0VtzogrW9zF8VbpZYpAB
 wkRJhMLlBpMrwrKgOkEq4vyt4EQFmifCYeLqvsh070JSQ8KBIzYNRQN+J90MhIOx+Cxs
 ywArKAvcrsantfBtX4gPgsIbS+54PsUca25AC/u9b4IVxG6xwMLnZQc+t9s8HFIeF6AF
 J0vC89ijXG0zlYEJNqVfHXycmdpUZuejXskVHECdwPMV6Ylt0PAp2/avI7OQC3IinS9g
 mtbpGfe+9iST1NknoSep8vgnfMeL0QUWmnmKaKMgiWnvmYWEirxeSr26udqxFeadYO41
 DOdQ==
X-Gm-Message-State: AJIora/BPZnGKKmKWviRBKQevIWVGwVenOsa+8P6Pe0+cA1mnDL6QLNz
 ZLXLXbvZPnkQhy825IdJR8lrPFK6V527qngF
X-Google-Smtp-Source: 
 AGRyM1vDmDgIDzW/5Tqzl2oMWyiUg/xZjGYNqqovyQbtDtEtkVLrgRWRuR814qTqiKdwf9QZg6ok6w==
X-Received: by 2002:a0c:b298:0:b0:473:8d6a:df00 with SMTP id
 r24-20020a0cb298000000b004738d6adf00mr9932177qve.71.1658751490332;
 Mon, 25 Jul 2022 05:18:10 -0700 (PDT)
Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51])
 by smtp.gmail.com with UTF8SMTPSA id
 v33-20020a05622a18a100b0031f0b43629dsm7847018qtc.23.2022.07.25.05.18.10
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 25 Jul 2022 05:18:10 -0700 (PDT)
From: Philip McGrath 
Date: Mon, 25 Jul 2022 08:16:28 -0400
Message-Id: 
 
X-Mailer: git-send-email 2.32.0
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"
 
X-getmail-retrieved-from-mailbox: Patches

* gnu/packages/ruby.scm (ruby-gli): New variable.
---
 gnu/packages/ruby.scm | 52 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 32d5fe89ae..53269423e3 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13375,3 +13375,55 @@ (define-public ruby-edtf
 Date/Time Format} standard, implemented as an extension to Ruby's @code{Date}
 class.")
     (license license:bsd-2)))
+
+(define-public ruby-gli
+  (package
+    (name "ruby-gli")
+    (version "2.21.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/davetron5000/gli")
+                    (commit (string-append "v" version))))
+              (sha256
+               (base32
+                "09b1r9hlx4dy2yq036nk7hc2nbswhia6q3na9v11z94yibc8mgja"))
+              (file-name (git-file-name name version))))
+    (build-system ruby-build-system)
+    (native-inputs
+     (list ruby-minitest
+           ruby-rainbow
+           ruby-rdoc
+           ruby-sdoc))
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'extract-gemspec 'patch-gemspec-version
+            (lambda args
+              (substitute* "gli.gemspec"
+                ;; this trick fails in our build environment
+                (("require File\\.join[(]\\[" orig)
+                 (string-append "# patched for Guix # " orig))
+                (("s\\.version = GLI::VERSION")
+                 #$(string-append "s.version = '"
+                                  (package-version this-package)
+                                  "' # patched for Guix")))))
+          (add-after 'replace-git-ls-files 'replace-another-git-ls-files
+            (lambda args
+              (substitute* "gli.gemspec"
+                (("`git ls-files -- [{]test,spec,features[}]/\\*`")
+                 "`find {test,spec,features} -type f | sort`"))))
+          (add-after 'replace-another-git-ls-files 'fix-rubyopt
+            (lambda args
+              (substitute* "Rakefile"
+                (("ENV\\[\"RUBYOPT\"]")
+                 "(ENV['RUBYOPT'] || '')")))))))
+    (home-page "https://davetron5000.github.io/gli/")
+    (synopsis "Git-Like Interface command-line parser")
+    (description
+     "GLI allows you to create command-line applications in Ruby with Git-Like
+Interfaces: that is, they take subcommands in the style of @command{git} and
+@command{gem}.  GLI uses a simple domain-specific language, but retains all
+the power of the built-in @code{OptionParser}.")
+    (license license:asl2.0)))

From patchwork Mon Jul 25 12:16:29 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philip McGrath 
X-Patchwork-Id: 40935
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 3E31E27BBEA; Mon, 25 Jul 2022 13:19:58 +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 ECAC627BBE9
	for ; Mon, 25 Jul 2022 13:19:57 +0100 (BST)
Received: from localhost ([::1]:49720 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from )
	id 1oFx41-0000hC-4p
	for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:19:57 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47782)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from )
 id 1oFx3A-0008Mb-EC
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:04 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:59707)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from )
 id 1oFx39-0005Of-Gr
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:03 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from ) id 1oFx39-0002y3-Cn
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:03 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#56759] [PATCH 14/20] gnu: Add ruby-anystyle-data.
Resent-From: Philip McGrath 
Original-Sender: "Debbugs-submit" 
Resent-CC: guix-patches@gnu.org
Resent-Date: Mon, 25 Jul 2022 12:19:03 +0000
Resent-Message-ID: 
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 56759
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 56759@debbugs.gnu.org
Cc: Philip McGrath 
Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875151811290
 (code B ref 56759); Mon, 25 Jul 2022 12:19:03 +0000
Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:18:38 +0000
Received: from localhost ([127.0.0.1]:49434 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from )
 id 1oFx2V-0002vN-Vg
 for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:38 -0400
Received: from mail-qk1-f179.google.com ([209.85.222.179]:45054)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from ) id 1oFx2R-0002um-TF
 for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:20 -0400
Received: by mail-qk1-f179.google.com with SMTP id b25so8405315qka.11
 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:18:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=philipmcgrath.com; s=google;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=9AW4lIWmfgOFgzhBmmgOI9NryH7cHn3nIGJZLGttZM8=;
 b=cEi5hz+9naY4KzUz1vWPC9PPSQFmLM8kyYHwrNUQGYTq/eSfIC0vSgYrZg/TCe9fKK
 Lgw2ulK+z9R3ZMPGUPVf+f6nfzuDDccapZLCmbowIlb2gSZYEievt7nM4CF5MqfNOAnO
 D9na0wlN+LJAy7azXHcxtbbXS0XiIv059U12Jq0XJf1nx0Fg5qrz9n3VGliTs+IBax7D
 idX+wz9qXBiXOrYadSaJaJvwKsWrGO950Wk7whQHPuCjgg84c1XxsJ2EUOzI7Ved2a1+
 7YGIWGcu1GcTNyvitqvM5oBBpwYpxYSBtMZvcbto+U/R3keTPoDofx8brjR2E7d7yNPR
 qInQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=9AW4lIWmfgOFgzhBmmgOI9NryH7cHn3nIGJZLGttZM8=;
 b=nFZzGAGfXQ2Grs23GCD0qa5690UKbaj/a5bCJwnmI+Zx/0SO55Mip6CBha/TPcw+B0
 aqk+MsCsH/FeyQkTk+glxMlA5iW5hEGbIH3Y9jV5yLd5s8QImMIP/AFrlgYelPkhLNKO
 kBp4K4go+UooWPpmZOms+rgTOKOQcGRpsMv3Sf5u+Xcd/YvUC6v8IIeHzt1vS7uBGGWj
 16keQbjHl1+xYEjAPKW/FuBGiY28JjgpShonbUStPLQDderMmQV+l3B9UUqvKSLxaGLN
 dLSASDv/dlutOcUsGTHMpXzlYETe0bfyZyp2OY/EvnCsqlEbmsYHmPyAX2k7Vmzv8pka
 L3uw==
X-Gm-Message-State: AJIora8JqwlMv+V17g4TRhruzzWWuf8yKrs+7T07LTT18s0lLFSO8qP7
 CYdmy07p5jgyb5DYHs+YpjUm+qc98Vz/I+r8
X-Google-Smtp-Source: 
 AGRyM1vtre5w76o+GzLZKpORv+g3/s8G7MzVeTSAgBRRbPzzKA/qjUFxxcHApthOWD+Zq1Y0a8jqww==
X-Received: by 2002:a37:5885:0:b0:6b5:c28a:7d26 with SMTP id
 m127-20020a375885000000b006b5c28a7d26mr8853829qkb.22.1658751494366;
 Mon, 25 Jul 2022 05:18:14 -0700 (PDT)
Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51])
 by smtp.gmail.com with UTF8SMTPSA id
 w19-20020a05620a0e9300b006b5c87e9eb1sm8830097qkm.102.2022.07.25.05.18.14
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 25 Jul 2022 05:18:14 -0700 (PDT)
From: Philip McGrath 
Date: Mon, 25 Jul 2022 08:16:29 -0400
Message-Id: 
 <75161133584c76216f23a28fe9f461ca596d3cc5.1658750358.git.philip@philipmcgrath.com>
X-Mailer: git-send-email 2.32.0
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"
 
X-getmail-retrieved-from-mailbox: Patches

* gnu/packages/ruby.scm (ruby-anystyle-data): New variable.
---
 gnu/packages/ruby.scm | 51 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 53269423e3..4efc3d5a41 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13427,3 +13427,54 @@ (define-public ruby-gli
 @command{gem}.  GLI uses a simple domain-specific language, but retains all
 the power of the built-in @code{OptionParser}.")
     (license license:asl2.0)))
+
+(define-public ruby-anystyle-data
+  (package
+    (name "ruby-anystyle-data")
+    (version "1.2.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/inukshuk/anystyle-data")
+                    (commit version)))
+              (sha256
+               (base32
+                "025mxa7r9d7izqn6bc1wr40ijp64da0jh211prlpjl6svilgd6rm"))
+              (snippet
+               ;; remove pre-built file
+               #~(delete-file "lib/anystyle/data/dict.txt.gz"))
+              (file-name (git-file-name name version))))
+    (build-system ruby-build-system)
+    (arguments
+     (list
+      #:tests? #f ;; there are none
+      #:modules
+      `((guix build ruby-build-system)
+        (guix build utils)
+        (srfi srfi-26))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'replace-git-ls-files 'replace-another-git-ls-files
+            (lambda args
+              (substitute* "anystyle-data.gemspec"
+                (("`git ls-files lib README\\.md LICENSE`\\.split[(][^)]*[)]")
+                 (string-append
+                  "["
+                  (string-join
+                   (map (cut string-append "\"" <> "\"")
+                        `("README.md"
+                          "LICENSE"
+                          "lib/anystyle/data.rb"
+                          "lib/anystyle/data/dict.txt.gz"
+                          "lib/anystyle/data/setup.rb"
+                          "lib/anystyle/data/version.rb"))
+                   ", ")
+                  "]")))))
+          (add-before 'build 'compile-dict
+            (lambda args
+              (invoke "rake" "compile"))))))
+    (home-page "https://anystyle.io")
+    (synopsis "AnyStyle parser dictionary data")
+    (description
+     "This gem provides parser dictionary data for AnyStyle.")
+    (license license:bsd-2)))

From patchwork Mon Jul 25 12:16:30 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philip McGrath 
X-Patchwork-Id: 40933
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 41BDA27BBEA; Mon, 25 Jul 2022 13:19:51 +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 A80FC27BBE9
	for ; Mon, 25 Jul 2022 13:19:50 +0100 (BST)
Received: from localhost ([::1]:49114 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from )
	id 1oFx3t-0000Hu-NL
	for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:19:49 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47778)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from )
 id 1oFx3A-0008MR-Bp
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:04 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:59708)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from )
 id 1oFx39-0005Oh-SY
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:04 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from ) id 1oFx39-0002yB-ON
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:03 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#56759] [PATCH 15/20] gnu: Add ruby-anystyle.
Resent-From: Philip McGrath 
Original-Sender: "Debbugs-submit" 
Resent-CC: guix-patches@gnu.org
Resent-Date: Mon, 25 Jul 2022 12:19:03 +0000
Resent-Message-ID: 
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 56759
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 56759@debbugs.gnu.org
Cc: Philip McGrath 
Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875151911299
 (code B ref 56759); Mon, 25 Jul 2022 12:19:03 +0000
Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:18:39 +0000
Received: from localhost ([127.0.0.1]:49440 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from )
 id 1oFx2k-0002w3-CT
 for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:38 -0400
Received: from mail-qk1-f180.google.com ([209.85.222.180]:44548)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from ) id 1oFx2W-0002v3-2D
 for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:25 -0400
Received: by mail-qk1-f180.google.com with SMTP id b25so8405425qka.11
 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:18:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=philipmcgrath.com; s=google;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=p7CbS7TTJuMyZYk1TA2sESgQ7y6tjc89kLkM+qtGXDI=;
 b=VF6yR4zJhqnh/BrQY0utMyXxBpU5OmCw/neF7ukDMxoVxJ9XSy56I1jJ/fEcSVFY16
 8iBq3qUqySjI+yREmAawto5gvLwOurYfMUGg1hBIAwnTzg7JoNJZpabn209vEAGZElIA
 Jykp6VP/C4kEJ01zr0xM8Us6cl5Te77vTDO8tELCn8q05Tahfs5KF8WHrzZKQl5DruLm
 EyBguqPGNp7c88VP1+mcSI5/f0Sp6dunE42ESPw56DKtk5J2i+9H/cv1Eqd+VIT+KgT1
 VANRfOinYukF32ZdkGbJXXHMn8GsAmFeYGbdTsSAB28Nh+OEnTNMyYPP+6z9KfK9BJZz
 NgKA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=p7CbS7TTJuMyZYk1TA2sESgQ7y6tjc89kLkM+qtGXDI=;
 b=qbIXTBYz0vWRrd1Ak6YjP3jfwahZ5cT5Gw60XAgGZYxURQKw98xEklsFfC3ZkMNFHb
 ACws18g3ngfeKn0q5r2p4riZ+IUl1KSwPCZePLS6Tzxf21psEkaGBc4lUwIHEmNz3V35
 pC/X7fBETbysH5TBKYsZTZ7zgWC0cswBa8R1+tuifVW1eoRYcm8UkZtJa/L5Xoo1ygam
 0cOOjutCwUIEeP78uXHAzcSbOyajQ/PMg0ew4sgDaqDTQGYV2hMA+qtmbfUBtghL9AX5
 HeEfM4Abeslzr8Rx4+Khjy34GIGpKrSqAjzmyDaBxEXvCvIyHXWfBVBTUo02mhYvVVck
 47Qg==
X-Gm-Message-State: AJIora8QQoh8QCdMmjMZ/2F0aLNcMRjf0x8wZoeaYtBqYC6KeMv2uJLp
 tz+G7pTj3HH1yo2SzzKQyG2HI2yd4G8oM+pD
X-Google-Smtp-Source: 
 AGRyM1s5GsgiQ8/DMHfzqvPJ+JRzkari2YT3+xc9i7pXiRGYe6qrzW892GoLGC3rw0w/FevQyFAx8g==
X-Received: by 2002:ae9:f307:0:b0:6b5:bf6c:bd23 with SMTP id
 p7-20020ae9f307000000b006b5bf6cbd23mr8821043qkg.168.1658751498437;
 Mon, 25 Jul 2022 05:18:18 -0700 (PDT)
Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51])
 by smtp.gmail.com with UTF8SMTPSA id
 x27-20020a05620a0b5b00b006b5e43466ebsm8703020qkg.59.2022.07.25.05.18.18
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 25 Jul 2022 05:18:18 -0700 (PDT)
From: Philip McGrath 
Date: Mon, 25 Jul 2022 08:16:30 -0400
Message-Id: 
 <6dea4f2c9c4e4cf182f48bac204e3f4c8a10967b.1658750358.git.philip@philipmcgrath.com>
X-Mailer: git-send-email 2.32.0
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"
 
X-getmail-retrieved-from-mailbox: Patches

* gnu/packages/ruby.scm (ruby-anystyle): New variable.
---
 gnu/packages/ruby.scm | 71 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 71 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 4efc3d5a41..90f269e247 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13478,3 +13478,74 @@ (define-public ruby-anystyle-data
     (description
      "This gem provides parser dictionary data for AnyStyle.")
     (license license:bsd-2)))
+
+(define-public ruby-anystyle
+  (let ((commit "50f1dd547d28ab4b830e45d70e840cb1898a37b0")
+        (revision "1"))
+    ;; Releases point to specific commits, but recent releases haven't been
+    ;; tagged in Git.  Meanwhile, the rubygems archive lacks tests.
+    (package
+      (name "ruby-anystyle")
+      (version (git-version "1.3.14" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/inukshuk/anystyle")
+                      (commit commit)))
+                (sha256
+                 (base32
+                  "0f4qcrywl1kl6qysn24lj3yp85ln4i7za7b7ld2fglyzwcggxwb0"))
+                (snippet
+                 ;; There is an optional dependency on
+                 ;; , which
+                 ;; seems like it was intended to be free software, but
+                 ;; doesn't have a clear license statement.  Maybe someone can
+                 ;; do more sleuthing, or else find a replacement?  See also
+                 ;; .  For
+                 ;; now, patch it out, but leave a pointer to follow up.
+                 #~(begin
+                     (use-modules (guix build utils))
+                     (substitute* "Gemfile"
+                       (("gem 'language_detector', github: '[^']*'" orig)
+                        (string-append "# " orig " # unclear license")))
+                     (substitute* "spec/anystyle/parser_spec.rb"
+                       (("language: 'en'," orig)
+                        (string-append "# " orig " # no lanugage_detector")))))
+                (file-name (git-file-name name version))))
+      (build-system ruby-build-system)
+      (propagated-inputs
+       (list ruby-anystyle-data
+             ruby-bibtex-ruby
+             ruby-namae
+             ruby-wapiti))
+      (native-inputs
+       (list ruby-byebug
+             ruby-citeproc
+             ruby-edtf
+             ruby-rspec
+             ruby-unicode-scripts))
+      (arguments
+       (list
+        #:test-target "spec"
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-after 'extract-gemspec 'avoid-bundler
+              (lambda args
+                (substitute* "Rakefile"
+                  (("require 'bundler" orig)
+                   (string-append "# " orig " # patched for Guix"))
+                  (("Bundler\\.setup" orig)
+                   (string-append "true # " orig " # patched for Guix")))))
+            (add-after 'replace-git-ls-files 'replace-another-git-ls-files
+              (lambda args
+                (substitute* "anystyle.gemspec"
+                  (("`git ls-files spec`")
+                   "`find spec -type f | sort`")))))))
+      (home-page "https://anystyle.io")
+      (synopsis "Fast and smart citation reference parsing (Ruby library)")
+      (description
+       "AnyStyle is a very fast and smart parser for academic reference lists
+and bibliographies.  AnyStyle uses powerful machine learning heuristics based
+on Conditional Random Fields and aims to make it easy to train the model with
+data that is relevant to your parsing needs.")
+      (license license:bsd-2))))

From patchwork Mon Jul 25 12:16:31 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: Philip McGrath 
X-Patchwork-Id: 40936
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 5E16D27BBEA; Mon, 25 Jul 2022 13:19:59 +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 A34FB27BBE9
	for ; Mon, 25 Jul 2022 13:19:58 +0100 (BST)
Received: from localhost ([::1]:49700 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from )
	id 1oFx41-0000fs-PR
	for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:19:57 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47784)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from )
 id 1oFx3A-0008N0-L0
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:04 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:59709)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from )
 id 1oFx3A-0005Ow-9l
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:04 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from ) id 1oFx3A-0002yI-5C
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:04 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#56759] [PATCH 16/20] gnu: Add anystyle.
Resent-From: Philip McGrath 
Original-Sender: "Debbugs-submit" 
Resent-CC: guix-patches@gnu.org
Resent-Date: Mon, 25 Jul 2022 12:19:04 +0000
Resent-Message-ID: 
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 56759
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 56759@debbugs.gnu.org
Cc: Philip McGrath 
Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875151911307
 (code B ref 56759); Mon, 25 Jul 2022 12:19:04 +0000
Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:18:39 +0000
Received: from localhost ([127.0.0.1]:49442 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from )
 id 1oFx2k-0002wC-Rl
 for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:39 -0400
Received: from mail-qv1-f49.google.com ([209.85.219.49]:40643)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from ) id 1oFx2a-0002vL-4Y
 for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:28 -0400
Received: by mail-qv1-f49.google.com with SMTP id i4so8241462qvv.7
 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:18:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=philipmcgrath.com; s=google;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=XhqF0zJ6FVd6rJiScNgqVNBWoCBGB8wtP3QTyLmvYuo=;
 b=fGzSFe+HIRJUt63jfklyxL9xc9Aja+9A6rd8O8hBeuzHnDx2GXG+5GFM24tQhDfkDe
 V4yLgIDiVPuUo2Uh6OTER7pl/tOUax3SpbFXQzr3LMpydCtc3G09d9DGMqdVKxWN8g4B
 p4YaE5i0RCeebejwaxC9uPXDtQ7kCgFp5t5Pu+JPTUKIRWRuZ/hbYnvZXiAjaUs0m5kC
 7M4lK0gPUgVvx3mchdyYJ56Pl0rULJ1vBqIMvmXZYy+JBh13izjRG84KVWalrrOYfnlp
 7gKLoL0eOCwsK0XlP7592erUlwWrv41FagTT+6QFcy8umvB+oxJw2AcmWSUwjBUrvGDR
 v0AA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=XhqF0zJ6FVd6rJiScNgqVNBWoCBGB8wtP3QTyLmvYuo=;
 b=iUUm33BfPBipyvI+qWfurUPRojYVyz53BhtfiJl7oev24Kl+xFJz3ATPaDw7ISsUqy
 pRCin022vnjcxO5YlHRMYoUkQ1GxfRbqCk77nfeEP0+/s1zJtJ1BKA6Y6Zt0zoCS1+yk
 Gn8wpCbHbRu79aEFRB1iWQedaa+J9hlzG08WyqGytBtyOKyOTyD+G14WQMpiNF5nuZlX
 x1jK7s3BJj46dvk089g+5xDonOIazzRdPkLvSqkR0UCi+dw1s1O3YT3LQLnKX2Prs3EL
 5DELCL9DXM2gHkLDxl30Qg61wJkRZ+DwPvODPrhP426BONjVkUjy1YXiLk9veKkKhjve
 L5PA==
X-Gm-Message-State: AJIora/vyMxTuFCJgRShAx6Fd/ltAwo7NmueudowthXf7wbIPMwbUn9y
 +0Sup8lGHpDquZybMPoRxGlV1BVV04Zr2eoo
X-Google-Smtp-Source: 
 AGRyM1uOBGwQ3lMassTJgjOHrC5SKz9mJ5IlMW0oN261eQLsaAGGbBgbmw+V9DKqb48ej01iovi0aQ==
X-Received: by 2002:a05:6214:e4e:b0:474:6bf:5f51 with SMTP id
 o14-20020a0562140e4e00b0047406bf5f51mr10312718qvc.50.1658751502566;
 Mon, 25 Jul 2022 05:18:22 -0700 (PDT)
Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51])
 by smtp.gmail.com with UTF8SMTPSA id
 y11-20020a05622a004b00b003051f450049sm7800261qtw.8.2022.07.25.05.18.22
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 25 Jul 2022 05:18:22 -0700 (PDT)
From: Philip McGrath 
Date: Mon, 25 Jul 2022 08:16:31 -0400
Message-Id: 
 <272fe1f23b2adaf54276b105268ca7179e00dcd5.1658750358.git.philip@philipmcgrath.com>
X-Mailer: git-send-email 2.32.0
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"
 
X-getmail-retrieved-from-mailbox: Patches

* gnu/packages/ruby.scm (anystyle): New variable.
(ruby-anystyle)[description]: Mention it.
---
 gnu/packages/ruby.scm | 125 +++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 124 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 90f269e247..3feb07dcdc 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -66,6 +66,7 @@ (define-module (gnu packages ruby)
   #:use-module (gnu packages libidn)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages lsof)
+  #:use-module (gnu packages man)
   #:use-module (gnu packages maths)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages networking)
@@ -13547,5 +13548,127 @@ (define-public ruby-anystyle
        "AnyStyle is a very fast and smart parser for academic reference lists
 and bibliographies.  AnyStyle uses powerful machine learning heuristics based
 on Conditional Random Fields and aims to make it easy to train the model with
-data that is relevant to your parsing needs.")
+data that is relevant to your parsing needs.
+
+This package provides the Ruby module @code{AnyStyle}.  AnyStyle can also be
+used via the @command{anystyle} command-line utility or a web application,
+though the later has not yet been packaged for Guix.")
       (license license:bsd-2))))
+
+(define-public anystyle
+  (package
+    (name "anystyle")
+    (version "1.3.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/inukshuk/anystyle-cli")
+                    (commit version)))
+              (sha256
+               (base32
+                "1bazzms04cra8516q7vydmcm31yd0a7si1pxk4waffqy7lh0pksg"))
+              (file-name (git-file-name name version))))
+    (build-system ruby-build-system)
+    (propagated-inputs
+     (list ruby-anystyle
+           ruby-bibtex-ruby
+           ruby-gli))
+    (native-inputs
+     (list txt2man))
+    (arguments
+     (list
+      #:modules
+      `((guix build ruby-build-system)
+        (ice-9 popen)
+        (guix build utils))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'extract-gemspec 'less-strict-dependencies
+            (lambda args
+              (substitute* "anystyle-cli.gemspec"
+                (("'bibtex-ruby', '[^']*'")
+                 "'bibtex-ruby'"))))
+          (delete 'check) ;; there are no upstream tests
+          (add-after 'wrap 'check-cli
+            (lambda* (#:key tests? outputs #:allow-other-keys)
+              (when tests?
+                (with-output-to-file "check-cli.in"
+                  (lambda ()
+                    (for-each
+                     display
+                     '("Derrida, J. (1967). L’écriture et la différence "
+                       "(1 éd.). Paris: Éditions du Seuil.\n"))))
+                (invoke (search-input-file outputs "/bin/anystyle")
+                        "parse"
+                        "check-cli.in"))))
+          (add-after 'wrap 'generate-man-page
+            ;; generating a man page also tests that the command actually runs
+            (lambda args
+              (define (run-with-output-file file command . args)
+                (format (current-output-port)
+                        "running: ~s\nwith output to: ~s\n"
+                        (cons command args)
+                        file)
+                (unless (zero?
+                         (with-output-to-file file
+                           (lambda ()
+                             (status:exit-val
+                              (close-pipe
+                               (apply open-pipe* OPEN_WRITE command args))))))
+                  (error "command failed")))
+              (let ((anystyle (string-append #$output "/bin/anystyle")))
+                (run-with-output-file "intro.txt"
+                                      anystyle "--help")
+                (for-each (lambda (cmd)
+                            (let ((file (string-append cmd ".txt")))
+                              (run-with-output-file file
+                                                    anystyle cmd "--help")
+                              ;; indent headings to create subsections
+                              (substitute* file
+                                (("^[A-Z]" orig)
+                                 (string-append " " orig)))
+                              ;; generate a section heading
+                              (call-with-output-file
+                                  (string-append "section-" file)
+                                (lambda (out)
+                                  (format out "\n\n~a COMMAND\n\n"
+                                          (string-upcase cmd))))))
+                          '("check" "find" "parse" "train"))
+                (substitute* `("intro.txt"
+                               "check.txt" "find.txt" "parse.txt" "train.txt")
+                  ;; format "tag list" for txt2man"
+                  ((" - ")
+                   "    ")
+                  ;; restore formatting of the "name" sections
+                  (("(anystyle|check|find|parse|train)    ([A-Z])" _ cmd post)
+                   (string-append cmd " - " post)))
+                (run-with-output-file "anystyle.txt"
+                                      "cat"
+                                      "intro.txt"
+                                      "section-check.txt" "check.txt"
+                                      "section-find.txt" "find.txt"
+                                      "section-parse.txt" "parse.txt"
+                                      "section-train.txt" "train.txt")
+                (run-with-output-file
+                 "anystyle.1"
+                 "txt2man"
+                 "-v" "General Commands Manual" "-t" "anystyle" "-s" "1"
+                 "-r" #$(string-append "anystyle-cli "
+                                       (package-version this-package))
+                 "-B" "check" "-B" "find" "-B" "parse" "-B" "train"
+                 "anystyle.txt")
+                (install-file "anystyle.1"
+                              (string-append #$output "/share/man/man1"))))))))
+    (home-page "https://anystyle.io")
+    (synopsis "Fast and smart citation reference parsing")
+    (description
+     "AnyStyle is a very fast and smart parser for academic reference lists
+and bibliographies.  AnyStyle uses powerful machine learning heuristics based
+on Conditional Random Fields and aims to make it easy to train the model with
+data that is relevant to your parsing needs.
+
+This package provides the @command{anystyle} command-line utility.  AnyStyle
+can also be used as a Ruby library or as a web application, though the later
+has not yet been packaged for Guix.")
+    (license license:bsd-2)
+    (properties `((upstream-name . "anystyle-cli")))))

From patchwork Mon Jul 25 12:16:32 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philip McGrath 
X-Patchwork-Id: 40939
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 04C3E27BBEA; Mon, 25 Jul 2022 13:20:38 +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 6B84E27BBE9
	for ; Mon, 25 Jul 2022 13:20:37 +0100 (BST)
Received: from localhost ([::1]:50918 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from )
	id 1oFx4e-0001Vy-JU
	for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:20:36 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47786)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from )
 id 1oFx3B-0008NL-2A
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:05 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:59710)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from )
 id 1oFx3A-0005P7-Og
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:04 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from ) id 1oFx3A-0002yQ-LJ
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:04 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#56759] [PATCH 17/20] gnu: ruby-anystyle-data: Don't write to
 installed gem.
Resent-From: Philip McGrath 
Original-Sender: "Debbugs-submit" 
Resent-CC: guix-patches@gnu.org
Resent-Date: Mon, 25 Jul 2022 12:19:04 +0000
Resent-Message-ID: 
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 56759
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 56759@debbugs.gnu.org
Cc: Philip McGrath 
Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875151911320
 (code B ref 56759); Mon, 25 Jul 2022 12:19:04 +0000
Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:18:39 +0000
Received: from localhost ([127.0.0.1]:49445 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from )
 id 1oFx2l-0002wK-Du
 for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:39 -0400
Received: from mail-qv1-f52.google.com ([209.85.219.52]:45733)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from ) id 1oFx2e-0002vY-3T
 for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:32 -0400
Received: by mail-qv1-f52.google.com with SMTP id h18so8218028qvr.12
 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:18:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=philipmcgrath.com; s=google;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=UmIPzPg4g86OfxxC71X6VNV6b1KOyQ3I4X/aMAkI+Qc=;
 b=UyU8/2nyk26YHfnnxqmh2Hb+bvigz/Rd/gsnVCleLlBgyQDFT7vaYDcyWHehJy47J5
 DaWNkpI8csY3Ph3b6wgvn2EdGxOmbGqsT7UAmHLAqtjwQHpO7SvNplpaVPsXlgcx05G8
 PJ1LsNKsIqXa5h2vaYX5EgJIFeZnENTf89R0rNhQwZcILj+5noGALVOWbRVD/wdS1vwh
 8gIV+xayjMZxXHyXk+42tLlNL1u+e3xgXjyQIplwoHnmA3ZntkWJkDXigQLkLftySp8s
 MtJI05FCh8JWGYvxv5skKfdRFKM9DsMftgVkeJk6g2kCQzvE6DmD05Q9br6cipBIDlX1
 vDRQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=UmIPzPg4g86OfxxC71X6VNV6b1KOyQ3I4X/aMAkI+Qc=;
 b=YG1N+4d5EmRVcjZgtQFzQI/By1R3zL0Mdza7Dghjk3F+qogVrNxma7jMjpDihqw8UA
 JJPgWdrvX+gk55p/ghvTwperqvKrud2Yvtp9lhBaWuVM0Fe1DqkohAY1Kc1/XeUkBgPi
 ege33ng38FP9WfduJBHRTnGOp/O9xHnNIPnXs9M8Z6zVebKjmPM8k5jjFlAEu6rqMsfu
 JULXgUqfnBUG1+lm5Lc5yPhaGvT0qPzgwQFxJ//yoatCnvvl+FLmBN2CSct56yTM/bg9
 tmRtktsNJ4rNASErN7y0rSES2WAT44uC/AvTgdLL+zfas68pjM4qR9RiuJp248C+nFb8
 W2FA==
X-Gm-Message-State: AJIora+Se4rm03rQAW5aFiisDNPAuuewuaLQDR9fW3B53X4naoKx9J4y
 1DNv76bt3zfl2G/iT5npgv47eGIK426NmeiO
X-Google-Smtp-Source: 
 AGRyM1v5HRPa+JVr6IGfzagfn5rsNkALmKtGX7kJi9e9v+bhZWgbjycoWg3dzVSJIXzLfmVKlLoR9A==
X-Received: by 2002:a05:6214:c85:b0:474:3c94:cdaa with SMTP id
 r5-20020a0562140c8500b004743c94cdaamr7273135qvr.69.1658751506505;
 Mon, 25 Jul 2022 05:18:26 -0700 (PDT)
Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51])
 by smtp.gmail.com with UTF8SMTPSA id
 d21-20020ac85ad5000000b0031ea1ad6c5asm7718462qtd.75.2022.07.25.05.18.26
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 25 Jul 2022 05:18:26 -0700 (PDT)
From: Philip McGrath 
Date: Mon, 25 Jul 2022 08:16:32 -0400
Message-Id: 
 <850eda181196962254ba2bb516a8233216d18b42.1658750358.git.philip@philipmcgrath.com>
X-Mailer: git-send-email 2.32.0
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"
 
X-getmail-retrieved-from-mailbox: Patches

* gnu/packages/patches/ruby-anystyle-data-immutable-install.patch: New
patch.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/ruby.scm (ruby-anystyle-data)[patches]: Use it.
---
 gnu/local.mk                                  |  1 +
 ...ruby-anystyle-data-immutable-install.patch | 40 +++++++++++++++++++
 gnu/packages/ruby.scm                         |  2 +
 3 files changed, 43 insertions(+)
 create mode 100644 gnu/packages/patches/ruby-anystyle-data-immutable-install.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 3bc947f30c..54ac9f2f9f 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1774,6 +1774,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/rocm-comgr-3.1.0-dependencies.patch \
   %D%/packages/patches/rocm-opencl-runtime-4.3-noclinfo.patch \
   %D%/packages/patches/rocm-opencl-runtime-4.3-noopencl.patch \
+  %D%/packages/patches/ruby-anystyle-data-immutable-install.patch	\
   %D%/packages/patches/ruby-latex-decode-fix-test.patch		\
   %D%/packages/patches/ruby-mustache-1.1.1-fix-race-condition-tests.patch \
   %D%/packages/patches/ruby-sanitize-system-libxml.patch	\
diff --git a/gnu/packages/patches/ruby-anystyle-data-immutable-install.patch b/gnu/packages/patches/ruby-anystyle-data-immutable-install.patch
new file mode 100644
index 0000000000..d5d7149a67
--- /dev/null
+++ b/gnu/packages/patches/ruby-anystyle-data-immutable-install.patch
@@ -0,0 +1,40 @@
+From a6f5b37cd22daa6069d8fbef8cba9dc60a6731f6 Mon Sep 17 00:00:00 2001
+From: Philip McGrath 
+Date: Sun, 24 Jul 2022 23:54:19 -0400
+Subject: [PATCH] `AnyStyle::Data.setup()`: adjust for immutable install
+
+Don't override the default paths for `Dictionary::Marshal`,
+`Dictionary::GDBM`, and `Dictionary:LDBM` to point to this gem: we can't
+populate such files without the 'anystyle' gem (which depends on this
+one), and we won't be able to write to the directory where this gem is
+installed later, so the files will never exist at those locations.
+---
+ lib/anystyle/data/setup.rb | 12 ------------
+ 1 file changed, 12 deletions(-)
+
+diff --git a/lib/anystyle/data/setup.rb b/lib/anystyle/data/setup.rb
+index 17efdf8..08246fa 100644
+--- a/lib/anystyle/data/setup.rb
++++ b/lib/anystyle/data/setup.rb
+@@ -4,18 +4,6 @@ module AnyStyle
+ 
+     def self.setup
+       Dictionary.defaults[:source] = File.join(ROOT, 'dict.txt.gz')
+-
+-      if defined? Dictionary::Marshal
+-        Dictionary::Marshal.defaults[:path] = File.join(ROOT, 'dict.marshal')
+-      end
+-
+-      if defined? Dictionary::GDBM
+-        Dictionary::GDBM.defaults[:path] = File.join(ROOT, 'dict.db')
+-      end
+-
+-      if defined? Dictionary::LDBM
+-        Dictionary::LDBM.defaults[:path] = ROOT
+-      end
+     end
+   end
+ end
+-- 
+2.32.0
+
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 3feb07dcdc..32ba09d283 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13444,6 +13444,8 @@ (define-public ruby-anystyle-data
               (snippet
                ;; remove pre-built file
                #~(delete-file "lib/anystyle/data/dict.txt.gz"))
+              (patches
+               (search-patches "ruby-anystyle-data-immutable-install.patch"))
               (file-name (git-file-name name version))))
     (build-system ruby-build-system)
     (arguments

From patchwork Mon Jul 25 12:16:33 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: Philip McGrath 
X-Patchwork-Id: 40940
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 DFFC527BBEA; Mon, 25 Jul 2022 13:20:47 +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 365C227BBE9
	for ; Mon, 25 Jul 2022 13:20:47 +0100 (BST)
Received: from localhost ([::1]:51148 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from )
	id 1oFx4o-0001i5-Bg
	for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:20:46 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47788)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from )
 id 1oFx3B-0008OP-I7
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:05 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:59711)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from )
 id 1oFx3B-0005PE-5P
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:05 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from ) id 1oFx3B-0002yX-1j
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:05 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#56759] [PATCH 18/20] gnu: ruby-anystyle: Initialize dictionary
 files.
Resent-From: Philip McGrath 
Original-Sender: "Debbugs-submit" 
Resent-CC: guix-patches@gnu.org
Resent-Date: Mon, 25 Jul 2022 12:19:05 +0000
Resent-Message-ID: 
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 56759
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 56759@debbugs.gnu.org
Cc: Philip McGrath 
Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875152111333
 (code B ref 56759); Mon, 25 Jul 2022 12:19:05 +0000
Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:18:41 +0000
Received: from localhost ([127.0.0.1]:49447 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from )
 id 1oFx2l-0002wc-UA
 for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:40 -0400
Received: from mail-qt1-f180.google.com ([209.85.160.180]:42623)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from ) id 1oFx2i-0002vk-9N
 for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:36 -0400
Received: by mail-qt1-f180.google.com with SMTP id w29so8017352qtv.9
 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:18:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=philipmcgrath.com; s=google;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=wwoAN0yBLwkrM0spbKqXjmYgXpNGz9LvkzATCLS9rcY=;
 b=jQXbOLHJaE4kMPWuPDK7QcueQgwsP27762JlY4EOHHl4tLRop9+W6X82LeDPb4ibiQ
 KqB9LlT/JTjGGPM93W+ABFVF4+7aGRBPvfQ12iabfe2jSgshOO3vY5byN7ggVa2dCT8H
 yUub58kZfxaAh8za6RW1jbcCno5llLwxVEife7CoF406O9KoK4C8/Q+V4abWaAizfLhC
 KLhg/kd66ZfPy41uBi6M8dhUJbWypWfT+EmAGNxHBP2fIMs7SfB7LZP6UDZaTDX5JvRG
 5VLDcGscl+Y/0vbaFNE3DD4UtWjDEK3QfQRlEI31x89Beozs2EOJ6//TS/zThgRejCRv
 3dWg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=wwoAN0yBLwkrM0spbKqXjmYgXpNGz9LvkzATCLS9rcY=;
 b=b9utt0G7BJrbzdxvOWBzeR/dxieJlU0/uxQYqwv/9irji+A5VyCEoGv2cupZ7PbBms
 YKMXeLIlUR9LwT+CDh7E0QrDWV4KTTb8ziPDvlsAKYkNnyEyoSd0HgnpKPxvh3eDCPnX
 nL7CzUGV7iAwlDGTbF2NEefgYa0FrVIP7deMBZy3GT798zMvTJUqb33d6HU7Hol4Iun5
 ckSetqYITiW3/Qr65hmQwhpc8E2nj5F5wafuZK64HYsqb5mvCPdoqDto9oiRPgUwqVMK
 xAzwYWj9AXTFcL8KIEif970PKt3IWRFcawr/G5WVEjntu25icnAnh/mKD8bG1GvLMKbu
 hBOQ==
X-Gm-Message-State: AJIora+sExhPtm996fpV9sHsld3MhMjxaYhCFuqUolF3I1b8eJ81B8ZJ
 HZPb23cB6w3TCgojuf+JLz0BlPcVRymx/t9D
X-Google-Smtp-Source: 
 AGRyM1uz7u93e56VDoSu/AuYXDBwlQ5k0mY9+NYYXBBOSq7ZSXZNdj8EyZpyByxa5Va1QdbJ7NQB1w==
X-Received: by 2002:a05:622a:1448:b0:31f:165b:f270 with SMTP id
 v8-20020a05622a144800b0031f165bf270mr10119728qtx.98.1658751510565;
 Mon, 25 Jul 2022 05:18:30 -0700 (PDT)
Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51])
 by smtp.gmail.com with UTF8SMTPSA id
 w24-20020a05620a095800b006a6d74f8fc9sm8504219qkw.127.2022.07.25.05.18.30
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 25 Jul 2022 05:18:30 -0700 (PDT)
From: Philip McGrath 
Date: Mon, 25 Jul 2022 08:16:33 -0400
Message-Id: 
 <04d6abe5dd2afb63a531c749104b7f6a84f21e38.1658750358.git.philip@philipmcgrath.com>
X-Mailer: git-send-email 2.32.0
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"
 
X-getmail-retrieved-from-mailbox: Patches

For the GDBM and Marshal dictionary adapters to be useful with their
default settings, we must initialize their data files during the package
build: upstream would initialize them lazily, but that doesn't work with
an immutable installation directory (at least, not without more complex
patches). Otherwise, we would always end up rebuilding the dictionary at
startup, which is “slow” and “not recommended”.

* gnu/packages/patches/ruby-anystyle-fix-dictionary-populate.patch: New
patch.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/ruby.scm (ruby-anystyle)[patches]: Use it.
[arguments]<#:phases>: Add 'populate-dictionaries' phase.
---
 gnu/local.mk                                  |  1 +
 ...uby-anystyle-fix-dictionary-populate.patch | 94 +++++++++++++++++++
 gnu/packages/ruby.scm                         | 31 +++++-
 3 files changed, 125 insertions(+), 1 deletion(-)
 create mode 100644 gnu/packages/patches/ruby-anystyle-fix-dictionary-populate.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 54ac9f2f9f..cb7bd1dc23 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1775,6 +1775,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/rocm-opencl-runtime-4.3-noclinfo.patch \
   %D%/packages/patches/rocm-opencl-runtime-4.3-noopencl.patch \
   %D%/packages/patches/ruby-anystyle-data-immutable-install.patch	\
+  %D%/packages/patches/ruby-anystyle-fix-dictionary-populate.patch	\
   %D%/packages/patches/ruby-latex-decode-fix-test.patch		\
   %D%/packages/patches/ruby-mustache-1.1.1-fix-race-condition-tests.patch \
   %D%/packages/patches/ruby-sanitize-system-libxml.patch	\
diff --git a/gnu/packages/patches/ruby-anystyle-fix-dictionary-populate.patch b/gnu/packages/patches/ruby-anystyle-fix-dictionary-populate.patch
new file mode 100644
index 0000000000..b2e0498e8d
--- /dev/null
+++ b/gnu/packages/patches/ruby-anystyle-fix-dictionary-populate.patch
@@ -0,0 +1,94 @@
+From fae622c8b77feebac66a538d76e4211de8bd8eb3 Mon Sep 17 00:00:00 2001
+From: Philip McGrath 
+Date: Sun, 24 Jul 2022 21:50:44 -0400
+Subject: [PATCH] fix saving `AnyStyle::Dictionary` after `populate!`
+
+Some of these fixes are more generally applicable.
+
+A more robust solution might find data files using
+e.g. `Gem.find_files()`.
+---
+ lib/anystyle/dictionary/gdbm.rb    |  6 ++++++
+ lib/anystyle/dictionary/marshal.rb | 31 ++++++++++++++++++++++++------
+ 2 files changed, 31 insertions(+), 6 deletions(-)
+
+diff --git a/lib/anystyle/dictionary/gdbm.rb b/lib/anystyle/dictionary/gdbm.rb
+index 754903c..c814df2 100644
+--- a/lib/anystyle/dictionary/gdbm.rb
++++ b/lib/anystyle/dictionary/gdbm.rb
+@@ -1,5 +1,6 @@
+ module AnyStyle
+   require 'gdbm'
++  require 'fileutils'
+ 
+   class Dictionary
+     class GDBM < Dictionary
+@@ -17,8 +18,13 @@ module AnyStyle
+ 
+       def open
+         close
++        FileUtils.mkdir_p(File.dirname(options[:path]))
+         @db = ::GDBM.new(*options.values_at(:path, :mode, :flags))
+         self
++      rescue Errno::EACCES
++        # GDBM.new tries this if :flags is nil, but not necessarily otherwise
++        @db = ::GDBM.new(options[:path],options[:mode],::GDBM::READER)
++        self
+       ensure
+         populate! if empty?
+       end
+diff --git a/lib/anystyle/dictionary/marshal.rb b/lib/anystyle/dictionary/marshal.rb
+index 761ca36..b9529d0 100644
+--- a/lib/anystyle/dictionary/marshal.rb
++++ b/lib/anystyle/dictionary/marshal.rb
+@@ -1,4 +1,6 @@
+ module AnyStyle
++  require 'fileutils'
++  require 'tempfile'
+   class Dictionary
+     class Marshal < Dictionary
+       @defaults = {
+@@ -10,17 +12,34 @@ module AnyStyle
+       end
+ 
+       def open
+-        if File.exists?(options[:path])
+-          @db = ::Marshal.load(File.open(options[:path]))
+-        else
+-          @db = {}
++        File.open(options[:path]) do |file|
++          @db = ::Marshal.load(file)
+         end
+         self
++      rescue Errno::ENOENT
++        @db = {}
++        self
+       ensure
+         if empty?
+           populate!
+-          if File.writable?(options[:path])
+-            ::Marshal.dump(db, File.open(options[:path], 'wb'))
++          tmp = nil
++          begin
++            FileUtils.mkdir_p(File.dirname(options[:path]))
++            tmp = Tempfile.create(File.basename(options[:path]),
++                                  File.dirname(options[:path]),
++                                  mode: File::Constants::BINARY)
++            pth = tmp.path()
++            ::Marshal.dump(db, tmp)
++            tmp.close()
++            File.rename(tmp.path, options[:path]) # will overwrite if exists
++            tmp = nil
++          rescue SystemCallError => e
++            warn(e.message)
++          ensure
++            if tmp then
++              tmp.close()
++              tmp.unlink()
++            end
+           end
+         end
+       end
+-- 
+2.32.0
+
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 32ba09d283..608b1ebe89 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13514,6 +13514,9 @@ (define-public ruby-anystyle
                      (substitute* "spec/anystyle/parser_spec.rb"
                        (("language: 'en'," orig)
                         (string-append "# " orig " # no lanugage_detector")))))
+                (patches
+                 (search-patches
+                  "ruby-anystyle-fix-dictionary-populate.patch"))
                 (file-name (git-file-name name version))))
       (build-system ruby-build-system)
       (propagated-inputs
@@ -13543,7 +13546,33 @@ (define-public ruby-anystyle
               (lambda args
                 (substitute* "anystyle.gemspec"
                   (("`git ls-files spec`")
-                   "`find spec -type f | sort`")))))))
+                   "`find spec -type f | sort`"))))
+            (add-after 'wrap 'populate-dictionaries
+              (lambda args
+                ;; We must initiallize these files here, or they will never be
+                ;; usable with the default settings. A more flexible approach
+                ;; might use something like `Gem.find_files()` or
+                ;; XDG_DATA_DIRS.
+                (with-output-to-file "initialize-dictionaries.rb"
+                  (lambda ()
+                    (display "
+require 'anystyle/dictionary' # must come before 'anystyle/data'
+require 'anystyle/data'
+[:marshal, :gdbm].each do |adapter|
+  AnyStyle::Dictionary.create({adapter: adapter}).open().close()
+end
+")))
+                (let* ((old-gems (getenv "GEM_PATH"))
+                       (new-gems (string-append #$output
+                                                "/lib/ruby/vendor_ruby:"
+                                                old-gems)))
+                  (dynamic-wind
+                    (lambda ()
+                      (setenv "GEM_PATH" new-gems))
+                    (lambda ()
+                      (invoke "ruby" "initialize-dictionaries.rb"))
+                    (lambda ()
+                      (setenv "GEM_PATH" old-gems)))))))))
       (home-page "https://anystyle.io")
       (synopsis "Fast and smart citation reference parsing (Ruby library)")
       (description

From patchwork Mon Jul 25 12:16:34 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: Philip McGrath 
X-Patchwork-Id: 40941
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 8C6BF27BBEA; Mon, 25 Jul 2022 13:20:55 +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 3F71927BBE9
	for ; Mon, 25 Jul 2022 13:20:55 +0100 (BST)
Received: from localhost ([::1]:51392 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from )
	id 1oFx4w-0001wV-Dk
	for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:20:54 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47796)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from )
 id 1oFx3C-0008Pm-CH
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:06 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:59713)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from )
 id 1oFx3C-0005PQ-17
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:06 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from ) id 1oFx3B-0002ym-Sf
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:05 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#56759] [PATCH 19/20] gnu: anystyle: Add tests for dictionary
 adapters.
Resent-From: Philip McGrath 
Original-Sender: "Debbugs-submit" 
Resent-CC: guix-patches@gnu.org
Resent-Date: Mon, 25 Jul 2022 12:19:05 +0000
Resent-Message-ID: 
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 56759
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 56759@debbugs.gnu.org
Cc: Philip McGrath 
Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875152411352
 (code B ref 56759); Mon, 25 Jul 2022 12:19:05 +0000
Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:18:44 +0000
Received: from localhost ([127.0.0.1]:49452 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from )
 id 1oFx2q-0002ww-9m
 for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:44 -0400
Received: from mail-qk1-f180.google.com ([209.85.222.180]:37862)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from ) id 1oFx2m-0002vt-6L
 for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:40 -0400
Received: by mail-qk1-f180.google.com with SMTP id c24so8419504qkm.4
 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:18:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=philipmcgrath.com; s=google;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=B5QoNIZHLgy9dwKs+IWpG9h6PE6292WjJJN1+479rqI=;
 b=XSKAa4bmxW3ulWUZsPWt2F+UEIvN9XPXIiotYQf2KNvt4Mby85cAJmrn2aZ6ISzXar
 7brP6eqwlbMt/xow8AYNd1bf2lMFWOPDbv+BS/s7v+SkNVsb6v8s98s4vshtrLYHtn9w
 XtDKZ+RKkeXSCcMxhFrL0VqVcpdtb2L0GEXiWQkV2ks1AV6uxuEjd48PknMcqIKNeUUh
 2sQjxAaUJEa8pnhFT5DaN91+U9UZk8I/9Id2XH/8VcO5tIAW+3qxbqOwIH8bv/C2FrlK
 LTGfuTLcTUYFyKT0eg6UzZWK0C5ExUFzT0xBEMYOWs2ANfKsJ0G/T2WQQkvyycduBnY7
 xHZg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=B5QoNIZHLgy9dwKs+IWpG9h6PE6292WjJJN1+479rqI=;
 b=NRjWohBh/0dV1v+72hZ6uRR9YXoaKRBDF16nlJG2JsAKUqueB3pqk71/0LaP6VxpKG
 yUEob4UCW/gEVGskTI05awhx0huh9+pBeOIudZWfzwFhxiQOo6H6SW8WfVRwsU3+qBq6
 IIuVGF5Nn+fKIUPR/f48YySg0O2Xv5Vo5WAKb22cgyvaV39Knu38uAY+sidXxpxVzmqF
 DHbdsVHzXougfSOIIrL4jlt7GKWna7sylDTDpnH55cbEPQeZbuFFF23j2zhgKvMTm9HY
 SWTWe3YdmorlM6WcNvy2lV8BxLO0+qkJW4Mj1s33iJdyU5sUoo2Vf0E5hMlAX6b9pd0S
 dCcQ==
X-Gm-Message-State: AJIora+omGGYUpgP1tGI8gnzHH+rrK6F5e8Yc/K++AE/XiDeZ3En7air
 mtH+rIJU+4rsGtC8tjza9cbOM4YS7pS5f0fm
X-Google-Smtp-Source: 
 AGRyM1v6je8kqpozTjbOkWWrRmvKkgBsihBygxiIwUpTTkYn+nwZ+15a0A2Um/HWLtb2BHSV+cia/Q==
X-Received: by 2002:a05:620a:2701:b0:6b5:e62e:a228 with SMTP id
 b1-20020a05620a270100b006b5e62ea228mr8766927qkp.600.1658751514758;
 Mon, 25 Jul 2022 05:18:34 -0700 (PDT)
Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51])
 by smtp.gmail.com with UTF8SMTPSA id
 q30-20020a37f71e000000b006a79d8c8198sm8616229qkj.135.2022.07.25.05.18.34
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 25 Jul 2022 05:18:34 -0700 (PDT)
From: Philip McGrath 
Date: Mon, 25 Jul 2022 08:16:34 -0400
Message-Id: 
 <398759e4792d0e3fe644d188eadf96976479eeb5.1658750358.git.philip@philipmcgrath.com>
X-Mailer: git-send-email 2.32.0
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"
 
X-getmail-retrieved-from-mailbox: Patches

* gnu/packages/ruby.scm (anystyle)[arguments]: Instead of deleting the
'check' phase, replace it with a few tests. Add SRFI 1 to '#:modules'.
---
 gnu/packages/ruby.scm | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 608b1ebe89..8991eb0927 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13611,6 +13611,7 @@ (define-public anystyle
       #:modules
       `((guix build ruby-build-system)
         (ice-9 popen)
+        (srfi srfi-1)
         (guix build utils))
       #:phases
       #~(modify-phases %standard-phases
@@ -13619,7 +13620,30 @@ (define-public anystyle
               (substitute* "anystyle-cli.gemspec"
                 (("'bibtex-ruby', '[^']*'")
                  "'bibtex-ruby'"))))
-          (delete 'check) ;; there are no upstream tests
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              ;; There are no tests, but let's use this opportunity to do a
+              ;; basic test of our own that things run ok. It works especially
+              ;; well to test this here since we know the 'ruby-anystile'
+              ;; package is in its final, immutable installed form.
+              (when tests?
+                (let ((common
+                       `("require 'anystyle'"
+                         ,(string-append
+                           "pp AnyStyle.parse 'Derrida, J. (1967). L’écriture"
+                           " et la différence (1 éd.). Paris: Éditions du"
+                           " Seuil.'"))))
+                  (for-each
+                   (lambda (lines)
+                     (apply invoke "ruby"
+                            (fold-right (lambda (line lst)
+                                          (cons* "-e" line lst))
+                                        '()
+                                        lines)))
+                   `(,common
+                     ("require 'anystyle/dictionary'"
+                      "AnyStyle::Dictionary.defaults[:adapter] = :gdbm"
+                      ,@common)))))))
           (add-after 'wrap 'check-cli
             (lambda* (#:key tests? outputs #:allow-other-keys)
               (when tests?

From patchwork Mon Jul 25 12:16:35 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philip McGrath 
X-Patchwork-Id: 40937
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 DF85527BBEA; Mon, 25 Jul 2022 13:20:04 +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 5A87D27BBE9
	for ; Mon, 25 Jul 2022 13:20:04 +0100 (BST)
Received: from localhost ([::1]:50066 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from )
	id 1oFx47-0000vb-DV
	for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 08:20:03 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47790)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from )
 id 1oFx3B-0008Ow-Ur
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:05 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:59712)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from )
 id 1oFx3B-0005PK-Hz
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:05 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from ) id 1oFx3B-0002ye-Dq
 for guix-patches@gnu.org; Mon, 25 Jul 2022 08:19:05 -0400
X-Loop: help-debbugs@gnu.org
Subject: [bug#56759] [PATCH 20/20] gnu: anystyle: Use GDBM by default.
Resent-From: Philip McGrath 
Original-Sender: "Debbugs-submit" 
Resent-CC: guix-patches@gnu.org
Resent-Date: Mon, 25 Jul 2022 12:19:05 +0000
Resent-Message-ID: 
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 56759
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 56759@debbugs.gnu.org
Cc: Philip McGrath 
Received: via spool by 56759-submit@debbugs.gnu.org id=B56759.165875152411345
 (code B ref 56759); Mon, 25 Jul 2022 12:19:05 +0000
Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 12:18:44 +0000
Received: from localhost ([127.0.0.1]:49450 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from )
 id 1oFx2q-0002ws-0e
 for submit@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:44 -0400
Received: from mail-qv1-f52.google.com ([209.85.219.52]:45733)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from ) id 1oFx2l-0002vY-61
 for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 08:18:39 -0400
Received: by mail-qv1-f52.google.com with SMTP id h18so8218373qvr.12
 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 05:18:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=philipmcgrath.com; s=google;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=PFJY8xPip6BwS3Y8J/oFD0copn4H1K1xlm91kWbRyPs=;
 b=R6EERBIA3temaXBUvZLde6cXuDN9A45ZDMoHFjefL834M/TMprlBd5MOXHLLkT6wGo
 bVTon3iOAMRl8mqi+kUKATTCOYRhHbtiwQPuHiyvHNIC/jCObJc+vODHl+CxRs0hBCr5
 QsVmm3hFqM76ZFcgn6Ajrx02ve74UIE2QIMcVpMFxMznjp3ON1IzKzmjTRTMzIpTWf+U
 zLoHbSRNf3ZcE/u5UWyJeqmSvP4znVpkNTRXa4j5FRfDR0fZKd/lZAx7BwgzCHlpqZdJ
 9OFv1FDXImlmFgYrCVs6E/6zHKu/yWgETSIt1EEZfcV+K8sa3LLsA+VsiOmiy1xME2f0
 wxqA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=PFJY8xPip6BwS3Y8J/oFD0copn4H1K1xlm91kWbRyPs=;
 b=Jw+QP0V/LARJf7wYUP+FhnfL8paq6PYbBCPthv/FIFcLanAgpOLaSZd7ozJzuU+iQL
 rpGRUlYGuAIbzKE/KzHlfcQu9Pws+Plb7rmR699FYhM/6/7Uznto2SeakNIIgMcjDabL
 t+1z7nzKUswLqdELzL1jBsVxMHFmrZPiIoUToh3VbGNMR5UaNXWoeQW9u5ZZXYqP37Vm
 8QrMoQMxXNBKpMsaPPrDMBmYoRJz0mrg1SUWZmuDCue7nWwWGnKPsNVRMj6ZBqksMeMv
 c4dun/nlaxPkFq5uzImqd+9c09xBaiY1Uj/G3XgjejByHQtvpqsUEvRmE3eOHpKe8Elb
 1VDw==
X-Gm-Message-State: AJIora/H1CsvTQSTm7ALKZdt1RJ38zn0huZvlV6yy3oFSxzof+NaxCQZ
 MuJiszMbepNZzECBzsMk5zFLIDnp4Xj78eA+
X-Google-Smtp-Source: 
 AGRyM1sSaGKlrqOJnv/i/Q/yXM9KmGQ87FFl0ze5ae4a7TqtqDZwOwQXPQql8QQQkqE9l6JtEwqjdw==
X-Received: by 2002:a05:6214:238b:b0:473:358:ddf4 with SMTP id
 fw11-20020a056214238b00b004730358ddf4mr10363606qvb.66.1658751518792;
 Mon, 25 Jul 2022 05:18:38 -0700 (PDT)
Received: from localhost (c-73-125-98-51.hsd1.fl.comcast.net. [73.125.98.51])
 by smtp.gmail.com with UTF8SMTPSA id
 h4-20020a37de04000000b006b58aa4e0e0sm8547394qkj.24.2022.07.25.05.18.38
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 25 Jul 2022 05:18:38 -0700 (PDT)
From: Philip McGrath 
Date: Mon, 25 Jul 2022 08:16:35 -0400
Message-Id: 
 <00b611997823e6108278d44565bd0287f4fe7ebb.1658750358.git.philip@philipmcgrath.com>
X-Mailer: git-send-email 2.32.0
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"
 
X-getmail-retrieved-from-mailbox: Patches

Since we have GDBM available, it offers a smaller memory footprint
and faster start-up.

* gnu/packages/ruby.scm (anystyle)[arguments]<#:phases>: Add phase
'change-default-dictionary-adapter'.
---
 gnu/packages/ruby.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 8991eb0927..655f49e725 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13620,6 +13620,14 @@ (define-public anystyle
               (substitute* "anystyle-cli.gemspec"
                 (("'bibtex-ruby', '[^']*'")
                  "'bibtex-ruby'"))))
+          (add-before 'build 'change-default-dictionary-adapter
+            (lambda args
+              ;; Since we always have gdbm available, using it will give a
+              ;; faster startup time, which is particularly worth-while for
+              ;; a command-line tool.
+              (substitute* "bin/anystyle"
+                (("default_value: 'ruby',")
+                 "default_value: 'gdbm', # patched for Guix"))))
           (replace 'check
             (lambda* (#:key tests? #:allow-other-keys)
               ;; There are no tests, but let's use this opportunity to do a