1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014 Pjotr Prins <pjotr.guix@thebird.nl>
3 ;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014 David Thompson <davet@gnu.org>
7 ;;; This file is part of GNU Guix.
9 ;;; GNU Guix is free software; you can redistribute it and/or modify it
10 ;;; under the terms of the GNU General Public License as published by
11 ;;; the Free Software Foundation; either version 3 of the License, or (at
12 ;;; your option) any later version.
14 ;;; GNU Guix is distributed in the hope that it will be useful, but
15 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;;; GNU General Public License for more details.
19 ;;; You should have received a copy of the GNU General Public License
20 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22 (define-module (gnu packages ruby)
23 #:use-module ((guix licenses) #:prefix license:)
24 #:use-module (gnu packages)
25 #:use-module (gnu packages compression)
26 #:use-module (gnu packages readline)
27 #:use-module (gnu packages openssl)
28 #:use-module (gnu packages autotools)
29 #:use-module (gnu packages libffi)
30 #:use-module (gnu packages gdbm)
31 #:use-module (guix packages)
32 #:use-module (guix download)
33 #:use-module (guix git-download)
34 #:use-module (guix utils)
35 #:use-module (guix build-system gnu)
36 #:use-module (guix build-system ruby))
45 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
46 (version-major+minor version)
47 "/ruby-" version ".tar.xz"))
50 "0qj48a8ji8qj1sllsrhb6y65frwr77bvr08xikj86w5mib8baczh"))))
51 (build-system gnu-build-system)
53 `(#:test-target "test"
57 'configure 'replace-bin-sh
59 (substitute* '("Makefile.in"
64 "test/rubygems/test_gem_ext_configure_builder.rb"
65 "test/rdoc/test_rdoc_parser.rb"
66 "test/ruby/test_rubyoptions.rb"
67 "test/ruby/test_process.rb"
68 "test/ruby/test_system.rb"
70 (("/bin/sh") (which "sh"))))
73 `(("readline" ,readline)
79 (list (search-path-specification
81 (files (list (string-append "lib/ruby/gems/"
82 (version-major+minor version)
84 (synopsis "Programming language interpreter")
85 (description "Ruby is a dynamic object-oriented programming language with
86 a focus on simplicity and productivity.")
87 (home-page "https://ruby-lang.org")
88 (license license:ruby)))
90 (define-public ruby-1.8
91 (package (inherit ruby)
92 (version "1.8.7-p374")
96 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
97 (version-major+minor version)
98 "/ruby-" version ".tar.bz2"))
101 "1qq7khilwkayrhwmzlxk83scrmiqfi7lgsn4c63znyvz2c1lgqxl"))))
102 (native-search-paths '())
104 `(#:test-target "test"
108 'configure 'replace-bin-sh
110 (substitute* '("Makefile.in"
115 (("/bin/sh") (which "sh"))))
116 %standard-phases)))))
118 (define-public ruby-hoe
125 (url "https://github.com/seattlerb/hoe.git")
126 (commit "0c11836"))) ; no release tags :(
129 "0i8dimf8kxcjgqj9x65bbi3l6hc9p9gbfbb1vmrz42764a4jjbz9"))) )
130 (build-system ruby-build-system)
132 '(#:phases (alist-replace
134 (lambda _ (zero? (system* "rake" "gem")))
136 (synopsis "Ruby project management helper")
138 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
139 maintain, and release projects and includes a dynamic plug-in system allowing
140 for easy extensibility. Hoe ships with plug-ins for all the usual project
141 tasks including rdoc generation, testing, packaging, deployment, and
143 (home-page "http://www.zenspider.com/projects/hoe.html")
144 (license license:expat)))
146 (define-public ruby-i18n
152 (uri (string-append "https://github.com/svenfuchs/i18n/archive/v"
154 (file-name (string-append name "-" version ".tar.gz"))
157 "1fdhnhh1p5g8vibv44d770z8nq208zrms3m2nswdvr54072y1m6k"))))
158 (build-system ruby-build-system)
160 '(#:tests? #f)) ; requires bundler
161 (synopsis "Internationalization library for Ruby")
162 (description "Ruby i18n is an internationalization and localization
163 solution for Ruby programs. It features translation and localization,
164 interpolation of values to translations, pluralization, customizable
165 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
166 translation data, custom key/scope separator, custom exception handlers, and
167 an extensible architecture with a swappable backend.")
168 (home-page "http://github.com/svenfuchs/i18n")
169 (license license:expat)))