From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 SFxjOXGK3mI9EwAAbAwnHQ (envelope-from ) for ; Mon, 25 Jul 2022 14:20:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IM9KOXGK3mJOTQEA9RJhRA (envelope-from ) for ; Mon, 25 Jul 2022 14:20:01 +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 916971C32D for ; Mon, 25 Jul 2022 14:20:01 +0200 (CEST) Received: from localhost ([::1]:50136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFx44-0000y6-FO for larch@yhetil.org; Mon, 25 Jul 2022 08:20:00 -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 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=1658751601; 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=BW37mlTNfoKjndF3mrjJae3HoGFFb2EVkcr4W4b+hHE=; b=IhbwSmjXBIVBd8Yj6Vrp82GP/wH3a7wIhitV/NAUySFT+7Pi1taF35TN7UCnmgsjAjjpTf D83Ap6vROgWbyMoSzwfzjujckQoBL41q2DX0iHhX5hLgzxytnbOF7DnswrCMtegNYnJUGm AnLiMAuV/O3gJa/b0M4inFdQJT66FNhL0j3rfjK2zrxQVNcQjRO+vtHMJmLXmp2EpCmbz8 i2+rcaeJXCqTWtTsMAXwdz0xSS0zwUwgRWHQX0DIzPS8nFpZpUEgJchsJCUAQmrDh5C7qu Ulv6ptg2DyuKsKxYODaIPC6/opKgbZNAcl1LPMaSSjBcGKPAfMSVnlW9ypcJAA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658751601; a=rsa-sha256; cv=none; b=qItEhvco+rwUCDP2veDYhDLBeQUVWcE0InGFu408CWpOIZcGIMyQlNGcNnMIdtOy3Hqmh5 QQQ2QHPK+EofUHB7nS4PhhcqitocT/ZUlRNDIYRuma+SFW0pdbgz56fPNQUMY7LQrOZtZs FBD7Vvywa5S9g6CC6RGeFoOA249WgoWAm2rCQNeMHku+/WDnTnS/0YHbVhxAC6yjQgkA6s J2uaLfbRuoB7rL7UABql3fWFp4HgQq/T03OTe8GV0p6WnKhhiFfBHm6zBBM9k5tUsrTjy+ n/9o4RRn/UJR92OT63J/hPmug8Z4XyW7u4avQUHPE+hI6VBePD3vvtgVcXcfMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=Q8uEHkD8; 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=Q8uEHkD8; 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: 916971C32D X-Spam-Score: 3.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: DQoh8gLPz2Cz * 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))) -- 2.32.0