gnu: Add ruby-rubyzip.

* gnu/packages/ruby.scm (ruby-rubyzip): New variable.

Co-authored by Ben Woodcroft <donttrustben@gmail.com>.
This commit is contained in:
Christopher Baines 2017-09-28 18:31:03 +10:00
parent 268643b94a
commit cb6bc5df1c
No known key found for this signature in database
GPG Key ID: 5E28A33B0B84F577
1 changed files with 35 additions and 0 deletions

View File

@ -1001,6 +1001,41 @@ Ruby Gems.")
(home-page "https://github.com/postmodern/rubygems-tasks") (home-page "https://github.com/postmodern/rubygems-tasks")
(license license:expat))) (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 (define-public ruby-ffi
(package (package
(name "ruby-ffi") (name "ruby-ffi")