From patchwork Mon Jan 28 17:35:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 899 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 B19BF16AEA; Mon, 28 Jan 2019 17:43:01 +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=unavailable 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 6267716AE7 for ; Mon, 28 Jan 2019 17:43:01 +0000 (GMT) Received: from localhost ([127.0.0.1]:35979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goAw0-0004nD-IG for patchwork@mira.cbaines.net; Mon, 28 Jan 2019 12:43:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goAuA-0003Hd-Ow for guix-patches@gnu.org; Mon, 28 Jan 2019 12:41:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goAu8-0004fL-Na for guix-patches@gnu.org; Mon, 28 Jan 2019 12:41:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50196) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goAu8-0004eq-G1 for guix-patches@gnu.org; Mon, 28 Jan 2019 12:41:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1goAu8-0001cK-Ct for guix-patches@gnu.org; Mon, 28 Jan 2019 12:41:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#30689] [PATCH 08/39] gnu: Add ruby-mysql2. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 28 Jan 2019 17:41:04 +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.15486972176105 (code B ref 30689); Mon, 28 Jan 2019 17:41:04 +0000 Received: (at 30689) by debbugs.gnu.org; 28 Jan 2019 17:40:17 +0000 Received: from localhost ([127.0.0.1]:49467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goAtN-0001aJ-79 for submit@debbugs.gnu.org; Mon, 28 Jan 2019 12:40:17 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:59176 helo=mira.cbaines.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goApa-0001KW-Fc for 30689@debbugs.gnu.org; Mon, 28 Jan 2019 12:36:23 -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 5037016AF0 for <30689@debbugs.gnu.org>; Mon, 28 Jan 2019 17:36:21 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 7972d831 for <30689@debbugs.gnu.org>; Mon, 28 Jan 2019 17:36:20 +0000 (UTC) From: Christopher Baines Date: Mon, 28 Jan 2019 17:35:49 +0000 Message-Id: <20190128173620.27999-8-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 Required for ruby-parallel. * gnu/packages/ruby.scm (ruby-mysql2): New variable. --- gnu/packages/ruby.scm | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 19c0734fc9..c202b5770d 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -1938,6 +1938,51 @@ specs for Ruby implementations in ruby/spec.") (home-page "http://rubyspec.org") (license license:expat))) +(define-public ruby-mysql2 + (package + (name "ruby-mysql2") + (version "0.5.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/brianmario/mysql2.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv")))) + (build-system ruby-build-system) + (arguments + '(;; TODO: Tests require a running MySQL/MariaDB service + #:tests? #f + #:phases + (modify-phases %standard-phases + (replace 'replace-git-ls-files + (lambda _ + (substitute* "mysql2.gemspec" + (("git ls-files") "echo")))) + (add-before 'build 'compile + (lambda _ + (invoke "rake" "compile"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "rspec" "-Ilib" "-Iext")) + #t))))) + (inputs + `(("mariadb" ,mariadb) + ("zlib" ,zlib))) + (native-inputs + `(("ruby-rspec" ,ruby-rspec) + ("ruby-rake-compiler" ,ruby-rake-compiler))) + (synopsis "MySQL library for Ruby, binding to libmysql") + (description + "This package provides a simple, fast MySQL library for Ruby, binding to +libmysql.") + (home-page "https://github.com/brianmario/mysql2") + (license license:expat))) + (define-public ruby-blankslate (package (name "ruby-blankslate")