2014-09-27 08:56:44 -04:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2014 Pjotr Prins <pjotr.guix@thebird.nl>
|
|
|
|
;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
|
gnu: Add 'file-name' fields for github source tarballs without a name.
* gnu/packages/aarddict.scm (aarddict), gnu/packages/algebra.scm (arb),
gnu/packages/audio.scm (jack-2, lvtk),
gnu/packages/bioinformatics.scm (bedops, bedtools, bowtie),
gnu/packages/game-development.scm (tiled),
gnu/packages/games.scm (minetest-data, minetest, retroarch),
gnu/packages/jrnl.scm (jrnl), gnu/packages/kde.scm (qjson),
gnu/packages/libevent.scm (libuv), gnu/packages/linux.scm (pflask),
gnu/packages/mail.scm (offlineimap, libetpan),
gnu/packages/maths.scm (arpack-ng), gnu/packages/ninja.scm (ninja),
gnu/packages/nutrition.scm (gourmet),
gnu/packages/python.scm (python-cairocffi), gnu/packages/rdf.scm (lrdf),
gnu/packages/ruby.scm (ruby-i18n), gnu/packages/sxiv.scm (sxiv): Add
'file-name' field to origin.
2015-02-27 12:23:27 -05:00
|
|
|
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
|
2014-11-15 11:26:23 -05:00
|
|
|
;;; Copyright © 2014 David Thompson <davet@gnu.org>
|
2014-09-27 08:56:44 -04:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages ruby)
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (gnu packages)
|
|
|
|
#:use-module (gnu packages compression)
|
|
|
|
#:use-module (gnu packages readline)
|
|
|
|
#:use-module (gnu packages openssl)
|
|
|
|
#:use-module (gnu packages autotools)
|
|
|
|
#:use-module (gnu packages libffi)
|
|
|
|
#:use-module (gnu packages gdbm)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
2015-02-23 18:22:31 -05:00
|
|
|
#:use-module (guix git-download)
|
2014-09-27 08:56:44 -04:00
|
|
|
#:use-module (guix utils)
|
2014-09-28 11:16:09 -04:00
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:use-module (guix build-system ruby))
|
2014-09-27 08:56:44 -04:00
|
|
|
|
|
|
|
(define-public ruby
|
|
|
|
(package
|
|
|
|
(name "ruby")
|
2015-04-13 19:56:01 -04:00
|
|
|
(version "2.2.2")
|
2014-09-27 08:56:44 -04:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
2014-10-27 02:34:26 -04:00
|
|
|
(uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
|
|
|
|
(version-major+minor version)
|
2014-10-31 18:57:30 -04:00
|
|
|
"/ruby-" version ".tar.xz"))
|
2014-09-27 08:56:44 -04:00
|
|
|
(sha256
|
|
|
|
(base32
|
2015-04-13 19:56:01 -04:00
|
|
|
"0qj48a8ji8qj1sllsrhb6y65frwr77bvr08xikj86w5mib8baczh"))))
|
2014-09-27 08:56:44 -04:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:test-target "test"
|
|
|
|
#:parallel-tests? #f
|
|
|
|
#:phases
|
2014-10-31 18:57:30 -04:00
|
|
|
(alist-cons-before
|
|
|
|
'configure 'replace-bin-sh
|
2014-09-27 08:56:44 -04:00
|
|
|
(lambda _
|
2014-10-31 18:57:30 -04:00
|
|
|
(substitute* '("Makefile.in"
|
|
|
|
"ext/pty/pty.c"
|
|
|
|
"io.c"
|
|
|
|
"lib/mkmf.rb"
|
|
|
|
"process.c"
|
|
|
|
"test/rubygems/test_gem_ext_configure_builder.rb"
|
|
|
|
"test/rdoc/test_rdoc_parser.rb"
|
|
|
|
"test/ruby/test_rubyoptions.rb"
|
|
|
|
"test/ruby/test_process.rb"
|
|
|
|
"test/ruby/test_system.rb"
|
|
|
|
"tool/rbinstall.rb")
|
|
|
|
(("/bin/sh") (which "sh"))))
|
|
|
|
%standard-phases)))
|
2014-09-27 08:56:44 -04:00
|
|
|
(inputs
|
|
|
|
`(("readline" ,readline)
|
|
|
|
("openssl" ,openssl)
|
|
|
|
("libffi" ,libffi)
|
|
|
|
("gdbm" ,gdbm)
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
(native-search-paths
|
|
|
|
(list (search-path-specification
|
|
|
|
(variable "GEM_PATH")
|
packages: Add 'file-type' field to 'search-path-specification'.
Fixes <http://bugs.gnu.org/18033>.
* guix/packages.scm (<search-path-specification>): Rename 'directories'
field to 'files'. Add 'file-type'.
(search-path-specification->sexp): Honor 'file-type'.
* gnu/packages/autotools.scm, gnu/packages/bootstrap.scm,
gnu/packages/cross-base.scm, gnu/packages/games.scm,
gnu/packages/gcc.scm, gnu/packages/glib.scm,
gnu/packages/guile.scm, gnu/packages/man.scm,
gnu/packages/perl.scm, gnu/packages/pkg-config.scm,
gnu/packages/python.scm, gnu/packages/ruby.scm,
gnu/packages/xfce.scm: Change 'directories' to 'files'.
* tests/packages.scm ("search paths"): Change 'directories' field to
'files'.
* guix/scripts/environment.scm (for-each-search-path): Likewise.
2014-12-27 17:22:08 -05:00
|
|
|
(files (list (string-append "lib/ruby/gems/"
|
|
|
|
(version-major+minor version)
|
|
|
|
".0"))))))
|
2014-10-27 02:34:26 -04:00
|
|
|
(synopsis "Programming language interpreter")
|
2014-09-27 08:56:44 -04:00
|
|
|
(description "Ruby is a dynamic object-oriented programming language with
|
|
|
|
a focus on simplicity and productivity.")
|
|
|
|
(home-page "https://ruby-lang.org")
|
|
|
|
(license license:ruby)))
|
|
|
|
|
2014-10-27 01:30:09 -04:00
|
|
|
(define-public ruby-1.8
|
|
|
|
(package (inherit ruby)
|
|
|
|
(version "1.8.7-p374")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
2014-10-27 02:34:26 -04:00
|
|
|
(uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
|
|
|
|
(version-major+minor version)
|
|
|
|
"/ruby-" version ".tar.bz2"))
|
2014-10-27 01:30:09 -04:00
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1qq7khilwkayrhwmzlxk83scrmiqfi7lgsn4c63znyvz2c1lgqxl"))))
|
|
|
|
(native-search-paths '())
|
|
|
|
(arguments
|
|
|
|
`(#:test-target "test"
|
|
|
|
#:parallel-tests? #f
|
|
|
|
#:phases
|
|
|
|
(alist-cons-before
|
|
|
|
'configure 'replace-bin-sh
|
|
|
|
(lambda _
|
|
|
|
(substitute* '("Makefile.in"
|
|
|
|
"ext/pty/pty.c"
|
|
|
|
"io.c"
|
|
|
|
"lib/mkmf.rb"
|
|
|
|
"process.c")
|
|
|
|
(("/bin/sh") (which "sh"))))
|
|
|
|
%standard-phases)))))
|
|
|
|
|
2015-02-23 18:22:31 -05:00
|
|
|
(define-public ruby-hoe
|
|
|
|
(package
|
|
|
|
(name "ruby-hoe")
|
|
|
|
(version "3.13.1")
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/seattlerb/hoe.git")
|
|
|
|
(commit "0c11836"))) ; no release tags :(
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0i8dimf8kxcjgqj9x65bbi3l6hc9p9gbfbb1vmrz42764a4jjbz9"))) )
|
|
|
|
(build-system ruby-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:phases (alist-replace
|
|
|
|
'build
|
|
|
|
(lambda _ (zero? (system* "rake" "gem")))
|
|
|
|
%standard-phases)))
|
|
|
|
(synopsis "Ruby project management helper")
|
|
|
|
(description
|
|
|
|
"Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
|
|
|
|
maintain, and release projects and includes a dynamic plug-in system allowing
|
|
|
|
for easy extensibility. Hoe ships with plug-ins for all the usual project
|
|
|
|
tasks including rdoc generation, testing, packaging, deployment, and
|
|
|
|
announcement.")
|
|
|
|
(home-page "http://www.zenspider.com/projects/hoe.html")
|
|
|
|
(license license:expat)))
|
|
|
|
|
2014-09-28 11:16:09 -04:00
|
|
|
(define-public ruby-i18n
|
|
|
|
(package
|
|
|
|
(name "ruby-i18n")
|
|
|
|
(version "0.6.11")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/svenfuchs/i18n/archive/v"
|
|
|
|
version ".tar.gz"))
|
gnu: Add 'file-name' fields for github source tarballs without a name.
* gnu/packages/aarddict.scm (aarddict), gnu/packages/algebra.scm (arb),
gnu/packages/audio.scm (jack-2, lvtk),
gnu/packages/bioinformatics.scm (bedops, bedtools, bowtie),
gnu/packages/game-development.scm (tiled),
gnu/packages/games.scm (minetest-data, minetest, retroarch),
gnu/packages/jrnl.scm (jrnl), gnu/packages/kde.scm (qjson),
gnu/packages/libevent.scm (libuv), gnu/packages/linux.scm (pflask),
gnu/packages/mail.scm (offlineimap, libetpan),
gnu/packages/maths.scm (arpack-ng), gnu/packages/ninja.scm (ninja),
gnu/packages/nutrition.scm (gourmet),
gnu/packages/python.scm (python-cairocffi), gnu/packages/rdf.scm (lrdf),
gnu/packages/ruby.scm (ruby-i18n), gnu/packages/sxiv.scm (sxiv): Add
'file-name' field to origin.
2015-02-27 12:23:27 -05:00
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
2014-09-28 11:16:09 -04:00
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1fdhnhh1p5g8vibv44d770z8nq208zrms3m2nswdvr54072y1m6k"))))
|
|
|
|
(build-system ruby-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:tests? #f)) ; requires bundler
|
|
|
|
(synopsis "Internationalization library for Ruby")
|
|
|
|
(description "Ruby i18n is an internationalization and localization
|
|
|
|
solution for Ruby programs. It features translation and localization,
|
|
|
|
interpolation of values to translations, pluralization, customizable
|
|
|
|
transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
|
|
|
|
translation data, custom key/scope separator, custom exception handlers, and
|
|
|
|
an extensible architecture with a swappable backend.")
|
|
|
|
(home-page "http://github.com/svenfuchs/i18n")
|
|
|
|
(license license:expat)))
|
2015-05-27 21:33:17 -04:00
|
|
|
|
|
|
|
;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
|
|
|
|
;; dependencies use RSpec for their test suites! To avoid these circular
|
|
|
|
;; dependencies, we disable tests for all of the RSpec-related packages.
|
|
|
|
(define ruby-rspec-support
|
|
|
|
(package
|
|
|
|
(name "ruby-rspec-support")
|
|
|
|
(version "3.2.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"https://github.com/rspec/rspec-support/archive/v"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1pvzfrqgy0z0gwmdgjp9f2vz1d9c0cajyzfqj9z8i2ssxnzmj4bv"))))
|
|
|
|
(build-system ruby-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:tests? #f)) ; avoid dependency cycles
|
|
|
|
(synopsis "RSpec support library")
|
|
|
|
(description "Support utilities for RSpec gems.")
|
|
|
|
(home-page "https://github.com/rspec/rspec-support")
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
(define-public ruby-rspec-core
|
|
|
|
(package
|
|
|
|
(name "ruby-rspec-core")
|
|
|
|
(version "3.2.3")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"https://github.com/rspec/rspec-core/archive/v"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1clsa4lkh5c9c7xc3xa336ym00ycr67pchpg1bv4y3fz5hvzw8ki"))))
|
|
|
|
(build-system ruby-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:tests? #f)) ; avoid dependency cycles
|
|
|
|
(propagated-inputs
|
|
|
|
`(("ruby-rspec-support" ,ruby-rspec-support)))
|
|
|
|
(synopsis "RSpec core library")
|
|
|
|
(description "Rspec-core provides the RSpec test runner and example
|
|
|
|
groups.")
|
|
|
|
(home-page "https://github.com/rspec/rspec-core")
|
|
|
|
(license license:expat)))
|
2015-05-27 21:34:47 -04:00
|
|
|
|
|
|
|
(define ruby-diff-lcs-for-rspec
|
|
|
|
(package
|
|
|
|
(name "ruby-diff-lcs")
|
|
|
|
(version "1.2.5")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"https://github.com/halostatue/diff-lcs/archive/v"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0kmfz2qdwbfjf97rx27hh9fm39mv3z9avjmvsajqnb5wxj2l5l4s"))))
|
|
|
|
(build-system ruby-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:tests? #f)) ; avoid dependency cycles
|
|
|
|
(synopsis "Compute the difference between two Enumerable sequences")
|
|
|
|
(description "Diff::LCS computes the difference between two Enumerable
|
|
|
|
sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
|
|
|
|
It includes utilities to create a simple HTML diff output format and a
|
|
|
|
standard diff-like tool.")
|
|
|
|
(home-page "https://github.com/halostatue/diff-lcs")
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
(define-public ruby-rspec-expectations
|
|
|
|
(package
|
|
|
|
(name "ruby-rspec-expectations")
|
|
|
|
(version "3.2.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"https://github.com/rspec/rspec-expectations/archive/v"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0h0rpprbh6h59gmksiyi1b8w6cvcai4wdbkikajwx3w1asxi6f7x"))))
|
|
|
|
(build-system ruby-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:tests? #f)) ; avoid dependency cycles
|
|
|
|
(propagated-inputs
|
|
|
|
`(("ruby-rspec-support" ,ruby-rspec-support)
|
|
|
|
("ruby-diff-lcs" ,ruby-diff-lcs-for-rspec)))
|
|
|
|
(synopsis "RSpec expecations library")
|
|
|
|
(description "Rspec-expectations provides a simple API to express expected
|
|
|
|
outcomes of a code example.")
|
|
|
|
(home-page "https://github.com/rspec/rspec-expectations")
|
|
|
|
(license license:expat)))
|
2015-05-27 21:35:43 -04:00
|
|
|
|
|
|
|
(define-public ruby-rspec-mocks
|
|
|
|
(package
|
|
|
|
(name "ruby-rspec-mocks")
|
|
|
|
(version "3.2.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"https://github.com/rspec/rspec-mocks/archive/v"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1xzxsg0idxkg7czmjgqq10lcd821ibw1hjzn404sk9j6rw0fbx2g"))))
|
|
|
|
(build-system ruby-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:tests? #f)) ; avoid dependency cycles
|
|
|
|
(propagated-inputs
|
|
|
|
`(("ruby-rspec-support" ,ruby-rspec-support)
|
|
|
|
("ruby-diff-lcs" ,ruby-diff-lcs-for-rspec)))
|
|
|
|
(synopsis "RSpec stubbing and mocking library")
|
|
|
|
(description "Rspec-mocks provides RSpec's \"test double\" framework, with
|
|
|
|
support for stubbing and mocking.")
|
|
|
|
(home-page "https://github.com/rspec/rspec-mocks")
|
|
|
|
(license license:expat)))
|
2015-05-27 21:36:24 -04:00
|
|
|
|
|
|
|
(define-public ruby-rspec
|
|
|
|
(package
|
|
|
|
(name "ruby-rspec")
|
|
|
|
(version "3.2.0")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"https://github.com/rspec/rspec/archive/v"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1jg38dbaknsdhiav5vnrwfccg524fwcg6sq1715441vx1xl6p54q"))))
|
|
|
|
(build-system ruby-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:tests? #f)) ; avoid dependency cycles
|
|
|
|
(propagated-inputs
|
|
|
|
`(("ruby-rspec-core" ,ruby-rspec-core)
|
|
|
|
("ruby-rspec-mocks" ,ruby-rspec-mocks)
|
|
|
|
("ruby-rspec-expectations" ,ruby-rspec-expectations)))
|
|
|
|
(synopsis "Behavior-driven development framework for Ruby")
|
|
|
|
(description "RSpec is a behavior-driven development (BDD) framework for
|
|
|
|
Ruby. This meta-package includes the RSpec test runner, along with the
|
|
|
|
expectations and mocks frameworks.")
|
|
|
|
(home-page "http://rspec.info/")
|
|
|
|
(license license:expat)))
|
2015-05-27 21:37:06 -04:00
|
|
|
|
|
|
|
;; Bundler is yet another source of circular dependencies, so we must disable
|
|
|
|
;; its test suite as well.
|
|
|
|
(define-public bundler
|
|
|
|
(package
|
|
|
|
(name "bundler")
|
|
|
|
(version "1.9.9")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/bundler/bundler/archive/v"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"08flx3n9hb3yz8mm5k16cdz0sb7g774f6vxn6gc3wfh5la83vfyx"))))
|
|
|
|
(build-system ruby-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:tests? #f)) ; avoid dependency cycles
|
|
|
|
(synopsis "Ruby gem bundler")
|
|
|
|
(description "Bundler automatically downloads and installs a list of gems
|
|
|
|
specified in a \"Gemfile\", as well as their dependencies.")
|
|
|
|
(home-page "http://bundler.io/")
|
|
|
|
(license license:expat)))
|
2015-05-27 21:38:28 -04:00
|
|
|
|
|
|
|
(define-public ruby-useragent
|
|
|
|
(package
|
|
|
|
(name "ruby-useragent")
|
|
|
|
(version "0.13.3")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"https://github.com/gshutler/useragent/archive/v"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1hj00fw06i0y3rwxxhxmnrqxhpnffv4zfqx2sqqpc5qc4fdvd2x9"))))
|
|
|
|
(build-system ruby-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:test-target "spec"))
|
|
|
|
(native-inputs
|
|
|
|
`(("ruby-rspec" ,ruby-rspec)
|
|
|
|
("bundler" ,bundler)))
|
|
|
|
(synopsis "HTTP user agent parser for Ruby")
|
|
|
|
(description "UserAgent is a Ruby library that parses and compares HTTP
|
|
|
|
User Agents.")
|
|
|
|
(home-page "https://github.com/gshutler/useragent")
|
|
|
|
(license license:expat)))
|