From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WIU/OF+K3mLUAAAAbAwnHQ (envelope-from ) for ; Mon, 25 Jul 2022 14:19:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ICUfN1+K3mJ53QAAG6o9tA (envelope-from ) for ; Mon, 25 Jul 2022 14:19:43 +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 8CCC313060 for ; Mon, 25 Jul 2022 14:19:42 +0200 (CEST) Received: from localhost ([::1]:48778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFx3l-0008Oi-FE for larch@yhetil.org; Mon, 25 Jul 2022 08:19:41 -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 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=1658751582; 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=2J4iVlPaUT8mJfzvpfKsOPa+px34TUP5FuW65Z1LtEA=; b=VfI0oYsyIy1tXaWL874jI0q8vc7l51D//4t5G28+wLzda9UxzUf5QIu1nSLjzgXWAFrS8f sIF+CjW3tSNLDbBiGMBbMQHWtztb8DfMooukbvbZR3PLd7S7GbY/2Q4PEtp6aSRbOTYAtQ DFbNH0yr+fU9NNo9ejAGhLVNNvaQPNf73c3Ed3AmAm9Z3GyjLh5l1/k66m7S9Bco63/XAv RDnC9ZFktldZA+USH3bGErPa4zyz5ABUSeyYgVJRYN037q+eTr8Bv1gOIfcuyT0Qg1V3R8 xhABPBHposaxlhORMLyBSOxEmXPCkw3vlzY5SYZLNtHBvW0M+U1USzy+Kbdyhg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658751582; a=rsa-sha256; cv=none; b=OlIfY77vZb1/ino+cLx4Dj28oZHnxoQExO+y8371sQX9lKwrLp/7HYpYOEW0VT0lhiM1ia crLcNjgqC3Cw40icPdhjE6MMj6RyiCA7dpa19xwVttAZDDufCIVjGZFVLH2pLKgiCFoNzF 237sFYQedeLGo64zAlW6ERxY5fykBG3yFACovyJ1tDHg8SyjBAgPzbJaBQQ7/+Xlf49grm YvIxUFmxnzjbAfIY7SlJ6jv++zgKa+tYlzuRydlPJVpNxs/XSBTGvVRkCubmd6S2vslHlF pfj7vREVnKlxWZ91UOJccA4btUsaVGW+kYgmDUSLhq1O1O/HHjyzVLIzMwf5Yw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=hQTuezar; 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: 4.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=hQTuezar; 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: 8CCC313060 X-Spam-Score: 4.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: OB2WMTWRNUca * 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))) -- 2.32.0