From patchwork Mon Jul 25 15:10:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 40949 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 6C9DA27BBEA; Mon, 25 Jul 2022 16:12:14 +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 D180627BBE9 for ; Mon, 25 Jul 2022 16:12:13 +0100 (BST) Received: from localhost ([::1]:36264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFzkj-0001ks-0l for patchwork@mira.cbaines.net; Mon, 25 Jul 2022 11:12:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFzkZ-0001kh-29 for guix-patches@gnu.org; Mon, 25 Jul 2022 11:12:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33324) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFzkY-0002hm-O6 for guix-patches@gnu.org; Mon, 25 Jul 2022 11:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFzkY-0001kJ-9M for guix-patches@gnu.org; Mon, 25 Jul 2022 11:12:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56759] [PATCH v2 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 15:12: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.16587618686617 (code B ref 56759); Mon, 25 Jul 2022 15:12:02 +0000 Received: (at 56759) by debbugs.gnu.org; 25 Jul 2022 15:11:08 +0000 Received: from localhost ([127.0.0.1]:51305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFzjf-0001ie-Iw for submit@debbugs.gnu.org; Mon, 25 Jul 2022 11:11:07 -0400 Received: from mail-qk1-f174.google.com ([209.85.222.174]:46757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFzjb-0001i8-1a for 56759@debbugs.gnu.org; Mon, 25 Jul 2022 11:11:05 -0400 Received: by mail-qk1-f174.google.com with SMTP id v28so8802518qkg.13 for <56759@debbugs.gnu.org>; Mon, 25 Jul 2022 08:11: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=HxM8npVT1JtYiBnhWgr9spQy5YVKM3jf5Vh0DiYfBPA=; b=inid1futMDV1+Yd0lw33KrCv01mcgXqAWN4ksD4aIYayZZrKTlz1eDldB+dtdxiwi6 rcoAfALc//NMNVFRp8IatJGj5dVCbv9sz8PE1GsrsZcoHWKUXT0MCDnLkoYRmxjTCZGX G4AsNxMaFCqJtmVhX+ckhrqB/Fuo7CD/aZddGK7GsHS+rmvvZ1nKefGbzEdqfUG0vru8 D9OlXcU0muYtaZOw1h75BvGs/4aNp5HAUxHa6I+DFg4CrD9RwTHqxUSrF3lrcOaMnuzf ufrMVEqmFUotWjIVAWnqlM78k36O95GtYfMvmDguvmoaDcdn3/YLmR8fGL2oHCkDTVie qHqQ== 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=HxM8npVT1JtYiBnhWgr9spQy5YVKM3jf5Vh0DiYfBPA=; b=Kns/Qa+0egj3q+hJekIwMA0Ipwtyf2YVPFh9douctN9E/gc5bfbMQTOMTXRpGSHjYU A+pc59FEforD5MKTSsJclrqQe7KvRMi8fPlLAqxNLDNDQcpoTRyUhJpKyrxT+1+hvwDO JJd86M+6QHu4CFFQ7RxefqJFCs8Gifwo+ZgJZDCH99qz5aGysgNmRjwUp7AT7ynIrpgW 7DQUX6GTblg7PFDDie+WYP3ZUotkTeIzQISDDYWHWIgx6XfXBoSQeKFBwR824Rds3HQG MF5n9LL/zvVGI2w0uejKsvJGNpwrJsppoxUSHqN5xAGN6T953jse7KKzLUAZNC8RzFHf EYwg== X-Gm-Message-State: AJIora/UhM2yIyyOoQY/yAJTiFbjU2GFrIQnMl1odCM0IQrkeQCt89No BekSZaGYUXQUu8fdp/5iLwXOgrC3uFPtU1Wi X-Google-Smtp-Source: AGRyM1snjyYRn1/+k/o1a/W5OWdwrejI6PJhLIheSlEEg235FSchjMCZK4/laB6z/LNpslW0JSflPw== X-Received: by 2002:a37:9ad1:0:b0:6b5:cf24:6e37 with SMTP id c200-20020a379ad1000000b006b5cf246e37mr9816186qke.148.1658761856308; Mon, 25 Jul 2022 08:10:56 -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 s21-20020a05620a29d500b006b5cefa8877sm9654046qkp.105.2022.07.25.08.10.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jul 2022 08:10:55 -0700 (PDT) From: Philip McGrath Date: Mon, 25 Jul 2022 11:10:06 -0400 Message-Id: <155f467d6ce99079effa0ddb6a1e486cda71e47d.1658761097.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-latex-decode): New variable. --- Just about an hour after I sent this patch series, the upstream maintainer of 'ruby-latex-decode' released a v0.4.0 incorporating the patches I'd sent---so, here is a v2 of just this patch! I can re-send the rest of the series if you want, but it seemed like that would be more confusing. -Philip gnu/packages/ruby.scm | 52 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 746bb9b6ce..5111b9ae2b 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -13111,3 +13111,55 @@ (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 + (package + (name "ruby-latex-decode") + (version "0.4.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/inukshuk/latex-decode") + (commit (string-append "v" version)))) + (sha256 + (base32 + "1f5j67ayd04pjkmzvn0hk7cr8yqvn0gyg9ns6a0vhzj2gwna9ihy")) + (file-name (git-file-name name version)))) + (build-system ruby-build-system) + (native-inputs + (list ruby-cucumber + ruby-ritex + ruby-rspec)) + (arguments + (list + #:test-target "cucumber" + #:phases + #~(modify-phases %standard-phases + (add-after 'extract-gemspec 'avoid-bundler + (lambda args + (substitute* "Rakefile" + (("require 'bundler" orig) + (string-append "# " orig " # patched for Guix")) + (("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"))) + (substitute* "cucumber.yml" + ;; thanks to avoiding bundler, we can't use this option + ((" --publish-quiet") + "")))) + (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+)))