From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2E7HL7+hGGRWVAAASxT56A (envelope-from ) for ; Mon, 20 Mar 2023 19:11:11 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sG28L7+hGGSiUwEAauVa8A (envelope-from ) for ; Mon, 20 Mar 2023 19:11:11 +0100 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 aspmx2.migadu.com (Postfix) with ESMTPS id 7FAFD36DD7 for ; Mon, 20 Mar 2023 19:11:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peJVP-0007jO-SA; Mon, 20 Mar 2023 13:41:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peJVL-0007fw-UQ for guix-patches@gnu.org; Mon, 20 Mar 2023 13:41:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1peJVL-00055V-Lm for guix-patches@gnu.org; Mon, 20 Mar 2023 13:41:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peJVL-0005LP-HO for guix-patches@gnu.org; Mon, 20 Mar 2023 13:41:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62196] [PATCH 030/223] gnu: Add ruby-m. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 20 Mar 2023 17:41:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62196 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62196@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 62196-submit@debbugs.gnu.org id=B62196.167933401920137 (code B ref 62196); Mon, 20 Mar 2023 17:41:07 +0000 Received: (at 62196) by debbugs.gnu.org; 20 Mar 2023 17:40:19 +0000 Received: from localhost ([127.0.0.1]:56570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJUZ-0005Eh-1C for submit@debbugs.gnu.org; Mon, 20 Mar 2023 13:40:19 -0400 Received: from mail-qt1-f174.google.com ([209.85.160.174]:42948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJ86-0003Dq-Vo for 62196@debbugs.gnu.org; Mon, 20 Mar 2023 13:17:07 -0400 Received: by mail-qt1-f174.google.com with SMTP id r16so13931992qtx.9 for <62196@debbugs.gnu.org>; Mon, 20 Mar 2023 10:17:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679332626; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kYYrXZwjGWyC4Eq8Cq4FVrHPSScCv9We13DZeJU6OZc=; b=g3bqq+qxscbdLGAH8RMYeQi3ZpgbJnktXDbYg6xoeUvIqg+6yRVfxacZEWnv+L9HH0 bC3iKBQXauRqE7c5VvWN7X6jv1FuqsEqGQql9WjsfsIjCida3HFi7q0AWIT625Oz2xbi Z4qH3DYcfr9p1d2sREAUEyzQQG06ec1jp1+5EcD7R5YH7vXWOQ0G9Hao5yBzigESXinA +EcUlz8RnducLLiuoXWtnDbTEYfRTWGlwd/PHAT1pz1jC57kA1xNNyk+ve5pg4cZpjGR ucf343IKEgcQQ1bu0bL+40jsDW/RwD4ybM55ZQkAd2HYkuj7Sohmq1z30e3MV263sfdx v3Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679332626; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kYYrXZwjGWyC4Eq8Cq4FVrHPSScCv9We13DZeJU6OZc=; b=l6lvAWtlWvc9npHSAMg5FJ7otbGkx7ynK+edrzeKb7DFYfP7STXmP4QAm5497qloE/ c5W8mNnLrKMphIH+HREE6IkCvI+iL85rZmAGGeza3c4/fmAmYcjpboCv5sSspA4L9ZDb 41+6ZrlNkaVqAX0SRqkfcdZXGbweCfTCc6qOFHgkG5OL+TEssxNlabHkBQb/Dh5i5gzv AxhBD60aHcpkcg+UH153kiC93Uhc+rUIVb47PK6wiWVEvagxRQBTdlAqKtu7nUX3RYCl EdDPir0UDB2CYIvlbyQ6tPuWqX3HI01k8SEHIuFf3MK/9/U8bxa/7svnIcFvrFZwEOJR 5eZA== X-Gm-Message-State: AO0yUKW6Gq5URnYmaWv3at0TFpEnxHGL5fp/1Hly2evqECZjLdGnrrS2 Jw86+TPwaNgpvPBNqbEw+RE51wcR0eE= X-Google-Smtp-Source: AK7set+GO2at+sE3xo6lX1uONvFat1X0lV3q8csLiFgIqMr4Ls3DZOPlcvboh7hF8lgBgpfeDX8j9g== X-Received: by 2002:a05:622a:54e:b0:3e1:b06d:e9e1 with SMTP id m14-20020a05622a054e00b003e1b06de9e1mr5905466qtx.57.1679332626509; Mon, 20 Mar 2023 10:17:06 -0700 (PDT) Received: from localhost.localdomain (dsl-10-128-46.b2b2c.ca. [72.10.128.46]) by smtp.gmail.com with ESMTPSA id p17-20020a374211000000b007428e743508sm7673809qka.70.2023.03.20.10.17.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 10:17:06 -0700 (PDT) From: Maxim Cournoyer Date: Mon, 20 Mar 2023 13:13:22 -0400 Message-Id: <20230320171635.11184-30-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230320171635.11184-1-maxim.cournoyer@gmail.com> References: <20230320171635.11184-1-maxim.cournoyer@gmail.com> 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679335871; a=rsa-sha256; cv=none; b=rnALCZQGvfQkEd7Y/BSaLPYOm9K/ytzpHStFt0RaNCixWazxRyQ3SrqC70KmhFKb8XANSu wzfRZTHbPkSkR6VMU+XmdRiKNOldpxmkbcAhPUL5ifW/LLBpMpPOYrMqyssD1f70gRkulX +7kFLaUkL6jpdzFX7ugpKDmfrLywQL7ylAVhshtc74k0YykkyMWaeMeozIU06sxS8Ch4Gn ebi1TtOPGY8pQEPug9JWVD5+43/eAKFJGvQvIREho8Bjolsj4e1IvXvO1YsO4jvq+ySC66 PUb2I9XnKcB/7aVDP8OVBZxsXltuXrR/EeTBet9K/hcVLlk1w/6keD9CiJQqQA== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=g3bqq+qx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx2.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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679335871; 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=kYYrXZwjGWyC4Eq8Cq4FVrHPSScCv9We13DZeJU6OZc=; b=EeJ+4NNgL13aHz1/Ff9GgrDRvU6dTI+nfKG/tglL5ACfl1kvG32yZ0jFZ9YJqDoKAjmM2H 06GWA3Ui5fgv+hJnNjotYj1908EShu65MfPotV3iTu6g+Kg0seJvO/w9EC6j78YloPlp5I 4y+7Zlo4ky2iUHWUhCRNo3OSKmG6896MWxXdcxNSTobn3DdAVujWEYdUCCJsxAkgGi1Mte LtVecu1HOy2FtPovUwlIBRAsereZPhtoJ8/hwqHG2QlIdbQfg9pDhXVauedn5qMeq/CJGG BnMemnXdssZ5dg6V68xLot78eLUJzOQU57gzkdLmbFbLuKs8NmR3TCTgvK37QA== X-Migadu-Spam-Score: 6.25 X-Spam-Score: 6.25 X-Migadu-Queue-Id: 7FAFD36DD7 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=g3bqq+qx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx2.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-Scanner: scn1.migadu.com X-TUID: vRl669y+x+cP * gnu/packages/ruby.scm (ruby-m): New variable. --- gnu/packages/ruby.scm | 62 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index ceeda5647d..380783721b 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -11397,6 +11397,68 @@ (define-public ruby-matrix (home-page "https://github.com/ruby/matrix") (license license:bsd-2))) +(define-public ruby-m + (package + (name "ruby-m") + (version "1.6.1") + (source (origin + (method git-fetch) ;for tests + (uri (git-reference + (url "https://github.com/qrush/m") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1aycfc8l1bsln1y300fv75fknn4amjcvc4rm2kd8hb6cqivjq5rg")))) + (build-system ruby-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'sanitize-dependencies + (lambda _ + (delete-file "Gemfile") + (delete-file "Gemfile.lock") + ;; Rocco is unmaintained as of 2023/01/08; avoid depending on + ;; it. + (substitute* "m.gemspec" + ;; The rdiscount and rocco dependencies are used for + ;; generating the documentation. + ((".*rdiscount.*") "") + ((".*rocco.*") "") + ((".*appraisal.*") "") + ((".*coveralls.*") "")) + (substitute* "Rakefile" + ;; ruby-appraisal is not packaged, and is used to test against + ;; various dependencies; circumvent its use. + ((".*require 'appraisal'.*") "") + ((".*require 'coveralls'.*") "") + (("appraisal [:graphic:]+ rake") + "rake") + (("Coveralls.push!") "")))) + (add-before 'replace-git-ls-files 'pre-replace-git-ls-files + (lambda _ + (substitute* "m.gemspec" + (("git ls-files -- bin/\\*") + "find bin -type f -not -regex '.*\\.gem$' | sort") + (("git ls-files -- \\{test,spec,features}/\\*") + "find test -type f -not -regex '.*\\.gem$' | sort")))) + (delete 'check) + (add-after 'install 'check + (lambda* (#:key tests? #:allow-other-keys) + (setenv "GEM_PATH" (string-append + (getenv "GEM_PATH") ":" + #$output "/lib/ruby/vendor_ruby")) + (when tests? + (invoke "rake" "test"))))))) + (native-inputs (list ruby-activesupport)) + (propagated-inputs (list ruby-method-source ruby-rake)) + (synopsis "Ruby test runner that can run tests by line number") + (description "@code{m} stands for metal, a better test/unit and +@code{minitest} test runner that can run tests by line number.") + (home-page "https://github.com/qrush/m") + (license license:expat))) + (define-public ruby-mercenary (package (name "ruby-mercenary") -- 2.39.1