gnu: docbook-dsssl: Switch to copy-build-system.
* gnu/packages/docbook.scm (docbook-dsssl)[build-system]: Switch to copy-build-system. [arguments]: Add phase to install documentation as separate output. (docbook-dsssl-doc)[build-system]: Switch to copy-build-system. [arguments]: Adapt to new build-system. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
parent
b7947e53d9
commit
cbab569e08
@ -429,25 +429,22 @@ for DocBook.")
|
||||
(sha256
|
||||
(base32
|
||||
"1g72y2yyc2k89kzs0lvrb9n7hjayw1hdskfpplpz97pf1c99wcig"))))
|
||||
(build-system trivial-build-system)
|
||||
(build-system copy-build-system)
|
||||
(outputs '("out" "doc"))
|
||||
(arguments
|
||||
`(#:modules ((guix build utils))
|
||||
#:builder
|
||||
(begin
|
||||
(use-modules (guix build utils))
|
||||
(let ((source (assoc-ref %build-inputs "source"))
|
||||
(dtd (string-append (assoc-ref %outputs "out")
|
||||
"/sgml/dtd/docbook"))
|
||||
(docbook-dsssl-doc (assoc-ref %build-inputs "docbook-dsssl-doc"))
|
||||
(doc (assoc-ref %outputs "doc"))
|
||||
(tar (assoc-ref %build-inputs "tar"))
|
||||
(bzip2 (assoc-ref %build-inputs "bzip2")))
|
||||
(setenv "PATH" (string-append tar "/bin" ":" bzip2 "/bin"))
|
||||
(mkdir-p dtd)
|
||||
(invoke "tar" "-xf" source "-C" dtd)
|
||||
;; The doc output contains 1.4 MiB of HTML documentation.
|
||||
(symlink docbook-dsssl-doc doc)))))
|
||||
(list
|
||||
#:install-plan
|
||||
#~`(("./" "sgml/dtd/docbook/"
|
||||
#:exclude ("doc" "docsrc")))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
;; The doc output contains 1.4 MiB of HTML documentation.
|
||||
(add-after 'install 'install-doc
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(mkdir-p (string-append #$output:doc "/share/doc"))
|
||||
(symlink (assoc-ref inputs "docbook-dsssl-doc")
|
||||
(format #f "~a/share/doc/~a-~a"
|
||||
#$output:doc #$name #$version)))))))
|
||||
(inputs
|
||||
(list docbook-dsssl-doc))
|
||||
(native-inputs
|
||||
@ -470,26 +467,11 @@ for DocBook.")
|
||||
(sha256
|
||||
(base32
|
||||
"1plp5ngc96pbna4rwglp9glcadnirbm3hlcjb4gjvq1f8biic9lz"))))
|
||||
(build-system trivial-build-system)
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
`(#:modules ((guix build utils))
|
||||
#:builder
|
||||
(begin
|
||||
(use-modules (guix build utils))
|
||||
(let ((source (assoc-ref %build-inputs "source"))
|
||||
(docdir (string-append (assoc-ref %outputs "out")
|
||||
"/share/doc/" "docbook-dsssl-" ,version))
|
||||
(tar (assoc-ref %build-inputs "tar"))
|
||||
(bzip2 (assoc-ref %build-inputs "bzip2")))
|
||||
(setenv "PATH" (string-append tar "/bin" ":" bzip2 "/bin"))
|
||||
(mkdir-p docdir)
|
||||
;; Extract the "doc" subdirectory.
|
||||
(invoke "tar" "-xf" source "--strip-components=2"
|
||||
"--no-same-owner" "-C" docdir
|
||||
(string-append "docbook-dsssl-" ,version "/doc"))))))
|
||||
(native-inputs
|
||||
`(("bzip2" ,bzip2)
|
||||
("tar" ,tar)))
|
||||
(list
|
||||
#:install-plan
|
||||
#~`(("doc/" #$(string-append "/share/doc/docbook-dsssl-" version)))))
|
||||
(home-page "https://docbook.org/")
|
||||
(synopsis "DocBook DSSSL style sheets documentation")
|
||||
(description "Documentation for the DocBook DSSSL style sheets.")
|
||||
|
Loading…
Reference in New Issue
Block a user