ruby.scm
| 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu> |
| 3 | ;;; |
| 4 | ;;; This file is part of GNU Guix. |
| 5 | ;;; |
| 6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
| 7 | ;;; under the terms of the GNU General Public License as published by |
| 8 | ;;; the Free Software Foundation; either version 3 of the License, or (at |
| 9 | ;;; your option) any later version. |
| 10 | ;;; |
| 11 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
| 12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | ;;; GNU General Public License for more details. |
| 15 | ;;; |
| 16 | ;;; You should have received a copy of the GNU General Public License |
| 17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
| 18 | |
| 19 | (define-module (more packages ruby) |
| 20 | #:use-module ((guix licenses) #:prefix license:) |
| 21 | #:use-module (gnu packages) |
| 22 | #:use-module (guix packages) |
| 23 | #:use-module (guix download) |
| 24 | #:use-module (guix git-download) |
| 25 | #:use-module (guix utils) |
| 26 | #:use-module (guix build-system gnu) |
| 27 | #:use-module (guix build-system ruby) |
| 28 | #:use-module (gnu packages ncurses) |
| 29 | #:use-module (gnu packages ruby)) |
| 30 | |
| 31 | (define-public ruby-pry-doc |
| 32 | (package |
| 33 | (name "ruby-pry-doc") |
| 34 | (version "0.13.4") |
| 35 | (source |
| 36 | (origin |
| 37 | (method url-fetch) |
| 38 | (uri (rubygems-uri "pry-doc" version)) |
| 39 | (sha256 |
| 40 | (base32 |
| 41 | "036z1nsmrxnslf5xskbv6w59p4nb03bb0j3x23xw7v35sky5q0p7")))) |
| 42 | (build-system ruby-build-system) |
| 43 | (arguments |
| 44 | `(#:phases |
| 45 | (modify-phases %standard-phases |
| 46 | (add-before 'build 'fix-dependencies |
| 47 | (lambda _ |
| 48 | (substitute* "Rakefile" |
| 49 | (("require 'latest_ruby'") "")) |
| 50 | #t))))) |
| 51 | (propagated-inputs |
| 52 | `(("ruby-pry" ,ruby-pry) |
| 53 | ("ruby-yard" ,ruby-yard))) |
| 54 | (native-inputs |
| 55 | `(("ruby-rspec" ,ruby-rspec))) |
| 56 | (synopsis |
| 57 | "Pry Doc is a Pry REPL plugin. It provides extended documentation support for the |
| 58 | REPL by means of improving the `show-doc` and `show-source` commands. With help |
| 59 | of the plugin the commands are be able to display the source code and the docs |
| 60 | of Ruby methods and classes implemented in C. |
| 61 | documentation |
| 62 | ") |
| 63 | (description |
| 64 | "Pry Doc is a Pry REPL plugin. It provides extended documentation support for the |
| 65 | REPL by means of improving the `show-doc` and `show-source` commands. With help |
| 66 | of the plugin the commands are be able to display the source code and the docs |
| 67 | of Ruby methods and classes implemented in C. |
| 68 | documentation |
| 69 | ") |
| 70 | (home-page "https://github.com/pry/pry-doc") |
| 71 | (license license:expat))) |
| 72 | |
| 73 | (define-public ruby-trollop |
| 74 | (package |
| 75 | (name "ruby-trollop") |
| 76 | (version "2.9.9") |
| 77 | (source |
| 78 | (origin |
| 79 | (method url-fetch) |
| 80 | (uri (rubygems-uri "trollop" version)) |
| 81 | (sha256 |
| 82 | (base32 |
| 83 | "074h7lns72kg1dl5gvz5apl3xz1i0axbnbc01pf2kbw4q0lkpnp4")))) |
| 84 | (build-system ruby-build-system) |
| 85 | (arguments |
| 86 | `(#:tests? #f)) |
| 87 | (synopsis |
| 88 | "Trollop is a commandline option parser for Ruby that just gets out of your way.") |
| 89 | (description |
| 90 | "Trollop is a commandline option parser for Ruby that just gets out of your way.") |
| 91 | (home-page "") |
| 92 | (license license:expat))) |
| 93 | |
| 94 | (define-public ruby-wp2txt |
| 95 | (package |
| 96 | (name "ruby-wp2txt") |
| 97 | (version "0.9.1") |
| 98 | (source |
| 99 | (origin |
| 100 | (method url-fetch) |
| 101 | (uri (rubygems-uri "wp2txt" version)) |
| 102 | (sha256 |
| 103 | (base32 |
| 104 | "01l0r83ma3fp9zb94km4lqasvxpml2azd4dj36qzpm71c2pyhng4")))) |
| 105 | (build-system ruby-build-system) |
| 106 | (arguments |
| 107 | `(#:tests? #f)) |
| 108 | (propagated-inputs |
| 109 | `(("ruby-htmlentities" ,ruby-htmlentities) |
| 110 | ("ruby-nokogiri" ,ruby-nokogiri) |
| 111 | ("ruby-parallel" ,ruby-parallel) |
| 112 | ("ruby-trollop" ,ruby-trollop))) |
| 113 | (synopsis |
| 114 | "WP2TXT extracts plain text data from Wikipedia dump file (encoded in XML/compressed with Bzip2) stripping all the MediaWiki markups and other metadata.") |
| 115 | (description |
| 116 | "WP2TXT extracts plain text data from Wikipedia dump file (encoded in XML/compressed with Bzip2) stripping all the MediaWiki markups and other metadata.") |
| 117 | (home-page "http://github.com/yohasebe/wp2txt") |
| 118 | (license #f))) |
| 119 |