gnu: ruby-asciidoctor: Install man page.
* gnu/packages/ruby.scm (ruby-asciidoctor) [phases] {install-man-page}: New phase.master
parent
ec47da8f49
commit
4c8149a5f6
|
@ -1274,15 +1274,24 @@ syntax to the minimum while remaining clear.")
|
||||||
"1mpk3y69lqz9ywfkjmr40dm3mkabrnf92bb011qq1axj73yyrajv"))))
|
"1mpk3y69lqz9ywfkjmr40dm3mkabrnf92bb011qq1axj73yyrajv"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:test-target "test:all"
|
(list
|
||||||
#:phases
|
#:test-target "test:all"
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
(add-after 'extract-gemspec 'strip-version-requirements
|
#~(modify-phases %standard-phases
|
||||||
(lambda _
|
(add-after 'extract-gemspec 'strip-version-requirements
|
||||||
(delete-file "Gemfile")
|
(lambda _
|
||||||
(substitute* "asciidoctor.gemspec"
|
(delete-file "Gemfile")
|
||||||
(("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
|
(substitute* "asciidoctor.gemspec"
|
||||||
(string-append stripped "\n"))))))))
|
(("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
|
||||||
|
(string-append stripped "\n")))))
|
||||||
|
(add-after 'install 'install-man-page
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(install-file (search-input-file
|
||||||
|
outputs (string-append "lib/ruby/vendor_ruby/"
|
||||||
|
"gems/asciidoctor-"
|
||||||
|
#$version
|
||||||
|
"/man/asciidoctor.1"))
|
||||||
|
(string-append #$output "/share/man/man1")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list ruby-asciimath
|
(list ruby-asciimath
|
||||||
ruby-coderay
|
ruby-coderay
|
||||||
|
|
Reference in New Issue