gnu: docbook2x: Use gexps and remove input labels.
* gnu/packages/docbook.scm (docbook2x) [arguments]: Use gexps. [inputs]: Remove input labels.master
parent
e3edddd12d
commit
704f477333
|
@ -707,73 +707,72 @@ Detect the differences in markup between two SGML files.
|
||||||
"0ifwzk99rzjws0ixzimbvs83x6cxqk1xzmg84wa1p7bs6rypaxs0"))))
|
"0ifwzk99rzjws0ixzimbvs83x6cxqk1xzmg84wa1p7bs6rypaxs0"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(inputs
|
(inputs
|
||||||
`(("bash-minimal" ,bash-minimal)
|
(list bash-minimal
|
||||||
("docbook-xml" ,docbook-xml-4.5)
|
docbook-xml-4.5
|
||||||
("perl" ,perl)
|
perl
|
||||||
("perl-xml-namespacesupport" ,perl-xml-namespacesupport)
|
perl-xml-namespacesupport
|
||||||
("perl-xml-parser" ,perl-xml-parser)
|
perl-xml-parser
|
||||||
("perl-xml-sax" ,perl-xml-sax)
|
perl-xml-sax
|
||||||
("perl-xml-sax-base" ,perl-xml-sax-base)
|
perl-xml-sax-base
|
||||||
("texinfo" ,texinfo)
|
texinfo
|
||||||
("xsltproc" ,libxslt)))
|
libxslt))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
(add-after 'configure 'patch-sources
|
#~(modify-phases %standard-phases
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(add-after 'configure 'patch-sources
|
||||||
;; Fix failed substitution in config.pl
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(substitute* "perl/config.pl"
|
;; Fix failed substitution in config.pl
|
||||||
(("\\$\\{prefix\\}")
|
(substitute* "perl/config.pl"
|
||||||
(assoc-ref outputs "out")))
|
(("\\$\\{prefix\\}")
|
||||||
;; Fix a failing test (maybe it worked with old texinfo?)
|
#$output))
|
||||||
(substitute* "test/complete-manuals/at1.xml"
|
;; Fix a failing test (maybe it worked with old texinfo?)
|
||||||
(("<bridgehead>")
|
(substitute* "test/complete-manuals/at1.xml"
|
||||||
"<bridgehead renderas=\"sect2\">"))
|
(("<bridgehead>")
|
||||||
;; Patch all the tests use DocBook 4.5
|
"<bridgehead renderas=\"sect2\">"))
|
||||||
(substitute* (find-files "test" "\\.xml$")
|
;; Patch all the tests use DocBook 4.5
|
||||||
(("\"-//OASIS//DTD DocBook XML V4\\..+//EN\"")
|
(substitute* (find-files "test" "\\.xml$")
|
||||||
"\"-//OASIS//DTD DocBook XML V4.5//EN\"")
|
(("\"-//OASIS//DTD DocBook XML V4\\..+//EN\"")
|
||||||
(("\"http://www\\.oasis-open\\.org/docbook/xml/4\\..+/docbookx.dtd\"")
|
"\"-//OASIS//DTD DocBook XML V4.5//EN\"")
|
||||||
"\"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd\""))
|
(("\"http://www\\.oasis-open\\.org/docbook/xml/4\\..+/docbookx.dtd\"")
|
||||||
;; Set XML catalogs for tests to pass
|
"\"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd\""))
|
||||||
(setenv "XML_CATALOG_FILES"
|
;; Set XML catalogs for tests to pass
|
||||||
(string-append (assoc-ref inputs "docbook-xml")
|
(setenv "XML_CATALOG_FILES"
|
||||||
"/xml/dtd/docbook/catalog.xml"))))
|
(string-append (assoc-ref inputs "docbook-xml")
|
||||||
(add-after 'install 'wrap-programs
|
"/xml/dtd/docbook/catalog.xml"))))
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(add-after 'install 'wrap-programs
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(programs
|
(let* ((programs
|
||||||
(map (lambda (p)
|
(map (lambda (p)
|
||||||
(string-append out "/bin/" p))
|
(search-input-file outputs
|
||||||
'("db2x_manxml" "db2x_texixml" "db2x_xsltproc"
|
(string-append "bin/" p)))
|
||||||
"docbook2man" "docbook2texi")))
|
'("db2x_manxml" "db2x_texixml" "db2x_xsltproc"
|
||||||
(perl5lib
|
"docbook2man" "docbook2texi")))
|
||||||
(map (lambda (i)
|
(perl5lib
|
||||||
(string-append (assoc-ref inputs i)
|
'#$(map (lambda (i)
|
||||||
"/lib/perl5/site_perl"))
|
(file-append (this-package-input i)
|
||||||
'("perl-xml-namespacesupport"
|
"/lib/perl5/site_perl"))
|
||||||
"perl-xml-parser"
|
'("perl-xml-namespacesupport"
|
||||||
"perl-xml-sax"
|
"perl-xml-parser"
|
||||||
"perl-xml-sax-base")))
|
"perl-xml-sax"
|
||||||
(xml-catalog-files
|
"perl-xml-sax-base")))
|
||||||
(list (string-append (assoc-ref inputs "docbook-xml")
|
(xml-catalog-files
|
||||||
"/xml/dtd/docbook/catalog.xml"))))
|
(list (search-input-file
|
||||||
(map (lambda (program)
|
inputs "xml/dtd/docbook/catalog.xml"))))
|
||||||
(wrap-program program
|
(map (lambda (program)
|
||||||
`("PERL5LIB" ":" prefix
|
(wrap-program program
|
||||||
,perl5lib)
|
`("PERL5LIB" ":" prefix ,perl5lib)
|
||||||
`("XML_CATALOG_FILES" " " prefix
|
`("XML_CATALOG_FILES" " " prefix ,xml-catalog-files)))
|
||||||
,xml-catalog-files)))
|
programs))))
|
||||||
programs))))
|
(add-after 'install 'create-symlinks
|
||||||
(add-after 'install 'create-symlinks
|
(lambda _
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
;; Create db2x_* symlinks to satisfy some configure scripts
|
||||||
(let ((out (assoc-ref outputs "out")))
|
;; which use these names to differentiate from an older
|
||||||
;; Create db2x_* symlinks to satisfy some configure scripts
|
;; docbook2man script provided by docbook-utils.
|
||||||
;; which use these names to differentiate from an older
|
(map (lambda (prog)
|
||||||
;; docbook2man script provided by docbook-utils.
|
(symlink prog (string-append #$output
|
||||||
(map (lambda (prog)
|
"/bin/db2x_" prog)))
|
||||||
(symlink prog (string-append out "/bin/db2x_" prog)))
|
'("docbook2man" "docbook2texi")))))))
|
||||||
'("docbook2man" "docbook2texi"))))))))
|
|
||||||
(home-page "https://docbook2x.sourceforge.net")
|
(home-page "https://docbook2x.sourceforge.net")
|
||||||
(synopsis "Convert DocBook to man page and Texinfo format")
|
(synopsis "Convert DocBook to man page and Texinfo format")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in New Issue