mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
gnu: guile-ac-d-bus: Build and install info manual.
* gnu/packages/guile-xyz.scm (guile-ac-d-bus) [arguments]: Use gexps. [phases]{build-doc, install-doc}: New phases. [native-inputs]: Add texinfo.
This commit is contained in:
parent
07909eb092
commit
34c8558af2
1 changed files with 40 additions and 32 deletions
|
@ -3846,9 +3846,11 @@ (define-public guile-ac-d-bus
|
|||
"0rl809qimhgz6b0rixakb42r2l4g53jr09a2g0s1hxgab0blz0kb"))))
|
||||
(build-system guile-build-system)
|
||||
(arguments
|
||||
`(#:implicit-inputs? #f ;needs nothing but Guile
|
||||
#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
|
||||
#:phases (modify-phases %standard-phases
|
||||
(list
|
||||
#:implicit-inputs? #f ;needs nothing but Guile
|
||||
#:compile-flags #~(list "--r6rs" "-Wunbound-variable" "-Warity-mismatch")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-before 'build 'adjust-for-guile
|
||||
(lambda _
|
||||
;; Adjust source file names for Guile.
|
||||
|
@ -3857,16 +3859,16 @@ (define (guile-sls->sls file)
|
|||
file (string-length ".guile.sls"))
|
||||
".sls"))
|
||||
|
||||
;; Remove files targeting other implementations:
|
||||
;; *.mosh.sls, etc.
|
||||
;; Remove files targeting other implementations: *.mosh.sls,
|
||||
;; etc.
|
||||
(for-each delete-file
|
||||
(find-files
|
||||
"compat"
|
||||
(lambda (file stat)
|
||||
(not (string-contains file ".guile.")))))
|
||||
|
||||
;; Rename *.guile.sls to *.sls so the ".guile" bit does
|
||||
;; not appear in .go file names.
|
||||
;; Rename *.guile.sls to *.sls so the ".guile" bit does not
|
||||
;; appear in .go file names.
|
||||
(for-each (lambda (file)
|
||||
(rename-file file (guile-sls->sls file)))
|
||||
(find-files "compat" "\\.guile\\.sls"))
|
||||
|
@ -3877,11 +3879,17 @@ (define (guile-sls->sls file)
|
|||
(rename-file directory
|
||||
(string-append "d-bus/"
|
||||
directory)))
|
||||
'("compat" "protocol"))
|
||||
|
||||
#t)))))
|
||||
'("compat" "protocol"))))
|
||||
(add-after 'build 'build-doc
|
||||
(lambda _
|
||||
(with-directory-excursion "docs"
|
||||
(invoke "makeinfo" "ac-d-bus"))))
|
||||
(add-after 'install 'install-doc
|
||||
(lambda _
|
||||
(install-file "docs/ac-d-bus.info"
|
||||
(string-append #$output "/share/info")))))))
|
||||
(native-inputs
|
||||
(list guile-3.0))
|
||||
(list guile-3.0 texinfo))
|
||||
(propagated-inputs
|
||||
(list guile-packrat))
|
||||
(synopsis "D-Bus protocol implementation in R6RS Scheme")
|
||||
|
|
Loading…
Reference in a new issue