mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: docbook2x: Set search-paths for XML and SGML catalogs.
According to the manpage, it has both XML and SGML catalog support through the XML_CATALOG_FILES (resp. SGML_CATALOG_FILES) environment variables through db2x_xsltproc. * gnu/packages/docbook.scm (docbook2x)[arguments]<#:phases>: Don't hardcode XML_CATALOG_FILES environmment variable. [native-search-paths]: Add %libxslt-search-paths. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
parent
eeb9b9b6ac
commit
9ae6015602
1 changed files with 4 additions and 6 deletions
|
@ -43,6 +43,7 @@ (define-module (gnu packages docbook)
|
|||
#:use-module (gnu packages xfig)
|
||||
#:use-module (gnu packages xml)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix search-paths)
|
||||
#:use-module (guix utils)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix packages)
|
||||
|
@ -910,14 +911,10 @@ (define-public docbook2x
|
|||
'("perl-xml-namespacesupport"
|
||||
"perl-xml-parser"
|
||||
"perl-xml-sax"
|
||||
"perl-xml-sax-base")))
|
||||
(xml-catalog-files
|
||||
(list (search-input-file
|
||||
inputs "xml/dtd/docbook/catalog.xml"))))
|
||||
"perl-xml-sax-base"))))
|
||||
(map (lambda (program)
|
||||
(wrap-program program
|
||||
`("PERL5LIB" ":" prefix ,perl5lib)
|
||||
`("XML_CATALOG_FILES" " " prefix ,xml-catalog-files)))
|
||||
`("PERL5LIB" ":" prefix ,perl5lib)))
|
||||
programs))))
|
||||
(add-after 'install 'sgml-check
|
||||
;; This is not covered by 'make check'.
|
||||
|
@ -950,6 +947,7 @@ (define-public docbook2x
|
|||
;; For tests
|
||||
docbook-xml-4.1.2 docbook-xml-4.2 docbook-xml-4.4
|
||||
groff-minimal libxml2))
|
||||
(native-search-paths %libxslt-search-paths)
|
||||
(home-page "https://docbook2x.sourceforge.net")
|
||||
(synopsis "Convert DocBook to man page and Texinfo format")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue