[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#30689] [PATCH 08/39] gnu: Add ruby-mysql2.
From: |
Christopher Baines |
Subject: |
[bug#30689] [PATCH 08/39] gnu: Add ruby-mysql2. |
Date: |
Mon, 28 Jan 2019 17:35:49 +0000 |
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")
--
2.20.1
- [bug#30689] [PATCH 11/39] gnu: Add ruby-activemodel., (continued)
- [bug#30689] [PATCH 11/39] gnu: Add ruby-activemodel., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 35/39] gnu: Add ruby-sprockets., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 33/39] gnu: Add ruby-actionmailer., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 36/39] gnu: Add ruby-sprockets-rails., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 28/39] gnu: Add ruby-websocket-driver., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 38/39] gnu: Add ruby-activestorage., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 34/39] gnu: Add ruby-railties., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 27/39] gnu: Add ruby-websocket-extensions., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 37/39] gnu: Add ruby-marcel., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 02/39] gnu: ruby-minitest: Update to 5.11.3., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 08/39] gnu: Add ruby-mysql2.,
Christopher Baines <=
- [bug#30689] [PATCH 04/39] gnu: ruby-public-suffix: Enable tests., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 06/39] gnu: ruby-addressable: Enable tests and update., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 14/39] gnu: Add ruby-rspec-rerun., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 12/39] gnu: ruby-arel: Update to 9.0.0., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 10/39] gnu: ruby-activesupport: Update to 5.2.2., Christopher Baines, 2019/01/28
- [bug#30689] [PATCH 31/39] gnu: Add ruby-globalid., Christopher Baines, 2019/01/28