summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorBen Woodcroft <donttrustben@gmail.com>2017-06-02 21:56:05 -0500
committerBen Woodcroft <donttrustben@gmail.com>2017-06-02 22:58:46 -0500
commitfc29d5e61b5d00004ecb8c53a2a19f64f7f129f2 (patch)
treed5925baedbd8130c0b54c2ef938009c350164cbc /gnu
parentfb4074897b403549b603c52881fdf7c9535348ad (diff)
gnu: ruby-sdoc: Relax dependency requirement versions.
* gnu/packages/ruby.scm (ruby-sdoc)[arguments]: Relax dependency requirement versions.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/ruby.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index cc996bd865..8acd05075c 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -2229,9 +2229,15 @@ current line in an external editor.")
(arguments
`(#:phases
(modify-phases %standard-phases
- (add-before 'check 'set-rubylib
+ (add-before 'check 'set-rubylib-and-patch-gemfile
(lambda _
(setenv "RUBYLIB" "lib")
+ (substitute* "sdoc.gemspec"
+ (("s.add_runtime_dependency.*") "\n")
+ (("s.add_dependency.*") "\n"))
+ (substitute* "Gemfile"
+ (("gem \"rake\".*")
+ "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
#t)))))
(propagated-inputs
`(("ruby-json" ,ruby-json)))