From patchwork Mon Mar 20 17:21:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 48427 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 52E3116F3F; Mon, 20 Mar 2023 17:43:26 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2FF8D16F13 for ; Mon, 20 Mar 2023 17:43:24 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peJVc-0007vN-DY; Mon, 20 Mar 2023 13:41:24 -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 1peJVY-0007sR-Tz for guix-patches@gnu.org; Mon, 20 Mar 2023 13:41:20 -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 1peJVY-0005Ew-KL for guix-patches@gnu.org; Mon, 20 Mar 2023 13:41:20 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peJVY-0005PE-8t for guix-patches@gnu.org; Mon, 20 Mar 2023 13:41:20 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62196] [PATCH 109/223] gnu: Add ruby-fileutils. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 20 Mar 2023 17:41:20 +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.167933403020375 (code B ref 62196); Mon, 20 Mar 2023 17:41:20 +0000 Received: (at 62196) by debbugs.gnu.org; 20 Mar 2023 17:40:30 +0000 Received: from localhost ([127.0.0.1]:56634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJUj-0005IS-V1 for submit@debbugs.gnu.org; Mon, 20 Mar 2023 13:40:30 -0400 Received: from mail-qt1-f170.google.com ([209.85.160.170]:37438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peJEw-0003aj-Kf for 62196@debbugs.gnu.org; Mon, 20 Mar 2023 13:24:10 -0400 Received: by mail-qt1-f170.google.com with SMTP id r5so13985062qtp.4 for <62196@debbugs.gnu.org>; Mon, 20 Mar 2023 10:24:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679333045; 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=5dqLSOMrrFvZitEi+osu8GbkkqP6l3MZx/qGr5ry6Hg=; b=Qzs+DMIrQMCgSXEiUnFnCSPqF6ITjzbAHs+/vTdEQ3s4MgVkXAh8KtrNl5vIvMwiq7 uYGYluvgL03cvl3TiNNOUXh9m27pJmeu34E1URlbG1QOK1xtQO6IRIRL5nRMKNQsX9+2 nxmyetG3y+8bpL1Fli0SDL+af2UfYgwxMBhz219YyvixUAE0A5xF8nncDUM9s+g0HcEw 897VE3NSMOpdZ3Yv1Hi+WyxvPAlT6Jmt4vv43Fp97FtH0+0DnxeoqqAE0K9uKYYYP024 ++AtVKdPSKf1D/CaI8ZJfR6dmfO7EFwBmcxgMB7I7A/rvIRtS5/vH7XabzT0FpUKfSGb l1pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679333045; 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=5dqLSOMrrFvZitEi+osu8GbkkqP6l3MZx/qGr5ry6Hg=; b=2WfhhtGesIBtm1S6YfZmu30hDUDWElwSAtFQN5FIAI4cKyWZrl71LSDXJNB0z+iagi pPBWRkiCqllIwGqKp4pjSiPPS9rOCg1/+HHBtOJVxcTFAu4jmOjPVQmki4iZ7EN4UT+u Tpzi93ErjjZBFc/R5+nUhUeG07/DxQJ7mHFp1g9q1r3Q/XvPC77XT3O5mfCux4K/RnOi RiL0oxbEZ5+Be/H+cZ6tvJdHjlKyrA+s8rRwba8x2neAzO0L72x9/dhSLPq05C5lX7WC +vTJ1KQCLX/V4eg3nOKR/Ajg/G9FRK5MgLJJcd4FgOpzH9Dihgk2XFDwI0iqij2J+4Dg Ytaw== X-Gm-Message-State: AO0yUKV3RbSAyZ/NpWBLDOyqDRPfPgKYlDiSzZKUAI2m6CLBkvU0BJum djK6Ax1nI7kdEONsWBy1U/eLVbcIZxs= X-Google-Smtp-Source: AK7set/GcLpasobZlccdhpNF45yggv4yzEFpDrE/0NFdtVg0Qtk+014GEYwALzM3+A02mPAqfA7rww== X-Received: by 2002:ac8:5f4e:0:b0:3d9:6266:86d9 with SMTP id y14-20020ac85f4e000000b003d9626686d9mr21268598qta.10.1679333044914; Mon, 20 Mar 2023 10:24:04 -0700 (PDT) Received: from localhost.localdomain (dsl-10-128-46.b2b2c.ca. [72.10.128.46]) by smtp.gmail.com with ESMTPSA id i7-20020a378607000000b007422eee8058sm7769352qkd.125.2023.03.20.10.24.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 10:24:04 -0700 (PDT) From: Maxim Cournoyer Date: Mon, 20 Mar 2023 13:21:55 -0400 Message-Id: <20230320172349.12752-8-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230320172349.12752-1-maxim.cournoyer@gmail.com> References: <20230320172349.12752-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/ruby.scm (ruby-fileutils): New variable. --- gnu/packages/ruby.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index b8a6b0c4f5..a96774feb4 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -9217,6 +9217,42 @@ (define-public ruby-mini-mime (home-page "https://github.com/discourse/mini_mime") (license license:expat))) +(define-public ruby-fileutils + (package + (name "ruby-fileutils") + (version "1.7.0") + (source (origin + (method git-fetch) ;for tests + (uri (git-reference + (url "https://github.com/ruby/fileutils") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0m68gaqclnc2wflilmrnr19kky2gr6fjf6k3yq02sf9scs281kid")))) + (build-system ruby-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'disable-problematic-tests + (lambda _ + (substitute* "test/fileutils/test_fileutils.rb" + ;; The 'test_chown' tests depends on /etc/groups, which + ;; doesn't exist in the build environment. + (("def test_chown.*" all) + (string-append all " return true\n")) + ;; The 'test_cp_r_dev' expects a RuntimeError to be raised + ;; when copying a char device to a directory, but this is not + ;; triggered in the build environment, for reasons unknown. + (("def test_cp_r_dev.*" all) + (string-append all " return true\n")))))))) + (synopsis "Ruby utility libray to manipulate files") + (description "The FileUtils Ruby library includes Several file utility +methods for copying, moving, removing, etc.") + (home-page "https://github.com/ruby/fileutils") + (license license:bsd-2))) + (define-public ruby-fivemat (package (name "ruby-fivemat")