summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-01-05 22:45:06 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-01-05 22:49:20 -0500
commit4c8149a5f628fe2f6681d85aa9a9ed81d4e02b72 (patch)
tree9d7a3add77feb40c99a44d9bbeac1e151eeccab0
parentec47da8f494480368efc7845b5b7cedade1968a7 (diff)
gnu: ruby-asciidoctor: Install man page.
* gnu/packages/ruby.scm (ruby-asciidoctor) [phases] {install-man-page}: New phase.
-rw-r--r--gnu/packages/ruby.scm27
1 files changed, 18 insertions, 9 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 7e26bdc618..2537c5beb5 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1274,15 +1274,24 @@ syntax to the minimum while remaining clear.")
"1mpk3y69lqz9ywfkjmr40dm3mkabrnf92bb011qq1axj73yyrajv"))))
(build-system ruby-build-system)
(arguments
- `(#:test-target "test:all"
- #:phases
- (modify-phases %standard-phases
- (add-after 'extract-gemspec 'strip-version-requirements
- (lambda _
- (delete-file "Gemfile")
- (substitute* "asciidoctor.gemspec"
- (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
- (string-append stripped "\n"))))))))
+ (list
+ #:test-target "test:all"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'strip-version-requirements
+ (lambda _
+ (delete-file "Gemfile")
+ (substitute* "asciidoctor.gemspec"
+ (("(.*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
(list ruby-asciimath
ruby-coderay