From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 3SpVMc6y3mImUQEAbAwnHQ (envelope-from ) for ; Mon, 25 Jul 2022 17:12:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IFtAMM6y3mLMZAAA9RJhRA (envelope-from ) for ; Mon, 25 Jul 2022 17:12:14 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8101310C30 for ; Mon, 25 Jul 2022 17:12:14 +0200 (CEST) Received: from localhost ([::1]:36264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFzkj-0001ks-MD for larch@yhetil.org; 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658761934; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=HxM8npVT1JtYiBnhWgr9spQy5YVKM3jf5Vh0DiYfBPA=; b=CjinIux9imFphIHfpN2C2DGDhVnY5jparXjEjd1Er61SEaF6+YZmjHU4Ewa4g5WqqrdG3j s9nZkbxPJa8dabUqDN4mEDbSITbZCCp0GPXBNFUFQezNaqDimJz9YSlMHH2hZFPVNSVJKb TJlqzBtccqByM5TKJv2sPJajurt7uCkc7C7txJsyVoEaStgBYs7ZZoA6Zhu6/DM0Pcgiaq zbBk2PJUp+zdlw4aMkRZ7Gm06SzbBjxq3kiPgjspaB+Owrl7qR60cqb9LEdif4nNwc86ad ZWtQ63DldrENJhPgYdHEGKsP1IpJhJyO4yLzk1UFy6XubtqjbGSsFiecXSZpbA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658761934; a=rsa-sha256; cv=none; b=XmHXo2tpLIT6bft6sXwtHnltrwyJU8huBm3NFMCF2EmzCQru8QPdzbtnjqzJMsHKnAC1CY vnWkYQfi4pPv0/yo5eZAtZc+oUn1iy5rnRucnkEV0iajRbtyevo/3jBgEs94K2rwiFbI9o bzcsM5tyVK25UZKdYaXWKuAvSeY7cr7c6T04xzHCw7FXohj1QYwVv2lrQvxctkWQHz6n0y sSamq9HqwLQETlvTiEJPZi3ETzCSHmtrOXybhR68QP4Vg1G38HjeknE376bOXgkSj9fneN FZ1NPqCM64hiTe4KQIj0gV4GOvu+bZtOPAafCHMOH+dlhfQxker06WDZekodAw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=inid1fut; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=inid1fut; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8101310C30 X-Spam-Score: 2.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: j3+1kROuIwmG * 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+))) -- 2.32.0