unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob d7da63b6366a33eaf3dacc9563baf2b4de91f36e 3396 bytes (raw)
name: gnu/packages/ruby.scm 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
 
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 Pjotr Prins <pjotr.guix@thebird.nl>
;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
;;;
;;; 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)
                #:select (rl))
  #: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)
  #:use-module (guix utils)
  #:use-module (guix build-system gnu)
;;;  #:use-module (guix build-system trivial))
)

(define-public ruby
  (package
    (name "ruby")
    (version "2.1.3")
    (source
     (origin
      (method url-fetch)
      (uri (string-append "http://cache.ruby-lang.org/pub/ruby/2.1/"
                          "ruby-" version ".tar.gz"))
      ;;; (patch-flags '("p76"))
      (sha256
       (base32
        "00bz6jcbxgnllplk4b9lnyc3w8yd3pz5rn11rmca1s8cn6vvw608"))))
    (build-system gnu-build-system)
    (arguments
     `(#:test-target "test"
       #:parallel-tests? #f
       #:phases
        (alist-cons-after
         ;;; minor patch https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/45225/diff/
         'unpack 'patch-readline  
         (lambda _
           (substitute* '( 
                           "ext/readline/readline.c"
                        )
             (("Function ") "rl_hook_func_t ")))
        (alist-cons-before
         'configure 'replace-bin-sh
         (lambda _
           (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"
                          ;;; "tool/config.guess"
                        )
             (("/bin/sh") (which "sh"))))
          %standard-phases))))

    (inputs
     `(("readline" ,readline)
       ("autoconf" ,autoconf)
       ("openssl" ,openssl)
       ("libffi" ,libffi)
       ("gdbm" ,gdbm)
       ("zlib" ,zlib)
       ))

    (synopsis "Ruby")
    (home-page "https://www.ruby-lang.org/en/")
    (synopsis
     "Ruby programming language")
    (description
     "Ruby description")
    (license rl)))


debug log:

solving a13606c ...
found a13606c in https://yhetil.org/guix-devel/20140927122903.GA3999@thebird.nl/ ||
	https://yhetil.org/guix-devel/20140927130639.GA4139@thebird.nl/

applying [1/1] https://yhetil.org/guix-devel/20140927122903.GA3999@thebird.nl/
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
new file mode 100644
index 0000000..a13606c

1:63: trailing whitespace.
         'unpack 'patch-readline  
1:65: trailing whitespace.
           (substitute* '( 
Checking patch gnu/packages/ruby.scm...
1:105: new blank line at EOF.
+
Applied patch gnu/packages/ruby.scm cleanly.
warning: 3 lines add whitespace errors.

skipping https://yhetil.org/guix-devel/20140927130639.GA4139@thebird.nl/ for a13606c
index at:
100644 d7da63b6366a33eaf3dacc9563baf2b4de91f36e	gnu/packages/ruby.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).