gnu: weechat: Enable documentation and man-pages.
* gnu/packages/irc.scm (weechat)[outputs](doc): New output. [configure-flags](ENABLE_MAN,ENABLE_DOC): New flags. [phases](move-doc): New phase. [native-inputs]: Add ruby-asciidoctor.
This commit is contained in:
parent
4fc9698def
commit
50489e3941
1 changed files with 14 additions and 0 deletions
|
@ -195,9 +195,11 @@ SILC and ICB protocols via plugins.")
|
||||||
(base32
|
(base32
|
||||||
"1pyb1yaw61cbdg1g4cc22px1wsh8wm0gsx1yzp684idyz25apzna"))))
|
"1pyb1yaw61cbdg1g4cc22px1wsh8wm0gsx1yzp684idyz25apzna"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
|
(outputs '("out" "doc"))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("gettext" ,gettext-minimal)
|
`(("gettext" ,gettext-minimal)
|
||||||
("pkg-config" ,pkg-config)
|
("pkg-config" ,pkg-config)
|
||||||
|
("ruby-asciidoctor" ,ruby-asciidoctor)
|
||||||
;; For tests.
|
;; For tests.
|
||||||
("cpputest" ,cpputest)))
|
("cpputest" ,cpputest)))
|
||||||
(inputs
|
(inputs
|
||||||
|
@ -217,7 +219,19 @@ SILC and ICB protocols via plugins.")
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags
|
`(#:configure-flags
|
||||||
(list "-DENABLE_PHP=OFF"
|
(list "-DENABLE_PHP=OFF"
|
||||||
|
"-DENABLE_MAN=ON"
|
||||||
|
"-DENABLE_DOC=ON"
|
||||||
"-DENABLE_TESTS=ON") ; ‘make test’ fails otherwise
|
"-DENABLE_TESTS=ON") ; ‘make test’ fails otherwise
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'move-doc
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(doc (assoc-ref outputs "doc"))
|
||||||
|
(from (string-append out "/share/doc/weechat"))
|
||||||
|
(to (string-append doc "/share/doc/weechat")))
|
||||||
|
(mkdir-p (string-append doc "/share/doc"))
|
||||||
|
(rename-file from to)))))
|
||||||
;; Tests hang indefinitely on non-Intel platforms.
|
;; Tests hang indefinitely on non-Intel platforms.
|
||||||
#:tests? ,(if (any (cute string-prefix? <> (or (%current-target-system)
|
#:tests? ,(if (any (cute string-prefix? <> (or (%current-target-system)
|
||||||
(%current-system)))
|
(%current-system)))
|
||||||
|
|
Reference in a new issue