From patchwork Mon Jan 28 17:36:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 878 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 4278316AEA; Mon, 28 Jan 2019 17:37:38 +0000 (GMT) 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,UNPARSEABLE_RELAY, 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 ED28A16AE7 for ; Mon, 28 Jan 2019 17:37:37 +0000 (GMT) Received: from localhost ([127.0.0.1]:35849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goAqn-0000Us-Dv for patchwork@mira.cbaines.net; Mon, 28 Jan 2019 12:37:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goAqL-0008Tv-8P for guix-patches@gnu.org; Mon, 28 Jan 2019 12:37:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goAqJ-0001SQ-WF for guix-patches@gnu.org; Mon, 28 Jan 2019 12:37:09 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50157) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goAqJ-0001SJ-Rk for guix-patches@gnu.org; Mon, 28 Jan 2019 12:37:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1goAqJ-0001TA-Nm for guix-patches@gnu.org; Mon, 28 Jan 2019 12:37:07 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#30689] [PATCH 21/39] gnu: Add ruby-loofah. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 28 Jan 2019 17:37:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30689 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo To: 30689@debbugs.gnu.org Received: via spool by 30689-submit@debbugs.gnu.org id=B30689.15486970095421 (code B ref 30689); Mon, 28 Jan 2019 17:37:07 +0000 Received: (at 30689) by debbugs.gnu.org; 28 Jan 2019 17:36:49 +0000 Received: from localhost ([127.0.0.1]:49391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goAq1-0001PH-06 for submit@debbugs.gnu.org; Mon, 28 Jan 2019 12:36:49 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:59196 helo=mira.cbaines.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goApc-0001LE-1M for 30689@debbugs.gnu.org; Mon, 28 Jan 2019 12:36:25 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id CE87C16AEC for <30689@debbugs.gnu.org>; Mon, 28 Jan 2019 17:36:22 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 253e70cf for <30689@debbugs.gnu.org>; Mon, 28 Jan 2019 17:36:20 +0000 (UTC) From: Christopher Baines Date: Mon, 28 Jan 2019 17:36:02 +0000 Message-Id: <20190128173620.27999-21-mail@cbaines.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190128173620.27999-1-mail@cbaines.net> References: <87h8dshesk.fsf@cbaines.net> <20190128173620.27999-1-mail@cbaines.net> 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/ruby.scm (ruby-loofah): New variable. --- gnu/packages/ruby.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index a2ec683ce9..4d93fef024 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -3742,6 +3742,44 @@ you about the changes.") (base32 "1l0y7hbyfiwpvk172r28hsdqsifq1ls39hsfmzi1vy4ll0smd14i")))))) +(define-public ruby-loofah + (package + (name "ruby-loofah") + (version "2.2.3") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "loofah" version)) + (sha256 + (base32 + "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg")))) + (build-system ruby-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'remove-unnecessary-dependencies + (lambda _ + ;; concourse is a development tool which is unused, so remove it + ;; so it's not required. + (substitute* "Gemfile" + ((".*\"concourse\".*") "\n")) + (substitute* "Rakefile" + (("require 'concourse'") "") + (("Concourse\\.new.*") "\n")) + #t))))) + (native-inputs + `(("ruby-hoe" ,ruby-hoe) + ("ruby-rr" ,ruby-rr))) + (propagated-inputs + `(("ruby-nokogiri" ,ruby-nokogiri) + ("ruby-crass" ,ruby-crass))) + (synopsis "Ruby library for manipulating and transforming HTML/XML") + (description + "Loofah is a general library for manipulating and transforming HTML/XML +documents and fragments. It's built on top of Nokogiri and libxml2.") + (home-page "https://github.com/flavorjones/loofah") + (license license:expat))) + (define-public ruby-activesupport (package (name "ruby-activesupport")