From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4hSX-0007Qm-Mb for guix-patches@gnu.org; Wed, 18 Oct 2017 02:04:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4hSW-0005OB-Cc for guix-patches@gnu.org; Wed, 18 Oct 2017 02:04:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38478) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4hSW-0005Nw-9E for guix-patches@gnu.org; Wed, 18 Oct 2017 02:04:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e4hSW-0002YG-0P for guix-patches@gnu.org; Wed, 18 Oct 2017 02:04:04 -0400 Subject: [bug#28885] [PATCH 8/9] gnu: Add ruby-mimemagic. Resent-Message-ID: From: Christopher Baines Date: Wed, 18 Oct 2017 07:03:35 +0100 Message-Id: <20171018060336.9641-8-mail@cbaines.net> In-Reply-To: <20171018060336.9641-1-mail@cbaines.net> References: <20171018060336.9641-1-mail@cbaines.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28885@debbugs.gnu.org * gnu/packages/ruby.scm (ruby-mimemagic): New variable. --- gnu/packages/ruby.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index edd7bbe03..45f7b9c86 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -3505,6 +3505,33 @@ that TURN is no longer being maintained.") (home-page "http://rubygems.org/gems/turn") (license license:expat))) +(define-public ruby-mimemagic + (package + (name "ruby-mimemagic") + (version "0.3.2") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "mimemagic" version)) + (sha256 + (base32 + "00ibc1mhvdfyfyl103xwb45621nwyqxf124cni5hyfhag0fn1c3q")))) + (build-system ruby-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + ;; This phase breaks the tests, as it patches some of the test data. + (delete 'patch-source-shebangs)))) + (native-inputs + `(("ruby-bacon" ,ruby-bacon))) + (synopsis "Ruby library for MIME detection by extension or content") + (description + "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by +extension or content, using the freedesktop.org.xml shared-mime-info +database.") + (home-page "https://github.com/minad/mimemagic") + (license license:expat))) + (define-public ruby-mime-types-data (package (name "ruby-mime-types-data") -- 2.14.2