From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QHrKAmuK3mJ4EwAAbAwnHQ (envelope-from ) for ; Mon, 25 Jul 2022 14:19:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GH6LAWuK3mKUkAAAG6o9tA (envelope-from ) for ; Mon, 25 Jul 2022 14:19:55 +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 C0FCA1C171 for ; Mon, 25 Jul 2022 14:19:54 +0200 (CEST) Received: from localhost ([::1]:49720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFx3x-0000hC-HP for larch@yhetil.org; Mon, 25 Jul 2022 08:19:53 -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 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=1658751594; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=9AW4lIWmfgOFgzhBmmgOI9NryH7cHn3nIGJZLGttZM8=; b=PH9XvPL5VBJvl7ianuIjgeJGCl42KAJELNy7MNcUzOFgW27Jb34cddzRkcmSXZ/Nhji6O8 eGbTD5UZ5q4tUUKqTVfIo7vTavDy1n18U/Vt2ZwT5K+G1cxSajM1FRb0SwUdfxN8U2n0vR Bg4ysMumTE4PxCkS68rZaOHGbqOGN+FPD9FPRb8SdSDq4RDsMQ0BPYUHkzdOb/4LRlq0CI ZxpUinYBhkGtMaGfrbI6yUeC8rb1xzANE5vOJkE/2dOtJ2PxBqxHzcke4NxiU3wEBM0hKX hVpAgBuq7ppR9KCQznFer7+cbsgMbzrywi1DDN0FEpD7cedY5u4yw3A72ojsYQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658751594; a=rsa-sha256; cv=none; b=na/+qGo0W9rea00SVCQNcdHkSQBOLfvUU3fFlU/RP7LDHpd6UAFYGI6Lby8eWcGD2e7zGz hc7LFjUMXB43xxBLuSjLbtiQ+sxOYKwOw3d/UuHX3BDOPBTj05itHEfTvqP78A9DeoEFzZ cRDNtGumIsKhWFQ6aELxCYMAOENWxahm4ys6Im3RYK0zd5OUID2hZjuFOWSRrTGoo0iKRV fv3K2mTitEFZplzSNF6WwcVBused70UPOoLtaKLqmpLNBviI8LAEuIpGaf1cUI5vuvat8G 0k40iqm+c4yBxVweMq9+2dm+AxXUE8bG7vUDs98miWDvvyIrFPH23c2TUa2UiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=cEi5hz+9; 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: 3.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=cEi5hz+9; 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: C0FCA1C171 X-Spam-Score: 3.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: UUsF//qPmP7A * 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))) -- 2.32.0