From patchwork Thu May 9 17:59:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Josh Holland X-Patchwork-Id: 13940 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 1294E16FDF; Thu, 9 May 2019 19:02:15 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 9FCE216FD6 for ; Thu, 9 May 2019 19:02:13 +0100 (BST) Received: from localhost ([127.0.0.1]:58936 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOnMy-0003GO-TZ for patchwork@mira.cbaines.net; Thu, 09 May 2019 14:02:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOnKw-0000NE-JD for guix-patches@gnu.org; Thu, 09 May 2019 14:00:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOnKv-0001XL-8V for guix-patches@gnu.org; Thu, 09 May 2019 14:00:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51041) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOnKv-0001XF-4p for guix-patches@gnu.org; Thu, 09 May 2019 14:00:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hOnKu-00018U-3x for guix-patches@gnu.org; Thu, 09 May 2019 14:00:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35653] [PATCH v2] gnu: Add rcm. Resent-From: Josh Holland Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 May 2019 18:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35653 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Danny Milosavljevic Received: via spool by 35653-submit@debbugs.gnu.org id=B35653.15574247894272 (code B ref 35653); Thu, 09 May 2019 18:00:03 +0000 Received: (at 35653) by debbugs.gnu.org; 9 May 2019 17:59:49 +0000 Received: from localhost ([127.0.0.1]:36351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOnKa-00016m-Ta for submit@debbugs.gnu.org; Thu, 09 May 2019 13:59:49 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:56061) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOnKZ-00016N-0f for 35653@debbugs.gnu.org; Thu, 09 May 2019 13:59:43 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D5254245B9; Thu, 9 May 2019 13:59:37 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 09 May 2019 13:59:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inv.alid.pw; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mesmtp; bh=M0oKJ7OYCkmB2cmn4DGEeXLPNr18OYOsJ+/D/SEdVq8=; b=KmkbBSIu3Hl+ QiUrupubTHnzrkG8+V7A26NXdXwr3mm2f6kasC3axeNfd0ihKEYP3uTCMJXH14Bd XNSVroGZolWjhVVN3GcRu+srVbCe1yfOfEKl3NEwrck/BSEFzG39see+H4vn8hoA KT0jMx9AWFkJ/0wTda2Be6bKcaoP4y4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=M0oKJ7OYCkmB2cmn4DGEeXLPNr18OYOsJ+/D/SEdV q8=; b=prjWTJjvq32bSXcaztHI5qsy1BvtUI3Br4Mh93wblJHBHX+xjYbg3y99l Twod/6LMvGgEAVTvG+uIz41zXwHZt9SaaHfHStyyV1WFLyX48CE2pvQYaDEpCwvE 8/8YkvWNVorZMXfJ02zDkueiBINf4J5VU2hNK80Q5CyZhYNvotAU2N4c02NHZ7sW Aq8gjKKR8jdB9yDyKRyo0pgVeBU6CLXufl0i1eOLbcTHtehcSCtFL87bKuFmVY86 bUbj/yqqwhEGXUFU5Xu22VJyK2XBGfh0xZoeJNypQY1pmnNPPaSU/ydMQ3lnRuVQ MFYLW8sJyqwzqYmE6cYmeG+iSki5Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrkeeigdehkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenog fuuhhsphgvtghtffhomhgrihhnucdlgeelmdenfghrlhcuvffnffculdejmdenucfjughr pefhvffufffkofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpeflohhshhcujfholh hlrghnugcuoehjohhshhesihhnvhdrrghlihgurdhpfieqnecuffhomhgrihhnpehgihht hhhusgdrihhopdhgihhthhhusgdrtghomhdpghhnuhdrohhrghenucfkphepudeliedrhe dvrdekgedrvdeinecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhshhesihhnvhdrrghl ihgurdhpfienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost.localdomain (ip-26-84-52-196.southampton.uk.amsterdamresidential.com [196.52.84.26]) by mail.messagingengine.com (Postfix) with ESMTPA id B78598005A; Thu, 9 May 2019 13:59:36 -0400 (EDT) From: Josh Holland Date: Thu, 9 May 2019 18:59:16 +0100 Message-Id: <20190509175916.22479-2-josh@inv.alid.pw> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190509175916.22479-1-josh@inv.alid.pw> References: <20190509185256.309d9b63@scratchpost.org> <20190509175916.22479-1-josh@inv.alid.pw> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 35653@debbugs.gnu.org, Josh Holland Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/rcm.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add rcm.scm. --- gnu/local.mk | 1 + gnu/packages/rcm.scm | 62 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 gnu/packages/rcm.scm diff --git a/gnu/local.mk b/gnu/local.mk index 3f97397c4a..0789d74f78 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -398,6 +398,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/ragel.scm \ %D%/packages/rails.scm \ %D%/packages/ratpoison.scm \ + %D%/packages/rcm.scm \ %D%/packages/rdesktop.scm \ %D%/packages/rdf.scm \ %D%/packages/re2c.scm \ diff --git a/gnu/packages/rcm.scm b/gnu/packages/rcm.scm new file mode 100644 index 0000000000..c61626d114 --- /dev/null +++ b/gnu/packages/rcm.scm @@ -0,0 +1,62 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2019 Josh Holland +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages rcm) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu) + #:use-module (guix licenses) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages perl)) + +(define-public rcm + (package + (name "rcm") + (version "1.3.3") + (source (origin + (method url-fetch) + (uri (string-append "https://thoughtbot.github.io/rcm/dist/rcm-" + version ".tar.gz")) + (sha256 + (base32 "1bqk7rrp1ckzvsvl9wghsr77m8xl3a7yc5gqdsisz492dx2j8mck")))) + (build-system gnu-build-system) + (arguments '(#:phases + (modify-phases %standard-phases + (add-after 'patch-source-shebangs 'patch-tests + (lambda _ + (substitute* '("test/rcrc-tilde.t" + "test/rcdn-hooks-run-in-order.t" + "test/rcup-hooks-run-in-order.t") + (("/bin/sh") (which "sh"))) + (substitute* "test/rcup-hooks.t" + (("/usr/bin/env") (which "env"))) + #t))) + #:parallel-tests? #f)) + (native-inputs `(("perl" ,perl) + ("python-cram" ,python-cram))) + (synopsis "Management suite for dotfiles") + (description "The rcm suite of tools is for managing dotfiles directories. This is +a directory containing all the @code{.*rc} files in your home directory +(@code{.zshrc}, @code{.vimrc}, and so on). These files have gone by many +names in history, such as “rc files” because they typically end in rc +or “dotfiles” because they begin with a period. This suite is useful +for committing your rc files to a central repository to share, but it also +scales to a more complex situation such as multiple source directories +shared between computers with some host-specific or task-specific files.") + (license bsd-3) + (home-page "https://github.com/thoughtbot/rcm")))