me
/
guix
Archived
1
0
Fork 0

gnu: Add ruby-hydra-minimal.

* gnu/local.mk (dist_patch_DATA): Add ruby-hydra-minimal-no-byebug.patch.
* gnu/packages/patches/ruby-hydra-minimal-no-byebug.patch: New file.
* gnu/packages/ruby.scm (ruby-hydra): Refactor to inherit from ruby-hydra-minimal.
(ruby-hydra-minimal): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
master
Tom Fitzhenry 2022-06-24 21:08:34 +10:00 committed by Ludovic Courtès
parent 8ed15dedbe
commit bb907402a6
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
2 changed files with 26 additions and 11 deletions

View File

@ -1772,6 +1772,7 @@ dist_patch_DATA = \
%D%/packages/patches/rocm-comgr-3.1.0-dependencies.patch \ %D%/packages/patches/rocm-comgr-3.1.0-dependencies.patch \
%D%/packages/patches/rocm-opencl-runtime-4.3-noclinfo.patch \ %D%/packages/patches/rocm-opencl-runtime-4.3-noclinfo.patch \
%D%/packages/patches/rocm-opencl-runtime-4.3-noopencl.patch \ %D%/packages/patches/rocm-opencl-runtime-4.3-noopencl.patch \
%D%/packages/patches/ruby-hydra-minimal-no-byebug.patch \
%D%/packages/patches/ruby-mustache-1.1.1-fix-race-condition-tests.patch \ %D%/packages/patches/ruby-mustache-1.1.1-fix-race-condition-tests.patch \
%D%/packages/patches/ruby-sanitize-system-libxml.patch \ %D%/packages/patches/ruby-sanitize-system-libxml.patch \
%D%/packages/patches/rustc-1.54.0-src.patch \ %D%/packages/patches/rustc-1.54.0-src.patch \

View File

@ -3124,22 +3124,38 @@ two hashes.")
(home-page "https://github.com/liufengyun/hashdiff") (home-page "https://github.com/liufengyun/hashdiff")
(license license:expat))) (license license:expat)))
(define-public ruby-hydra (define-public ruby-hydra-minimal
;; No releases yet. ;; No releases yet.
(let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525") (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525")
(revision "0")) (revision "0"))
(package (package
(name "ruby-hydra") (name "ruby-hydra-minimal")
(version (git-version "0.0" revision commit)) (version (git-version "0.0" revision commit))
(home-page "https://github.com/hyphenation/hydra") (home-page "https://github.com/hyphenation/hydra")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (url home-page) (commit commit))) (uri (git-reference (url home-page) (commit commit)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
;; byebug is a non-essential debugging utility that brings in
;; many dependencies.
(patches (search-patches "ruby-hydra-minimal-no-byebug.patch"))
(sha256 (sha256
(base32 (base32
"1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f")))) "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f"))))
(build-system ruby-build-system) (build-system ruby-build-system)
(arguments
;; Avoid rspec dependency.
'(#:tests? #f))
(synopsis "Ruby hyphenation patterns")
(description
"ruby-hydra-minimal is a Ruby library for working with hyphenation patterns.
It is a low-dependency variant of ruby-hydra.")
(license license:expat))))
(define-public ruby-hydra
(package
(inherit ruby-hydra-minimal)
(name "ruby-hydra")
(arguments (arguments
'(#:phases (modify-phases %standard-phases '(#:phases (modify-phases %standard-phases
(add-after 'unpack 'make-files-writable (add-after 'unpack 'make-files-writable
@ -3153,10 +3169,8 @@ two hashes.")
(list ruby-rspec)) (list ruby-rspec))
(propagated-inputs (propagated-inputs
(list ruby-byebug)) (list ruby-byebug))
(synopsis "Ruby hyphenation patterns")
(description (description
"ruby-hydra is a Ruby library for working with hyphenation patterns.") "ruby-hydra is a Ruby library for working with hyphenation patterns.")))
(license license:expat))))
(define-public ruby-shindo (define-public ruby-shindo
(package (package