[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/10: gnu: Add ruby-ptools.
From: |
guix-commits |
Subject: |
02/10: gnu: Add ruby-ptools. |
Date: |
Wed, 27 May 2020 15:52:56 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit af59d4b43d711c1033b16b0a94d7eaef3de770eb
Author: Marius Bakke <marius@devup.no>
AuthorDate: Wed May 27 15:07:11 2020 +0200
gnu: Add ruby-ptools.
* gnu/packages/ruby.scm (ruby-ptools): New public variable.
---
gnu/packages/ruby.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 94b1695..cb9495a 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1799,6 +1799,41 @@ and inspect the environment.")
(home-page "https://github.com/e2/nenv")
(license license:expat)))
+(define-public ruby-ptools
+ (package
+ (name "ruby-ptools")
+ (version "1.3.5")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "ptools" version))
+ (sha256
+ (base32
+ "1jb1h1nsk9zwykpniw8filbsk26kjsdlpk5wz6w0zyamcd41h87j"))))
+ (build-system ruby-build-system)
+ (arguments
+ '(#:phases (modify-phases %standard-phases
+ (add-after 'unpack 'patch-/bin/ls
+ (lambda _
+ (substitute* "test/test_binary.rb"
+ (("/bin/ls")
+ (which "ls")))
+ #t))
+ (add-before 'install 'create-gem
+ (lambda _
+ ;; Do not attempt to sign the gem.
+ (substitute* "Rakefile"
+ (("spec\\.signing_key = .*")
+ ""))
+ (invoke "rake" "gem:create"))))))
+ (synopsis "Extra methods for Ruby's @code{File} class")
+ (description
+ "The @dfn{ptools} (power tools) library extends Ruby's core @code{File}
+class with many additional methods modelled after common POSIX tools, such as
+@code{File.which} for finding executables, @code{File.tail} to print the last
+lines of a file, @code{File.wc} to count words, and so on.")
+ (home-page "https://github.com/djberg96/ptools")
+ (license license:artistic2.0)))
+
(define-public ruby-permutation
(package
(name "ruby-permutation")
- branch master updated (db38840 -> ef64f9c), guix-commits, 2020/05/27
- 01/10: gnu: hdf4: Provide an absolute reference to libjpeg., guix-commits, 2020/05/27
- 02/10: gnu: Add ruby-ptools.,
guix-commits <=
- 03/10: gnu: Add ruby-mkmf-lite., guix-commits, 2020/05/27
- 04/10: gnu: Add ruby-sys-filesystem., guix-commits, 2020/05/27
- 05/10: gnu: ruby-thor: Update to 1.0.1., guix-commits, 2020/05/27
- 09/10: gnu: Add Universal Ctags., guix-commits, 2020/05/27
- 06/10: gnu: Add facter., guix-commits, 2020/05/27
- 08/10: gnu: Add packcc., guix-commits, 2020/05/27
- 10/10: gnu: jucipp: Update to 1.6.0., guix-commits, 2020/05/27
- 07/10: gnu: code.scm: Sort module imports., guix-commits, 2020/05/27