[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#28583] [PATCH 7/8] gnu: Add ruby-rubyzip.
From: |
Christopher Baines |
Subject: |
[bug#28583] [PATCH 7/8] gnu: Add ruby-rubyzip. |
Date: |
Sat, 30 Sep 2017 09:19:34 +0100 |
* gnu/packages/ruby.scm (ruby-rubyzip): New variable.
Co-authored by Ben Woodcroft <address@hidden>.
---
gnu/packages/ruby.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 3b0a67b9d..019307629 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1001,6 +1001,41 @@ Ruby Gems.")
(home-page "https://github.com/postmodern/rubygems-tasks")
(license license:expat)))
+(define-public ruby-rubyzip
+ (package
+ (name "ruby-rubyzip")
+ (version "1.2.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "rubyzip" version))
+ (sha256
+ (base32
+ "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
+ (build-system ruby-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'patch-tests
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "test/gentestfiles.rb"
+ (("/usr/bin/zip")
+ (string-append
+ (assoc-ref inputs "zip") "/bin/zip")))
+ (substitute* "test/input_stream_test.rb"
+ (("/usr/bin/env ruby") (which "ruby")))
+ #t)))))
+ (native-inputs
+ `(("bundler" ,bundler)
+ ("ruby-simplecov" ,ruby-simplecov)
+ ("zip" ,zip)
+ ("unzip" ,unzip)))
+ (synopsis "Ruby module is for reading and writing zip files")
+ (description
+ "The rubyzip module provides ways to read from and create zip files.")
+ (home-page "http://github.com/rubyzip/rubyzip")
+ (license license:bsd-2)))
+
(define-public ruby-ffi
(package
(name "ruby-ffi")
--
2.14.1
- bug#28583: [PATCH 7/7] gnu: Add es-dump-restore., (continued)
- [bug#28583] [PATCH 1/8] gnu: Add ruby-httpclient., Christopher Baines, 2017/09/30
- [bug#28583] [PATCH 6/8] gnu: Add ruby-progress_bar., Christopher Baines, 2017/09/30
- [bug#28583] [PATCH 3/8] gnu: Add ruby-options., Christopher Baines, 2017/09/30
- [bug#28583] [PATCH 8/8] gnu: Add ruby-es-dump-restore., Christopher Baines, 2017/09/30
- [bug#28583] [PATCH 4/8] gnu: Add ruby-code-statistics., Christopher Baines, 2017/09/30
- [bug#28583] [PATCH 2/8] gnu: Add ruby-multi-json., Christopher Baines, 2017/09/30
- [bug#28583] [PATCH 5/8] gnu: Add ruby-highline., Christopher Baines, 2017/09/30
- [bug#28583] [PATCH 7/8] gnu: Add ruby-rubyzip.,
Christopher Baines <=