mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 04:29:25 -05:00
gnu: ruby-rdoc: Update to 6.2.0.
* gnu/packages/ruby.scm (ruby-rdoc): Update to 6.2.0. [origin]: Fetch sources from git. [phases]{patch-gemspec, generate}: New phases. [native-inputs]{ruby-kpeg, ruby-racc, ruby-rubocop}: New native inputs.
This commit is contained in:
parent
439d47cdb1
commit
9304f989e6
1 changed files with 29 additions and 8 deletions
|
@ -8472,17 +8472,38 @@ (define-public ruby-kpeg
|
||||||
(define-public ruby-rdoc
|
(define-public ruby-rdoc
|
||||||
(package
|
(package
|
||||||
(name "ruby-rdoc")
|
(name "ruby-rdoc")
|
||||||
(version "6.0.4")
|
(version "6.2.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (rubygems-uri "rdoc" version))
|
(uri (git-reference
|
||||||
(sha256
|
(url "https://github.com/ruby/rdoc.git")
|
||||||
(base32
|
(commit (string-append "v" version))))
|
||||||
"0anv42cqcdc6g4n386mrva7mgav5i0c2ry3yzvzzc6z6hymkmcr7"))))
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0dhk29nidv93b5vnjvlm9gcixgn4i0jcyzrgxdk6pdg019bw4cj6"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-gemspec
|
||||||
|
;; TODO: Remove after next release is tagged.
|
||||||
|
(lambda _
|
||||||
|
(substitute* "rdoc.gemspec"
|
||||||
|
(("\"lib/rdoc/generator/template/darkfish/js/\
|
||||||
|
jquery\\.js\", ") ""))
|
||||||
|
#t))
|
||||||
|
(add-before 'build 'generate
|
||||||
|
;; 'gem build' doesn't honor Rakefile dependencies (see:
|
||||||
|
;; https://github.com/ruby/rdoc/issues/432#issuecomment-650808977).
|
||||||
|
(lambda _
|
||||||
|
(invoke "rake" "generate"))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("bundler" ,bundler)))
|
`(("bundler" ,bundler)
|
||||||
|
("ruby-kpeg" ,ruby-kpeg)
|
||||||
|
("ruby-racc" ,ruby-racc)
|
||||||
|
("ruby-rubocop" ,ruby-rubocop)))
|
||||||
(home-page "https://ruby.github.io/rdoc/")
|
(home-page "https://ruby.github.io/rdoc/")
|
||||||
(synopsis "HTML and command-line documentation utility")
|
(synopsis "HTML and command-line documentation utility")
|
||||||
(description "RDoc produces HTML and command-line documentation for Ruby
|
(description "RDoc produces HTML and command-line documentation for Ruby
|
||||||
|
|
Loading…
Reference in a new issue