2014-01-17 17:47:31 -05:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2022-03-02 10:08:57 -05:00
|
|
|
;;; Copyright © 2014, 2021-2022 Ludovic Courtès <ludo@gnu.org>
|
2014-09-29 17:58:56 -04:00
|
|
|
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
|
2016-04-07 14:58:25 -04:00
|
|
|
;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
|
2018-02-19 22:18:43 -05:00
|
|
|
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
2020-06-14 09:19:31 -04:00
|
|
|
;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
|
2023-04-20 14:38:25 -04:00
|
|
|
;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
2021-03-27 07:27:52 -04:00
|
|
|
;;; Copyright © 2021 Mark H Weaver <mhw@netris.org>
|
2021-09-14 02:39:59 -04:00
|
|
|
;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il>
|
2021-08-27 00:15:36 -04:00
|
|
|
;;; Copyright © 2021 Andrew Whatson <whatson@gmail.com>
|
2023-03-11 12:54:12 -05:00
|
|
|
;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu>
|
2014-01-17 17:47:31 -05:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages docbook)
|
|
|
|
#:use-module (gnu packages)
|
2023-10-09 16:06:00 -04:00
|
|
|
#:use-module (gnu packages autotools)
|
2021-08-27 00:15:36 -04:00
|
|
|
#:use-module (gnu packages bash)
|
2014-01-17 17:47:31 -05:00
|
|
|
#:use-module (gnu packages compression)
|
2023-10-09 16:06:01 -04:00
|
|
|
#:use-module (gnu packages groff)
|
2014-09-29 17:58:56 -04:00
|
|
|
#:use-module (gnu packages imagemagick)
|
|
|
|
#:use-module (gnu packages inkscape)
|
2016-05-24 15:18:53 -04:00
|
|
|
#:use-module (gnu packages tex)
|
2021-08-27 00:15:36 -04:00
|
|
|
#:use-module (gnu packages texinfo)
|
2020-12-28 22:15:26 -05:00
|
|
|
#:use-module (gnu packages perl)
|
2014-09-29 17:58:56 -04:00
|
|
|
#:use-module (gnu packages python)
|
2014-06-12 07:03:53 -04:00
|
|
|
#:use-module (gnu packages base)
|
2023-10-09 16:06:01 -04:00
|
|
|
#:use-module (gnu packages web)
|
2020-12-28 22:15:26 -05:00
|
|
|
#:use-module (gnu packages web-browsers)
|
2023-04-25 20:56:59 -04:00
|
|
|
#:use-module (gnu packages xfig)
|
2014-09-29 17:58:56 -04:00
|
|
|
#:use-module (gnu packages xml)
|
2022-09-26 14:20:32 -04:00
|
|
|
#:use-module (guix gexp)
|
2023-10-09 16:06:03 -04:00
|
|
|
#:use-module (guix search-paths)
|
2023-03-11 12:54:13 -05:00
|
|
|
#:use-module (guix utils)
|
2021-08-20 08:09:05 -04:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2014-01-17 17:47:31 -05:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
2022-09-27 13:19:44 -04:00
|
|
|
#:use-module (guix git-download)
|
2021-10-17 03:23:39 -04:00
|
|
|
#:use-module (guix build-system copy)
|
2020-12-28 22:15:26 -05:00
|
|
|
#:use-module (guix build-system gnu)
|
gnu: dblatex: Fix missing texlive binaries and fig2dev.
The binaries for dblatex aren't provided by texlive-updmap.cfg but by
texlive-bin.
* gnu/packages/patches/dblatex-inkscape-1.0.patch: New file.
* gnu/local.mk: Register it.
* gnu/packages/docbook.scm (dblatex)[source]: Use dblatex-inkscape-1.0.patch.
[arguments]<#:tests?>: Enable tests.
<#:phases>: Rename 'set-path to 'wrap-dblatex. Wrap with texlive-bin rather
than texlive-updmap.cfg in PATH and wrap GUIX_TEXMF in 'wrap-dblatex. Add
'check-wrap phase.
[native-inputs]: Add docbook-mathml-1.0.
[inputs]: Restyle. Add texlive-bin. Replace inkscape/stable with inkscape.
Within texlive-updmap.cfg add previously missing: texlive-amsmath,
texlive-auxhook, texlive-bigintcalc, texlive-bin, texlive-bitset,
texlive-bookmark, texlive-colortbl, texlive-courier, texlive-eepic,
texlive-epstopdf-pkg, texlive-eso-pic, texlive-etexcmds, texlive-fancyhdr,
texlive-gettitlestring, texlive-graphics, texlive-graphics-cfg,
texlive-helvetic, texlive-hycolor, texlive-hyperref, texlive-infwarerr,
texlive-intcalc, texlive-kpathsea, texlive-kvdefinekeys, texlive-kvoptions,
texlive-kvsetkeys, texlive-l3backend, texlive-latex, texlive-latex-bin,
texlive-letltxmacro, texlive-ltxcmds, texlive-pdfescape, texlive-pdflscape,
texlive-pdftexcmds, texlive-psnfss, texlive-rerunfilecheck, texlive-symbol,
texlive-times, texlive-tools, texlive-uniquecounter, texlive-url and
texlive-zapfding. Add fig2dev.
(dblatex/stable)[inputs]: Replace inkscape with inkscape/stable.
Co-authored-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Change-Id: I4fb2e1f894b98a4e33a0438a1dda569eeb9eae81
2023-10-09 16:06:09 -04:00
|
|
|
#:use-module (guix build-system python)
|
|
|
|
#:use-module (srfi srfi-26))
|
2014-01-17 17:47:31 -05:00
|
|
|
|
2023-10-09 16:05:53 -04:00
|
|
|
;; The fetch-plan, install-plan and phases for docbook-xml tend to vary
|
|
|
|
;; between releases therefore we use a “template” package for the
|
|
|
|
;; transformations that are common to these packages.
|
|
|
|
(define* (docbook-xml-package source version)
|
|
|
|
"Return a package for a docbook-xml package version @var{version} and
|
|
|
|
downloading from @var{source}, where @var{version} is a string and
|
|
|
|
@var{source} is a @code{<origin>} record."
|
2020-06-14 09:19:31 -04:00
|
|
|
(package
|
|
|
|
(name "docbook-xml")
|
2023-10-09 16:05:53 -04:00
|
|
|
(version version)
|
|
|
|
(source source)
|
2023-03-11 12:54:10 -05:00
|
|
|
(build-system copy-build-system)
|
2020-06-14 09:19:31 -04:00
|
|
|
(arguments
|
2023-03-11 12:54:10 -05:00
|
|
|
(list
|
2023-03-11 12:54:11 -05:00
|
|
|
#:modules '((guix build copy-build-system)
|
|
|
|
(guix build utils)
|
|
|
|
(srfi srfi-26))
|
2023-03-11 12:54:10 -05:00
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
2023-03-11 12:54:11 -05:00
|
|
|
(add-after 'unpack 'fix-permissions
|
|
|
|
(lambda _
|
2023-10-09 16:05:53 -04:00
|
|
|
;; These files do not need 0755 permission.
|
2023-03-11 12:54:11 -05:00
|
|
|
(for-each (cut chmod <> #o644) (find-files "."))))
|
2023-03-11 12:54:12 -05:00
|
|
|
(add-before 'install 'patch-catalog-xml
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(let ((xsltproc (search-input-file inputs "/bin/xsltproc"))
|
2023-10-09 16:05:53 -04:00
|
|
|
(xslt-file #$(local-file
|
|
|
|
(search-auxiliary-file
|
|
|
|
"xml/patch-catalog-xml.xsl")))
|
|
|
|
;; Avoid profile conflicts by installing to a
|
|
|
|
;; versioned path.
|
|
|
|
(dest-path
|
|
|
|
(format #f "~a/xml/docbook/~a" #$output #$version)))
|
|
|
|
(for-each
|
|
|
|
(lambda (catalog)
|
|
|
|
(let ((catalog* (string-append catalog ".new")))
|
|
|
|
(invoke xsltproc "--nonet" "--novalid" "--noout"
|
|
|
|
"--stringparam" "prefix" dest-path
|
|
|
|
"--output" catalog*
|
|
|
|
xslt-file catalog)
|
|
|
|
(rename-file catalog* catalog)))
|
|
|
|
(find-files "." "catalog\\.xml$"))))))))
|
2023-03-11 12:54:12 -05:00
|
|
|
(native-inputs (list libxslt unzip))
|
2020-06-14 09:19:31 -04:00
|
|
|
(home-page "https://docbook.org")
|
|
|
|
(synopsis "DocBook XML DTDs for document authoring")
|
|
|
|
(description
|
|
|
|
"DocBook is general purpose XML and SGML document type particularly well
|
|
|
|
suited to books and papers about computer hardware and software (though it is
|
|
|
|
by no means limited to these applications.) This package provides XML DTDs.")
|
2021-08-20 08:09:05 -04:00
|
|
|
(license (license:x11-style "" "See file headers."))))
|
2020-06-14 09:19:31 -04:00
|
|
|
|
2023-10-09 16:05:53 -04:00
|
|
|
(define-public docbook-xml-5.1
|
|
|
|
(let* ((version "5.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch/zipbomb)
|
|
|
|
(uri (string-append "https://docbook.org/xml/" version
|
|
|
|
"/docbook-v" version "-os.zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2023-10-09 16:05:55 -04:00
|
|
|
"0zqy9prj9wam9dn7v3mgr7ld1axqxdhgrmv06dviwg00ahv43wxk"))
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
;; The .zip release mistakenly uses '5.1CR4' instead of
|
|
|
|
;; '5.1' as intended by <https://docbook.org/xml/5.1/catalog.xml>.
|
|
|
|
#~(substitute* "schemas/catalog.xml"
|
|
|
|
(("5\\.1CR4") #$version)))))
|
2023-10-09 16:05:53 -04:00
|
|
|
(template (docbook-xml-package source version)))
|
|
|
|
(package
|
|
|
|
(inherit template)
|
|
|
|
(arguments
|
|
|
|
(let ((dest-dir (format #f "xml/docbook/~a/" version)))
|
|
|
|
(substitute-keyword-arguments (package-arguments template)
|
|
|
|
;; XXX: A default value must be provided otherwise this
|
|
|
|
;; substitution has no effect.
|
|
|
|
((#:install-plan _ #f)
|
|
|
|
#~`(("schemas/" #$dest-dir)))))))))
|
2023-10-09 16:05:54 -04:00
|
|
|
|
|
|
|
(define-public docbook-xml-5.0.1
|
|
|
|
(let* ((version "5.0.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://docbook.org/xml/" version
|
|
|
|
"/docbook-" version ".zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1iz3hq1lqgnshvlz4j9gvh4jy1ml74qf90vqf2ikbq0h4i2xzybs"))))
|
|
|
|
(template (docbook-xml-package source version)))
|
|
|
|
(package
|
|
|
|
(inherit template)
|
|
|
|
(arguments
|
|
|
|
(let ((dest-dir (format #f "xml/docbook/~a/" version)))
|
|
|
|
(substitute-keyword-arguments (package-arguments template)
|
|
|
|
((#:install-plan _ #f)
|
|
|
|
#~`(("catalog.xml" #$dest-dir)
|
|
|
|
("docbook.nvdl" #$dest-dir)
|
|
|
|
("dtd" #$dest-dir)
|
|
|
|
("rng" #$dest-dir)
|
|
|
|
("sch" #$dest-dir)
|
|
|
|
("xsd" #$dest-dir)))))))))
|
|
|
|
|
2023-10-09 16:05:53 -04:00
|
|
|
;; XXX: docbook-xml-4.x versions use the same #:install-plan but since the
|
|
|
|
;; paths are versioned we can't use (inherit …).
|
|
|
|
(define* (docbook-xml-4.x-package source version)
|
|
|
|
"Return a template for a docbook-xml-4.x package version @var{version} and
|
|
|
|
downloading from @var{source}, where @var{version} is a string and
|
|
|
|
@var{source} is a @code{<origin>} record."
|
|
|
|
(let ((base-template (docbook-xml-package source version)))
|
|
|
|
(package
|
|
|
|
(inherit base-template)
|
|
|
|
(arguments
|
|
|
|
(let* ((dest-dir (format #f "xml/docbook/~a/" version)))
|
|
|
|
(substitute-keyword-arguments (package-arguments base-template)
|
|
|
|
((#:phases phases)
|
|
|
|
;; Some programs, such as kdoctools, instead of using
|
|
|
|
;; XML_CATALOG_FILES, prefer to use cmake to locate
|
|
|
|
;; the DTDs for docbook-xml-4.x packages but
|
|
|
|
;; since there's no agreed standard as to where these files
|
|
|
|
;; should be placed, in practice the .cmake files
|
|
|
|
;; end up searching for paths that are distribution specific.
|
|
|
|
#~(modify-phases #$phases
|
|
|
|
(add-after 'install 'symlink-alternate-path
|
|
|
|
(lambda _
|
|
|
|
;; kdoctools searches under xml/dtd/docbook/
|
|
|
|
;; which is the convention used by Nix.
|
|
|
|
(mkdir-p (string-append #$output "/xml/dtd"))
|
|
|
|
(symlink (string-append #$output "/" #$dest-dir)
|
|
|
|
(string-append #$output "/xml/dtd/docbook"))))))
|
|
|
|
((#:install-plan _ #f)
|
|
|
|
#~`(("./" #$dest-dir
|
|
|
|
#:exclude-regexp ("ChangeLog$"
|
|
|
|
"README$"
|
|
|
|
"docbook\\.cat$"
|
|
|
|
"\\.txt$"))))))))))
|
|
|
|
|
2023-04-20 14:40:45 -04:00
|
|
|
(define-public docbook-xml-4.5
|
2023-10-09 16:05:53 -04:00
|
|
|
(let* ((version "4.5")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch/zipbomb)
|
|
|
|
(uri (string-append "https://docbook.org/xml/" version
|
|
|
|
"/docbook-xml-" version ".zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1d671lcjckjri28xfbf6dq7y3xnkppa910w1jin8rjc35dx06kjf")))))
|
|
|
|
(docbook-xml-4.x-package source version)))
|
2014-01-17 17:47:31 -05:00
|
|
|
|
2014-07-13 11:02:09 -04:00
|
|
|
(define-public docbook-xml-4.4
|
2023-10-09 16:05:53 -04:00
|
|
|
(let* ((version "4.4")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch/zipbomb)
|
|
|
|
(uri (string-append "https://docbook.org/xml/" version
|
|
|
|
"/docbook-xml-" version ".zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"141h4zsyc71sfi2zzd89v4bb4qqq9ca1ri9ix2als9f4i3mmkw82")))))
|
|
|
|
(docbook-xml-4.x-package source version)))
|
2014-07-13 11:02:09 -04:00
|
|
|
|
|
|
|
(define-public docbook-xml-4.3
|
2023-10-09 16:05:53 -04:00
|
|
|
(let* ((version "4.3")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch/zipbomb)
|
|
|
|
(uri (string-append "https://docbook.org/xml/" version
|
|
|
|
"/docbook-xml-" version ".zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0r1l2if1z4wm2v664sqdizm4gak6db1kx9y50jq89m3gxaa8l1i3")))))
|
|
|
|
(docbook-xml-4.x-package source version)))
|
2014-07-13 11:02:09 -04:00
|
|
|
|
2014-11-04 12:43:08 -05:00
|
|
|
(define-public docbook-xml-4.2
|
2023-10-09 16:05:53 -04:00
|
|
|
(let* ((version "4.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch/zipbomb)
|
|
|
|
(uri (string-append "https://docbook.org/xml/" version
|
|
|
|
"/docbook-xml-" version ".zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"18hgwvmywh6a5jh38szjmg3hg2r4v5lb6r3ydc3rd8cp9wg61i5c")))))
|
|
|
|
(docbook-xml-4.x-package source version)))
|
2014-11-04 12:43:08 -05:00
|
|
|
|
2016-04-07 14:58:25 -04:00
|
|
|
(define-public docbook-xml-4.1.2
|
2023-10-09 16:05:53 -04:00
|
|
|
(let* ((version "4.1.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch/zipbomb)
|
|
|
|
(uri (string-append "https://docbook.org/xml/" version
|
|
|
|
"/docbkx412.zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0wkp5rvnqj0ghxia0558mnn4c7s3n501j99q2isp3sp0ci069w1h"))))
|
|
|
|
(template (docbook-xml-4.x-package source version)))
|
|
|
|
(package
|
|
|
|
(inherit template)
|
|
|
|
(arguments
|
|
|
|
(substitute-keyword-arguments (package-arguments template)
|
|
|
|
((#:phases phases)
|
|
|
|
#~(modify-phases #$phases
|
|
|
|
(add-after 'unpack 'copy-catalog-file
|
|
|
|
;; docbook-xml-4.1.2 is unique in the fact that it doesn't come
|
|
|
|
;; with a catalog.xml file, requiring it to be generated by hand
|
|
|
|
;; from the docbook.cat SGML catalog. We could automatically
|
|
|
|
;; generate it here at the cost of enlarging the package
|
|
|
|
;; definition with a rudimentary (PEG) parser for the SGML
|
|
|
|
;; catalog but this is overkill since this file is unlikely to
|
|
|
|
;; change, therefore we ship a pre-generated catalog.xml.
|
|
|
|
(lambda _
|
|
|
|
(copy-file
|
|
|
|
#$(local-file
|
|
|
|
(search-auxiliary-file
|
|
|
|
"xml/docbook-xml/catalog-4.1.2.xml"))
|
|
|
|
"catalog.xml")))
|
|
|
|
(add-after 'patch-catalog-xml 'add-rewrite-entries
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(let ((xmlcatalog (search-input-file inputs
|
|
|
|
"/bin/xmlcatalog"))
|
|
|
|
(dtd-path (format #f "~a/xml/docbook/~a"
|
|
|
|
#$output #$version)))
|
|
|
|
(for-each
|
|
|
|
(lambda (type)
|
|
|
|
(invoke xmlcatalog "--noout"
|
|
|
|
"--add" type
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.1.2/"
|
|
|
|
(string-append "file:" dtd-path "/")
|
|
|
|
"catalog.xml"))
|
|
|
|
(list "rewriteSystem" "rewriteURI")))))))))
|
|
|
|
(native-inputs
|
|
|
|
(modify-inputs (package-native-inputs template)
|
|
|
|
(prepend libxml2))))))
|
|
|
|
|
2023-10-09 16:06:08 -04:00
|
|
|
(define-public docbook-mathml-1.0
|
|
|
|
(package
|
|
|
|
(name "docbook-mathml")
|
|
|
|
(version "1.0")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri
|
|
|
|
(string-append "https://www.oasis-open.org/docbook/xml/mathml/"
|
|
|
|
version "/dbmathml.dtd"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"10vmyl29j829w4xn928rznh163pf47gyzbbjjwqrbg2bidfnk7vp"))))
|
|
|
|
(build-system copy-build-system)
|
|
|
|
(arguments
|
|
|
|
(let ((target (format #f "xml/docbook/mathml/~a/" version)))
|
|
|
|
(list
|
|
|
|
#:modules '((guix build copy-build-system)
|
|
|
|
(guix build utils)
|
|
|
|
(sxml simple)
|
|
|
|
(srfi srfi-1))
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-before 'install 'generate-catalog.xml
|
|
|
|
(lambda _
|
|
|
|
(let ((store-uri (string-append "file:"
|
|
|
|
#$output "/"
|
|
|
|
#$target "dbmathml.dtd")))
|
|
|
|
(call-with-output-file "catalog.xml"
|
|
|
|
(lambda (port)
|
|
|
|
(sxml->xml
|
|
|
|
`(*TOP*
|
|
|
|
(*PI* xml "version='1.0'")
|
|
|
|
(catalog (@ (xmlns "urn:oasis:names:tc:entity:xmlns:xml:catalog"))
|
|
|
|
(public (@ (publicId "-//OASIS//DTD DocBook MathML Module V1.0//EN")
|
|
|
|
(uri ,store-uri)))
|
|
|
|
,@(map
|
|
|
|
(lambda (scheme)
|
|
|
|
`(system
|
|
|
|
(@ (systemId
|
|
|
|
,(string-append scheme
|
|
|
|
"://www.oasis-open.org/docbook/xml/"
|
|
|
|
"mathml/1.0/dbmathml.dtd"))
|
|
|
|
(uri ,store-uri))))
|
|
|
|
'("http" "https"))))
|
|
|
|
port)))))))
|
|
|
|
#:install-plan
|
|
|
|
#~`(("catalog.xml" #$target)
|
|
|
|
("dbmathml.dtd" #$target)))))
|
|
|
|
(propagated-inputs
|
|
|
|
;; These must be propagated for the package to make sense.
|
|
|
|
;; TODO: Package MathML2 DTD and propagate it as well.
|
|
|
|
(list docbook-xml-4.1.2))
|
|
|
|
(home-page
|
|
|
|
"https://www.oasis-open.org/docbook/xml/mathml/1.0/index.1.shtml")
|
|
|
|
(synopsis "MathML support for DocBook XML V4.1.2.")
|
|
|
|
(description "The DocBook MathML Module is an extension to DocBook XML
|
|
|
|
V4.1.2 that adds support for MathML in equation markup.")
|
|
|
|
(license (license:non-copyleft "" "See file headers."))))
|
|
|
|
|
2023-10-09 16:05:53 -04:00
|
|
|
(define-public docbook-xml docbook-xml-5.1)
|
2016-04-07 14:58:25 -04:00
|
|
|
|
2022-09-27 16:05:24 -04:00
|
|
|
;;; There's an issue in docbook-xsl 1.79.2 that causes manpages to be
|
|
|
|
;;; generated incorrectly and embed raw nroff syntax such as '.PP' when there
|
|
|
|
;;; is a namespace/non-namespace mismatch between the sources and the
|
|
|
|
;;; stylesheets used (see:
|
|
|
|
;;; https://github.com/docbook/xslt10-stylesheets/issues/109).
|
2014-01-17 17:47:31 -05:00
|
|
|
(define-public docbook-xsl
|
2022-09-27 13:19:44 -04:00
|
|
|
(let ((commit "fe16c90013b64e316c3e21ef92d1e8813c10f88c")
|
|
|
|
(revision "0")
|
2022-09-27 16:05:24 -04:00
|
|
|
(base-version "1.79.2"))
|
2022-09-27 13:19:44 -04:00
|
|
|
(package
|
|
|
|
(name "docbook-xsl")
|
|
|
|
(version (git-version base-version revision commit))
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/docbook/xslt10-stylesheets")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(modules '((guix build utils)))
|
2023-04-25 20:56:55 -04:00
|
|
|
(snippet
|
|
|
|
#~(begin
|
|
|
|
;; Multiple .jar files are bundled with the sources.
|
|
|
|
(for-each delete-file
|
|
|
|
(find-files "." "\\.jar$"))
|
|
|
|
;; Do not build webhelp files, as they require a Saxon from
|
|
|
|
;; 2005, which is not packaged in Guix.
|
|
|
|
(substitute* "xsl/Makefile"
|
|
|
|
((" webhelp") ""))))
|
2022-09-27 13:19:44 -04:00
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1bl8dwrcy7skrlh80fpsmiw045bv2j0aym231ikcv3hvm2pi98dj"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
(list
|
|
|
|
#:make-flags #~(list "XSLTENGINE=xsltproc")
|
2023-04-25 20:56:55 -04:00
|
|
|
#:modules '((guix build gnu-build-system)
|
|
|
|
(guix build utils)
|
|
|
|
(sxml simple))
|
2022-09-27 13:19:44 -04:00
|
|
|
#:phases
|
2023-04-25 20:56:55 -04:00
|
|
|
#~(let ((dest-path (format #f "~a/xml/xsl/~a-~a"
|
|
|
|
#$output #$name #$version)))
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'configure
|
|
|
|
(lambda _
|
|
|
|
;; The build systems insist on a ~/.xmlc, and it is simpler to
|
|
|
|
;; create a dummy config file than to patch it into
|
|
|
|
;; submission.
|
|
|
|
(setenv "HOME" "/tmp")
|
|
|
|
(call-with-output-file "/tmp/.xmlc"
|
|
|
|
(lambda (port)
|
|
|
|
(sxml->xml
|
|
|
|
'(*TOP*
|
|
|
|
(*PI* xml "version='1.0'")
|
|
|
|
(config
|
|
|
|
(java (@ (xml:id "bigmem"))
|
|
|
|
(java-options (@ (name "Xmx512m"))))
|
|
|
|
(xsltproc (@ (xml:id "xsltproc")
|
|
|
|
(exec "xsltproc")))
|
|
|
|
(xmllint (@ (xml:id "xmllint")
|
|
|
|
(exec "xmllint")))))
|
|
|
|
port)))))
|
|
|
|
(add-before 'install 'generate-catalog.xml
|
|
|
|
(lambda* (#:key make-flags #:allow-other-keys)
|
|
|
|
(apply invoke "make" "-C" "xsl" "catalog.xml" make-flags)))
|
2023-10-09 16:05:57 -04:00
|
|
|
(add-after 'generate-catalog.xml 'patch-catalog.xml
|
|
|
|
;; Note: URI resolutions are not recursive.
|
|
|
|
;; A rewrite rule from:
|
|
|
|
;; 'http://docbook.sourceforge.net/release/xsl-ns/'
|
|
|
|
;; to
|
|
|
|
;; 'http://docbook.sourceforge.net/release/xsl/'
|
|
|
|
;; will not trigger the rewrite rule that ultimately
|
|
|
|
;; remaps to a /gnu/store URI, as can be seen by
|
|
|
|
;; invoking:
|
|
|
|
;; $ xmlcatalog "" \
|
|
|
|
;; 'http://docbook.sourceforge.net/release/xsl-ns/current/'
|
|
|
|
;; http://docbook.sourceforge.net/release/xsl/current/
|
|
|
|
;; $ xmlcatalog "" \
|
|
|
|
;; 'http://docbook.sourceforge.net/release/xsl/current/'
|
|
|
|
;; file:/gnu/store/…/xml/xsl/…
|
|
|
|
;;
|
|
|
|
;; See XML Catalog specification, item 7.2.2. for
|
|
|
|
;; details.
|
2023-04-25 20:56:55 -04:00
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(let ((xmlcatalog (search-input-file inputs
|
|
|
|
"/bin/xmlcatalog"))
|
2023-10-09 16:05:57 -04:00
|
|
|
(catalog-file "xsl/catalog.xml")
|
|
|
|
(store-uri (string-append "file:" dest-path "/")))
|
|
|
|
;; Remove /snapshot/ references.
|
2023-04-25 20:56:55 -04:00
|
|
|
(for-each
|
2023-10-09 16:05:57 -04:00
|
|
|
(lambda (scheme)
|
|
|
|
(invoke xmlcatalog "--noout"
|
|
|
|
"--del"
|
|
|
|
(string-append
|
|
|
|
scheme
|
|
|
|
"://cdn.docbook.org/release/xsl/snapshot/")
|
|
|
|
catalog-file))
|
|
|
|
(list "http" "https"))
|
|
|
|
;; Rewrite both http:// and https:// URIs.
|
|
|
|
(for-each
|
|
|
|
(lambda (path)
|
2023-10-09 16:05:56 -04:00
|
|
|
(for-each
|
2023-10-09 16:05:57 -04:00
|
|
|
(lambda (scheme)
|
|
|
|
(for-each
|
|
|
|
(lambda (entry-type)
|
|
|
|
(let ((uri (string-append scheme "://" path)))
|
|
|
|
(invoke xmlcatalog "--noout"
|
|
|
|
"--add" entry-type uri store-uri
|
|
|
|
catalog-file)))
|
|
|
|
(list "rewriteSystem" "rewriteURI")))
|
|
|
|
(list "http" "https")))
|
|
|
|
(list #$(format #f "cdn.docbook.org/release/xsl/~a/"
|
|
|
|
base-version)
|
|
|
|
"cdn.docbook.org/release/xsl/current/"
|
|
|
|
;; Re-add the no longer present compatibility entries for
|
|
|
|
;; v.1.79.1 or earlier URIs.
|
|
|
|
"docbook.sourceforge.net/release/xsl/current/"
|
|
|
|
;; Originally the
|
|
|
|
;; "http://docbook.sourceforge.net/release/xsl/"
|
|
|
|
;; URI referred to the non-namespaced docbook-xsl,
|
|
|
|
;; with its namespaced version using a URI differing in
|
|
|
|
;; the path component as '…/xsl-ns/'.
|
|
|
|
;; At some point the namespaced version was made the
|
|
|
|
;; canonical docbook-xsl package whilst preserving the
|
|
|
|
;; original URI.
|
|
|
|
;;
|
|
|
|
;; For compatibility with XML files that still specify
|
|
|
|
;; the legacy namespaced docbook-xsl URIs we re-add them
|
|
|
|
;; here.
|
|
|
|
"docbook.sourceforge.net/release/xsl-ns/current/")))))
|
2022-09-27 13:19:44 -04:00
|
|
|
(replace 'install
|
|
|
|
(lambda _
|
2023-04-25 20:56:55 -04:00
|
|
|
(let ((select-rx (make-regexp
|
2022-09-27 13:19:44 -04:00
|
|
|
"(\\.xml$|\\.xsl$|\\.dtd$|\\.ent$)")))
|
|
|
|
;; Install catalog.
|
|
|
|
(chdir "xsl")
|
2023-04-25 20:56:55 -04:00
|
|
|
(install-file "catalog.xml" dest-path)
|
|
|
|
(install-file "VERSION.xsl" dest-path)
|
2022-09-27 13:19:44 -04:00
|
|
|
;; Install style sheets.
|
2023-04-25 20:56:55 -04:00
|
|
|
(for-each
|
|
|
|
(lambda (dir)
|
|
|
|
(for-each (lambda (f)
|
|
|
|
(install-file
|
|
|
|
f
|
|
|
|
(string-append dest-path "/" (dirname f))))
|
|
|
|
(find-files dir select-rx)))
|
|
|
|
'("assembly" "common" "eclipse" "epub" "epub3" "fo"
|
|
|
|
"highlighting" "html" "htmlhelp" "javahelp" "lib"
|
|
|
|
"manpages" "params" "profiling" "roundtrip"
|
|
|
|
"template" "website"
|
|
|
|
"xhtml" "xhtml-1_1" "xhtml5")))))))))
|
|
|
|
(native-inputs (list docbook-xml-4.4 ; for tests
|
|
|
|
libxml2
|
2022-09-27 13:19:44 -04:00
|
|
|
libxslt
|
|
|
|
perl
|
2022-09-27 16:05:24 -04:00
|
|
|
perl-xml-xpath))
|
|
|
|
(home-page "https://docbook.org")
|
|
|
|
(synopsis "DocBook XSL style sheets for document authoring")
|
|
|
|
(description
|
|
|
|
"This package provides XSL style sheets for DocBook.")
|
|
|
|
(license (license:x11-style "" "See 'COPYING' file.")))))
|
2022-09-27 13:19:44 -04:00
|
|
|
|
2018-09-09 11:47:41 -04:00
|
|
|
(define-public docbook-dsssl
|
|
|
|
(package
|
|
|
|
(name "docbook-dsssl")
|
|
|
|
(version "1.79")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/docbook/"
|
|
|
|
name "/" version "/"
|
|
|
|
name "-" version ".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2023-10-19 11:38:19 -04:00
|
|
|
"1g72y2yyc2k89kzs0lvrb9n7hjayw1hdskfpplpz97pf1c99wcig"))
|
|
|
|
(snippet
|
|
|
|
#~(begin
|
2023-10-19 11:38:20 -04:00
|
|
|
(chmod "bin/collateindex.pl" #o755)
|
2023-10-19 11:38:19 -04:00
|
|
|
;; Remove empty directories.
|
|
|
|
(rmdir "doc")
|
|
|
|
(rmdir "docsrc")))))
|
2023-04-25 20:57:00 -04:00
|
|
|
(build-system copy-build-system)
|
2018-09-09 11:47:41 -04:00
|
|
|
(outputs '("out" "doc"))
|
|
|
|
(arguments
|
2023-04-25 20:57:00 -04:00
|
|
|
(list
|
|
|
|
#:install-plan
|
2023-10-19 11:38:20 -04:00
|
|
|
#~`(("./" "sgml/dtd/docbook/" #:exclude ("bin"))
|
|
|
|
("bin/collateindex.pl" "bin/")
|
|
|
|
("bin/collateindex.pl.1" "share/man/man1/")
|
2023-10-19 11:38:19 -04:00
|
|
|
(#$(this-package-input "docbook-dsssl-doc") "./" #:output "doc"))))
|
2018-09-09 11:47:41 -04:00
|
|
|
(inputs
|
2023-10-19 11:38:20 -04:00
|
|
|
(list perl docbook-dsssl-doc))
|
2018-09-09 11:47:41 -04:00
|
|
|
(home-page "https://docbook.org/")
|
|
|
|
(synopsis "DSSSL style sheets for DocBook")
|
|
|
|
(description "This package provides DSSSL style sheets for DocBook.")
|
2023-10-19 11:38:19 -04:00
|
|
|
(license (license:non-copyleft "file:/README"))))
|
2018-09-09 11:47:41 -04:00
|
|
|
|
|
|
|
;;; Private variable, used as the 'doc' output of the docbook-dsssl package.
|
|
|
|
(define docbook-dsssl-doc
|
|
|
|
(package
|
|
|
|
(name "docbook-dsssl-doc")
|
|
|
|
(version "1.79")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/docbook/"
|
|
|
|
name "/" version "/"
|
|
|
|
name "-" version ".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1plp5ngc96pbna4rwglp9glcadnirbm3hlcjb4gjvq1f8biic9lz"))))
|
2023-04-25 20:57:00 -04:00
|
|
|
(build-system copy-build-system)
|
2018-09-09 11:47:41 -04:00
|
|
|
(arguments
|
2023-04-25 20:57:00 -04:00
|
|
|
(list
|
|
|
|
#:install-plan
|
|
|
|
#~`(("doc/" #$(string-append "/share/doc/docbook-dsssl-" version)))))
|
2018-09-09 11:47:41 -04:00
|
|
|
(home-page "https://docbook.org/")
|
|
|
|
(synopsis "DocBook DSSSL style sheets documentation")
|
|
|
|
(description "Documentation for the DocBook DSSSL style sheets.")
|
2023-10-19 11:38:19 -04:00
|
|
|
(license (license:non-copyleft "file:/doc/LEGALNOTICE.htm"))))
|
2018-09-09 11:47:41 -04:00
|
|
|
|
2022-06-05 10:26:01 -04:00
|
|
|
(define-public docbook-sgml-4.2
|
2018-07-03 09:04:41 -04:00
|
|
|
(package
|
|
|
|
(name "docbook-sgml")
|
2022-06-05 10:26:01 -04:00
|
|
|
(version "4.2")
|
2018-07-03 09:04:41 -04:00
|
|
|
(source (origin
|
2023-04-25 20:56:58 -04:00
|
|
|
(method url-fetch/zipbomb)
|
2022-06-05 10:26:01 -04:00
|
|
|
(uri (string-append
|
|
|
|
"https://www.oasis-open.org/docbook/sgml/4.2/docbook-"
|
|
|
|
version ".zip"))
|
2018-07-03 09:04:41 -04:00
|
|
|
(sha256
|
|
|
|
(base32
|
2022-06-05 10:26:01 -04:00
|
|
|
"1hrm4qmmzi285bkxkc74lxvjvw2gbl7ycbaxhv31h9rl9g4x5sv7"))))
|
2023-04-25 20:56:58 -04:00
|
|
|
(build-system copy-build-system)
|
2018-07-03 09:04:41 -04:00
|
|
|
(arguments
|
2023-04-25 20:56:58 -04:00
|
|
|
(list
|
|
|
|
#:modules '((guix build copy-build-system)
|
|
|
|
(guix build utils)
|
|
|
|
(srfi srfi-26))
|
|
|
|
#:install-plan
|
|
|
|
#~`(("./" "sgml/dtd/docbook"
|
|
|
|
#:exclude-regexp ("catalog\\.xml$"
|
|
|
|
"ChangeLog$"
|
|
|
|
"README$"
|
|
|
|
"\\.txt$")))
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'fix-permissions
|
|
|
|
(lambda _
|
|
|
|
(for-each (cut chmod <> #o644) (find-files "."))))
|
|
|
|
(add-before 'install 'patch-iso-entities
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
;; Reference the ISO 8879 character entities.
|
|
|
|
;; e.g. "iso-lat1.gml" --> "<iso-entities-dir>/ISOlat1"
|
|
|
|
(let ((iso-entities-dir
|
|
|
|
(assoc-ref %build-inputs "iso-8879-entities")))
|
|
|
|
(substitute* "docbook.cat"
|
|
|
|
(("\"iso-(.*)\\.gml\"" _ name)
|
|
|
|
(string-append "\"" iso-entities-dir "/ISO" name "\"")))))))))
|
2018-07-03 09:04:41 -04:00
|
|
|
(native-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list unzip))
|
2018-07-03 09:04:41 -04:00
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list iso-8879-entities))
|
2018-07-03 09:04:41 -04:00
|
|
|
(home-page "https://docbook.org")
|
|
|
|
(synopsis "DocBook SGML style sheets for document authoring")
|
|
|
|
(description "This package provides SGML style sheets for DocBook.")
|
2021-08-20 08:09:05 -04:00
|
|
|
(license (license:x11-style "" "See file headers."))))
|
2018-07-03 09:04:41 -04:00
|
|
|
|
2022-06-05 10:26:01 -04:00
|
|
|
(define-public docbook-sgml-4.1
|
|
|
|
(package
|
|
|
|
(inherit docbook-sgml-4.2)
|
|
|
|
(version "4.1")
|
|
|
|
(source (origin
|
2023-04-25 20:56:58 -04:00
|
|
|
(method url-fetch/zipbomb)
|
2022-06-05 10:26:01 -04:00
|
|
|
(uri (string-append "https://www.oasis-open.org/docbook/sgml/"
|
|
|
|
version "/docbk41.zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"04b3gp4zkh9c5g9kvnywdkdfkcqx3kjc04j4mpkr4xk7lgqgrany"))))))
|
|
|
|
|
|
|
|
(define-public docbook-sgml docbook-sgml-4.1)
|
|
|
|
|
2020-12-28 16:52:54 -05:00
|
|
|
(define-public docbook-sgml-3.1
|
|
|
|
(package
|
|
|
|
(inherit docbook-sgml)
|
|
|
|
(version "3.1")
|
|
|
|
(source (origin
|
2023-04-25 20:56:58 -04:00
|
|
|
(method url-fetch/zipbomb)
|
2020-12-28 16:52:54 -05:00
|
|
|
(uri (string-append "https://www.oasis-open.org/docbook/sgml/"
|
|
|
|
version "/docbk31.zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0f25ch7bywwhdxb1qa0hl28mgq1blqdap3rxzamm585rf4kis9i0"))))))
|
|
|
|
|
2018-07-03 09:04:02 -04:00
|
|
|
;;; Private package referenced by docbook-sgml.
|
|
|
|
(define iso-8879-entities
|
|
|
|
(package
|
|
|
|
(name "iso-8879-entities")
|
|
|
|
(version "0.0") ;no proper version
|
|
|
|
(source (origin
|
2023-04-25 20:56:58 -04:00
|
|
|
(method url-fetch/zipbomb)
|
|
|
|
(uri "https://www.oasis-open.org/cover/ISOEnts.zip")
|
2018-07-03 09:04:02 -04:00
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1clrkaqnvc1ja4lj8blr0rdlphngkcda3snm7b9jzvcn76d3br6w"))))
|
2023-04-25 20:56:58 -04:00
|
|
|
(build-system copy-build-system)
|
|
|
|
(native-inputs (list unzip))
|
2018-07-03 09:04:02 -04:00
|
|
|
(home-page "https://www.oasis-open.org/")
|
|
|
|
(synopsis "ISO 8879 character entities")
|
|
|
|
(description "ISO 8879 character entities that are typically used in
|
|
|
|
the in DocBook SGML DTDs.")
|
2021-08-20 08:09:05 -04:00
|
|
|
(license (license:x11-style "" "See file headers."))))
|
2018-07-03 09:04:02 -04:00
|
|
|
|
2014-09-29 17:58:56 -04:00
|
|
|
(define-public dblatex
|
|
|
|
(package
|
|
|
|
(name "dblatex")
|
2020-12-19 08:35:54 -05:00
|
|
|
(version "0.3.12")
|
2014-09-29 17:58:56 -04:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2016-07-21 02:35:30 -04:00
|
|
|
(uri (string-append "mirror://sourceforge/dblatex/dblatex/"
|
2020-12-19 08:35:54 -05:00
|
|
|
"dblatex-" version "/dblatex3-"
|
2014-09-29 17:58:56 -04:00
|
|
|
version ".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
gnu: dblatex: Fix missing texlive binaries and fig2dev.
The binaries for dblatex aren't provided by texlive-updmap.cfg but by
texlive-bin.
* gnu/packages/patches/dblatex-inkscape-1.0.patch: New file.
* gnu/local.mk: Register it.
* gnu/packages/docbook.scm (dblatex)[source]: Use dblatex-inkscape-1.0.patch.
[arguments]<#:tests?>: Enable tests.
<#:phases>: Rename 'set-path to 'wrap-dblatex. Wrap with texlive-bin rather
than texlive-updmap.cfg in PATH and wrap GUIX_TEXMF in 'wrap-dblatex. Add
'check-wrap phase.
[native-inputs]: Add docbook-mathml-1.0.
[inputs]: Restyle. Add texlive-bin. Replace inkscape/stable with inkscape.
Within texlive-updmap.cfg add previously missing: texlive-amsmath,
texlive-auxhook, texlive-bigintcalc, texlive-bin, texlive-bitset,
texlive-bookmark, texlive-colortbl, texlive-courier, texlive-eepic,
texlive-epstopdf-pkg, texlive-eso-pic, texlive-etexcmds, texlive-fancyhdr,
texlive-gettitlestring, texlive-graphics, texlive-graphics-cfg,
texlive-helvetic, texlive-hycolor, texlive-hyperref, texlive-infwarerr,
texlive-intcalc, texlive-kpathsea, texlive-kvdefinekeys, texlive-kvoptions,
texlive-kvsetkeys, texlive-l3backend, texlive-latex, texlive-latex-bin,
texlive-letltxmacro, texlive-ltxcmds, texlive-pdfescape, texlive-pdflscape,
texlive-pdftexcmds, texlive-psnfss, texlive-rerunfilecheck, texlive-symbol,
texlive-times, texlive-tools, texlive-uniquecounter, texlive-url and
texlive-zapfding. Add fig2dev.
(dblatex/stable)[inputs]: Replace inkscape with inkscape/stable.
Co-authored-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Change-Id: I4fb2e1f894b98a4e33a0438a1dda569eeb9eae81
2023-10-09 16:06:09 -04:00
|
|
|
"0yd09nypswy3q4scri1dg7dr99d7gd6r2dwx0xm81l9f4y32gs0n"))
|
|
|
|
(patches
|
|
|
|
(search-patches "dblatex-inkscape-1.0.patch"))))
|
2023-10-09 16:06:07 -04:00
|
|
|
(outputs '("out" "doc"))
|
2014-09-29 17:58:56 -04:00
|
|
|
(build-system python-build-system)
|
2023-04-25 20:56:59 -04:00
|
|
|
(arguments
|
|
|
|
(list
|
|
|
|
;; Using setuptools causes an invalid "package_base" path in
|
|
|
|
;; out/bin/.dblatex-real due to a missing leading '/'. This is caused
|
|
|
|
;; by dblatex's setup.py stripping the root path when creating the
|
|
|
|
;; script. (dblatex's setup.py still uses distutils and thus has to
|
|
|
|
;; create the script by itself. The feature for creating scripts is one
|
|
|
|
;; of setuptools' features.)
|
|
|
|
;; See this thread for details:
|
|
|
|
;; https://lists.gnu.org/archive/html/guix-devel/2016-12/msg00030.html
|
|
|
|
#:use-setuptools? #f
|
|
|
|
#:tests? #f ;no test suite
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
2023-10-09 16:06:07 -04:00
|
|
|
(add-after 'install 'move-doc
|
|
|
|
(lambda _
|
|
|
|
(let ((old (string-append #$output "/share/doc"))
|
|
|
|
(new (string-append #$output:doc "/share/doc")))
|
|
|
|
(mkdir-p (dirname new))
|
|
|
|
(rename-file old new))))
|
gnu: dblatex: Fix missing texlive binaries and fig2dev.
The binaries for dblatex aren't provided by texlive-updmap.cfg but by
texlive-bin.
* gnu/packages/patches/dblatex-inkscape-1.0.patch: New file.
* gnu/local.mk: Register it.
* gnu/packages/docbook.scm (dblatex)[source]: Use dblatex-inkscape-1.0.patch.
[arguments]<#:tests?>: Enable tests.
<#:phases>: Rename 'set-path to 'wrap-dblatex. Wrap with texlive-bin rather
than texlive-updmap.cfg in PATH and wrap GUIX_TEXMF in 'wrap-dblatex. Add
'check-wrap phase.
[native-inputs]: Add docbook-mathml-1.0.
[inputs]: Restyle. Add texlive-bin. Replace inkscape/stable with inkscape.
Within texlive-updmap.cfg add previously missing: texlive-amsmath,
texlive-auxhook, texlive-bigintcalc, texlive-bin, texlive-bitset,
texlive-bookmark, texlive-colortbl, texlive-courier, texlive-eepic,
texlive-epstopdf-pkg, texlive-eso-pic, texlive-etexcmds, texlive-fancyhdr,
texlive-gettitlestring, texlive-graphics, texlive-graphics-cfg,
texlive-helvetic, texlive-hycolor, texlive-hyperref, texlive-infwarerr,
texlive-intcalc, texlive-kpathsea, texlive-kvdefinekeys, texlive-kvoptions,
texlive-kvsetkeys, texlive-l3backend, texlive-latex, texlive-latex-bin,
texlive-letltxmacro, texlive-ltxcmds, texlive-pdfescape, texlive-pdflscape,
texlive-pdftexcmds, texlive-psnfss, texlive-rerunfilecheck, texlive-symbol,
texlive-times, texlive-tools, texlive-uniquecounter, texlive-url and
texlive-zapfding. Add fig2dev.
(dblatex/stable)[inputs]: Replace inkscape with inkscape/stable.
Co-authored-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Change-Id: I4fb2e1f894b98a4e33a0438a1dda569eeb9eae81
2023-10-09 16:06:09 -04:00
|
|
|
(add-after 'wrap 'wrap-dblatex
|
2023-04-25 20:56:59 -04:00
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
gnu: dblatex: Fix missing texlive binaries and fig2dev.
The binaries for dblatex aren't provided by texlive-updmap.cfg but by
texlive-bin.
* gnu/packages/patches/dblatex-inkscape-1.0.patch: New file.
* gnu/local.mk: Register it.
* gnu/packages/docbook.scm (dblatex)[source]: Use dblatex-inkscape-1.0.patch.
[arguments]<#:tests?>: Enable tests.
<#:phases>: Rename 'set-path to 'wrap-dblatex. Wrap with texlive-bin rather
than texlive-updmap.cfg in PATH and wrap GUIX_TEXMF in 'wrap-dblatex. Add
'check-wrap phase.
[native-inputs]: Add docbook-mathml-1.0.
[inputs]: Restyle. Add texlive-bin. Replace inkscape/stable with inkscape.
Within texlive-updmap.cfg add previously missing: texlive-amsmath,
texlive-auxhook, texlive-bigintcalc, texlive-bin, texlive-bitset,
texlive-bookmark, texlive-colortbl, texlive-courier, texlive-eepic,
texlive-epstopdf-pkg, texlive-eso-pic, texlive-etexcmds, texlive-fancyhdr,
texlive-gettitlestring, texlive-graphics, texlive-graphics-cfg,
texlive-helvetic, texlive-hycolor, texlive-hyperref, texlive-infwarerr,
texlive-intcalc, texlive-kpathsea, texlive-kvdefinekeys, texlive-kvoptions,
texlive-kvsetkeys, texlive-l3backend, texlive-latex, texlive-latex-bin,
texlive-letltxmacro, texlive-ltxcmds, texlive-pdfescape, texlive-pdflscape,
texlive-pdftexcmds, texlive-psnfss, texlive-rerunfilecheck, texlive-symbol,
texlive-times, texlive-tools, texlive-uniquecounter, texlive-url and
texlive-zapfding. Add fig2dev.
(dblatex/stable)[inputs]: Replace inkscape with inkscape/stable.
Co-authored-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Change-Id: I4fb2e1f894b98a4e33a0438a1dda569eeb9eae81
2023-10-09 16:06:09 -04:00
|
|
|
(let ((path
|
|
|
|
(search-path-as-list
|
|
|
|
'("bin")
|
|
|
|
'#$(map (cut this-package-input <>)
|
|
|
|
(list "libxslt" "imagemagick" "inkscape"
|
|
|
|
"fig2dev" "texlive-bin")))))
|
2023-04-25 20:56:59 -04:00
|
|
|
;; dblatex executes helper programs at runtime.
|
|
|
|
(wrap-program (string-append #$output "/bin/dblatex")
|
gnu: dblatex: Fix missing texlive binaries and fig2dev.
The binaries for dblatex aren't provided by texlive-updmap.cfg but by
texlive-bin.
* gnu/packages/patches/dblatex-inkscape-1.0.patch: New file.
* gnu/local.mk: Register it.
* gnu/packages/docbook.scm (dblatex)[source]: Use dblatex-inkscape-1.0.patch.
[arguments]<#:tests?>: Enable tests.
<#:phases>: Rename 'set-path to 'wrap-dblatex. Wrap with texlive-bin rather
than texlive-updmap.cfg in PATH and wrap GUIX_TEXMF in 'wrap-dblatex. Add
'check-wrap phase.
[native-inputs]: Add docbook-mathml-1.0.
[inputs]: Restyle. Add texlive-bin. Replace inkscape/stable with inkscape.
Within texlive-updmap.cfg add previously missing: texlive-amsmath,
texlive-auxhook, texlive-bigintcalc, texlive-bin, texlive-bitset,
texlive-bookmark, texlive-colortbl, texlive-courier, texlive-eepic,
texlive-epstopdf-pkg, texlive-eso-pic, texlive-etexcmds, texlive-fancyhdr,
texlive-gettitlestring, texlive-graphics, texlive-graphics-cfg,
texlive-helvetic, texlive-hycolor, texlive-hyperref, texlive-infwarerr,
texlive-intcalc, texlive-kpathsea, texlive-kvdefinekeys, texlive-kvoptions,
texlive-kvsetkeys, texlive-l3backend, texlive-latex, texlive-latex-bin,
texlive-letltxmacro, texlive-ltxcmds, texlive-pdfescape, texlive-pdflscape,
texlive-pdftexcmds, texlive-psnfss, texlive-rerunfilecheck, texlive-symbol,
texlive-times, texlive-tools, texlive-uniquecounter, texlive-url and
texlive-zapfding. Add fig2dev.
(dblatex/stable)[inputs]: Replace inkscape with inkscape/stable.
Co-authored-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Change-Id: I4fb2e1f894b98a4e33a0438a1dda569eeb9eae81
2023-10-09 16:06:09 -04:00
|
|
|
`("PATH" ":" prefix ,path)
|
|
|
|
`("GUIX_TEXMF" prefix (,(getenv "GUIX_TEXMF")))))))
|
|
|
|
(add-after 'check 'check-wrap
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
(when tests?
|
|
|
|
(unsetenv "GUIX_TEXMF")
|
|
|
|
(invoke/quiet (string-append #$output "/bin/dblatex")
|
|
|
|
"--quiet" "tests/mathml/mmltest2.xml")))))))
|
|
|
|
(native-inputs (list docbook-mathml-1.0))
|
2014-09-29 17:58:56 -04:00
|
|
|
(inputs
|
2021-07-02 06:07:41 -04:00
|
|
|
(list bash-minimal
|
|
|
|
texlive-bin
|
gnu: dblatex: Fix missing texlive binaries and fig2dev.
The binaries for dblatex aren't provided by texlive-updmap.cfg but by
texlive-bin.
* gnu/packages/patches/dblatex-inkscape-1.0.patch: New file.
* gnu/local.mk: Register it.
* gnu/packages/docbook.scm (dblatex)[source]: Use dblatex-inkscape-1.0.patch.
[arguments]<#:tests?>: Enable tests.
<#:phases>: Rename 'set-path to 'wrap-dblatex. Wrap with texlive-bin rather
than texlive-updmap.cfg in PATH and wrap GUIX_TEXMF in 'wrap-dblatex. Add
'check-wrap phase.
[native-inputs]: Add docbook-mathml-1.0.
[inputs]: Restyle. Add texlive-bin. Replace inkscape/stable with inkscape.
Within texlive-updmap.cfg add previously missing: texlive-amsmath,
texlive-auxhook, texlive-bigintcalc, texlive-bin, texlive-bitset,
texlive-bookmark, texlive-colortbl, texlive-courier, texlive-eepic,
texlive-epstopdf-pkg, texlive-eso-pic, texlive-etexcmds, texlive-fancyhdr,
texlive-gettitlestring, texlive-graphics, texlive-graphics-cfg,
texlive-helvetic, texlive-hycolor, texlive-hyperref, texlive-infwarerr,
texlive-intcalc, texlive-kpathsea, texlive-kvdefinekeys, texlive-kvoptions,
texlive-kvsetkeys, texlive-l3backend, texlive-latex, texlive-latex-bin,
texlive-letltxmacro, texlive-ltxcmds, texlive-pdfescape, texlive-pdflscape,
texlive-pdftexcmds, texlive-psnfss, texlive-rerunfilecheck, texlive-symbol,
texlive-times, texlive-tools, texlive-uniquecounter, texlive-url and
texlive-zapfding. Add fig2dev.
(dblatex/stable)[inputs]: Replace inkscape with inkscape/stable.
Co-authored-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Change-Id: I4fb2e1f894b98a4e33a0438a1dda569eeb9eae81
2023-10-09 16:06:09 -04:00
|
|
|
(texlive-updmap.cfg (list texlive-amsmath
|
|
|
|
texlive-anysize
|
|
|
|
texlive-appendix
|
|
|
|
texlive-auxhook
|
|
|
|
texlive-bigintcalc
|
|
|
|
texlive-bin
|
|
|
|
texlive-bitset
|
|
|
|
texlive-bookmark
|
|
|
|
texlive-changebar
|
|
|
|
texlive-colortbl
|
|
|
|
texlive-courier
|
|
|
|
texlive-eepic
|
|
|
|
texlive-epstopdf-pkg
|
|
|
|
texlive-eso-pic
|
|
|
|
texlive-etexcmds
|
|
|
|
texlive-fancybox
|
|
|
|
texlive-fancyhdr
|
|
|
|
texlive-fancyvrb
|
|
|
|
texlive-float
|
|
|
|
texlive-footmisc
|
|
|
|
texlive-gettitlestring
|
|
|
|
texlive-graphics
|
|
|
|
texlive-graphics-cfg
|
|
|
|
texlive-helvetic
|
|
|
|
texlive-hycolor
|
|
|
|
texlive-hyperref
|
|
|
|
texlive-infwarerr
|
|
|
|
texlive-intcalc
|
|
|
|
texlive-jknapltx
|
|
|
|
texlive-kpathsea
|
|
|
|
texlive-kvdefinekeys
|
|
|
|
texlive-kvoptions
|
|
|
|
texlive-kvsetkeys
|
|
|
|
texlive-l3backend
|
|
|
|
texlive-latex
|
|
|
|
texlive-latex-bin
|
|
|
|
texlive-letltxmacro
|
|
|
|
texlive-listings
|
|
|
|
texlive-ltxcmds
|
|
|
|
texlive-multirow
|
|
|
|
texlive-overpic
|
|
|
|
texlive-pdfescape
|
|
|
|
texlive-pdflscape
|
|
|
|
texlive-pdfpages
|
|
|
|
texlive-pdftexcmds
|
|
|
|
texlive-psnfss
|
|
|
|
texlive-refcount
|
|
|
|
texlive-rerunfilecheck
|
|
|
|
texlive-rsfs
|
|
|
|
texlive-stmaryrd
|
|
|
|
texlive-subfigure
|
|
|
|
texlive-symbol
|
|
|
|
texlive-times
|
|
|
|
texlive-titlesec
|
|
|
|
texlive-tools
|
|
|
|
texlive-uniquecounter
|
|
|
|
texlive-url
|
|
|
|
texlive-wasysym
|
|
|
|
texlive-zapfding))
|
|
|
|
fig2dev
|
2023-04-25 20:56:59 -04:00
|
|
|
imagemagick ;for convert
|
gnu: dblatex: Fix missing texlive binaries and fig2dev.
The binaries for dblatex aren't provided by texlive-updmap.cfg but by
texlive-bin.
* gnu/packages/patches/dblatex-inkscape-1.0.patch: New file.
* gnu/local.mk: Register it.
* gnu/packages/docbook.scm (dblatex)[source]: Use dblatex-inkscape-1.0.patch.
[arguments]<#:tests?>: Enable tests.
<#:phases>: Rename 'set-path to 'wrap-dblatex. Wrap with texlive-bin rather
than texlive-updmap.cfg in PATH and wrap GUIX_TEXMF in 'wrap-dblatex. Add
'check-wrap phase.
[native-inputs]: Add docbook-mathml-1.0.
[inputs]: Restyle. Add texlive-bin. Replace inkscape/stable with inkscape.
Within texlive-updmap.cfg add previously missing: texlive-amsmath,
texlive-auxhook, texlive-bigintcalc, texlive-bin, texlive-bitset,
texlive-bookmark, texlive-colortbl, texlive-courier, texlive-eepic,
texlive-epstopdf-pkg, texlive-eso-pic, texlive-etexcmds, texlive-fancyhdr,
texlive-gettitlestring, texlive-graphics, texlive-graphics-cfg,
texlive-helvetic, texlive-hycolor, texlive-hyperref, texlive-infwarerr,
texlive-intcalc, texlive-kpathsea, texlive-kvdefinekeys, texlive-kvoptions,
texlive-kvsetkeys, texlive-l3backend, texlive-latex, texlive-latex-bin,
texlive-letltxmacro, texlive-ltxcmds, texlive-pdfescape, texlive-pdflscape,
texlive-pdftexcmds, texlive-psnfss, texlive-rerunfilecheck, texlive-symbol,
texlive-times, texlive-tools, texlive-uniquecounter, texlive-url and
texlive-zapfding. Add fig2dev.
(dblatex/stable)[inputs]: Replace inkscape with inkscape/stable.
Co-authored-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Change-Id: I4fb2e1f894b98a4e33a0438a1dda569eeb9eae81
2023-10-09 16:06:09 -04:00
|
|
|
inkscape ;for svg conversion
|
2023-04-25 20:56:59 -04:00
|
|
|
docbook-xml
|
|
|
|
libxslt)) ;for xsltproc
|
2023-10-09 16:06:06 -04:00
|
|
|
;; lib/dbtexmf/xslt/4xslt.py shows that this package
|
|
|
|
;; makes use of XML_CATALOG_FILES and also invokes
|
|
|
|
;; xsltproc.
|
|
|
|
(native-search-paths %libxslt-search-paths)
|
gnu: Use HTTPS package home pages wherever possible.
* gnu/packages/accessibility.scm (florence)[home-page]: Use HTTPS.
* gnu/packages/admin.scm (netcat, nmon)[home-page]: Likewise.
* gnu/packages/algebra.scm (mpfrcx, cm, flint, fftw, r-dtt)[home-page]:
Likewise.
* gnu/packages/apr.scm (apr, apr-util)[home-page]: Likewise.
* gnu/packages/aspell.scm (aspell-dict-it)[home-page]: Likewise.
* gnu/packages/astronomy.scm (casacore, sextractor, libnova)
(xplanet)[home-page]: Likewise.
* gnu/packages/audio.scm (libtimidity, alsa-modular-synth, azr3, tao)
(freepats, rakarrack, liblo, libshout-idjc, timidity++, libsbsms)
(libmodplug, libxmp, xmp, sox, drc, gsm, gnaural)
(streamripper)[home-page]: Likewise.
* gnu/packages/authentication.scm (pamtester)[home-page]: Likewise.
* gnu/packages/backup.scm (grsync)[home-page]: Likewise.
* gnu/packages/bioconductor.scm (r-nmf, r-edger, r-limma)
(r-plgem)[home-page]: Likewise.
* gnu/packages/bioinformatics.scm (python-biom-format, bowtie, bowtie1)
(bwa, crossmap, java-htsjdk, java-htsjdk-latest, java-picard)
(java-picard-2.10.3, kaiju, proteinortho, rsem, rseqc, seek, samtools)
(snap-aligner, subread, stringtie, r-centipede, prinseq, emboss, phylip)
(libsbml)[home-page]: Likewise.
* gnu/packages/build-tools.scm (tup)[home-page]: Likewise.
* gnu/packages/cdrom.scm (libcddb, cdrdao, cdrtools)
(cd-discid)[home-page]: Likewise.
* gnu/packages/check.scm (cunit, python-nose)
(python-pyhamcrest)[home-page]: Likewise.
* gnu/packages/chemistry.scm (gromacs)[home-page]: Likewise.
* gnu/packages/chez.scm (chez-fmt)[home-page]: Likewise.
* gnu/packages/code.scm (lcov, uncrustify, cscope)[home-page]: Likewise.
* gnu/packages/compression.scm (p7zip)[home-page]: Likewise.
* gnu/packages/cran.scm (r-emdist, r-proj4, r-zoo, r-ggalluvial)
(r-orgmassspecr, r-polychrome, r-partykit, r-rcpp, r-ff, r-emdbook)
(r-fitdistrplus, r-linprog, r-geometry, r-dtw, r-fst, r-rjags)
(r-intergraph, r-qualv, r-labelled, r-survey, r-coin, r-fmsb, r-tm)
(r-corpcor, r-rmpfr, r-spatialextremes, r-longitudinal, r-genenet)
(r-bayesm, r-seqinr, r-mpm, r-text2vec, r-rgdal, r-seewave, r-hdrcde)
(r-shapes, r-anytime, r-stm, r-d3network, r-tam, r-directlabels)
(r-spatstat-utils, r-spatstat-sparse, r-spatstat-data, r-spatstat-geom)
(r-spatstat-core, r-spatstat-linnet, r-spatstat-random, r-spatstat)
(r-rcpptoml, r-mlecens, r-seurat, r-mlearning, r-zooimage)[home-page]:
Likewise.
* gnu/packages/crates-io.scm (rust-nickel-0.11, rust-thrift-0.13)
(rust-trust-dns-https-0.20, rust-trust-dns-native-tls-0.20)
(rust-trust-dns-openssl-0.20, rust-trust-dns-proto-0.20)
(rust-trust-dns-resolver-0.20, rust-trust-dns-rustls-0.20)
(rust-uint-0.9, rust-yaml-rust-0.4)[home-page]: Likewise.
* gnu/packages/crypto.scm (libdecaf, ccrypt)[home-page]: Likewise.
* gnu/packages/curl.scm (curlpp)[home-page]: Likewise.
* gnu/packages/databases.scm (python-pylibmc, unixodbc, wiredtiger)
(libpqxx, mdbtools, virtuoso-ose, libdbi, libdbi-drivers)
(soci)[home-page]: Likewise.
* gnu/packages/debian.scm (apt-mirror)[home-page]: Likewise.
* gnu/packages/debug.scm (remake)[home-page]: Likewise.
* gnu/packages/disk.scm (sdparm, idle3-tools, duc)[home-page]: Likewise.
* gnu/packages/django.scm (python-django-haystack)[home-page]: Likewise.
* gnu/packages/djvu.scm (djvulibre, djview)[home-page]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[home-page]: Likewise.
* gnu/packages/docbook.scm (dblatex, docbook2x)[home-page]: Likewise.
* gnu/packages/documentation.scm (scrollkeeper)[home-page]: Likewise.
* gnu/packages/ebook.scm (liblinebreak)[home-page]: Likewise.
* gnu/packages/electronics.scm (xoscope)[home-page]: Likewise.
* gnu/packages/emacs-xyz.scm (emacs-bbdb, emacs-caps-lock, emacs-djvu)
(emacs-pabbrev, emacs-twittering-mode, emacs-filladapt, emacs-rudel)
(emacs-stream, emacspeak, emacs-cc-mode, emacs-eldoc, emacs-jsonrpc)
(emacs-gtk-look, emacs-xclip, emacs-slime-volleyball, emacs-minimap)
(emacs-auto-dictionary-mode, emacs-persist, emacs-shell-command+)
(emacs-map, emacs-xref, emacs-dictionary)[home-page]: Likewise.
* gnu/packages/embedded.scm (sdcc)[home-page]: Likewise.
* gnu/packages/engineering.scm (asco, libngspice, libspnav)
(openctm)[home-page]: Likewise.
* gnu/packages/erlang.scm (erlang-erlware-commons)[home-page]: Likewise.
* gnu/packages/file-systems.scm (jfsutils, curlftpfs)[home-page]:
Likewise.
* gnu/packages/finance.scm (gbonds)[home-page]: Likewise.
* gnu/packages/flashing-tools.scm (dfu-util, srecord)[home-page]:
Likewise.
* gnu/packages/fltk.scm (ntk)[home-page]: Likewise.
* gnu/packages/fonts.scm (font-terminus, font-tex-gyre)
(font-comic-neue)[home-page]: Likewise.
* gnu/packages/fontutils.scm (ttf2pt1, potrace, libspiro)[home-page]:
Likewise.
* gnu/packages/fpga.scm (icestorm, gtkwave, gtkwave)
(python-myhdl)[home-page]: Likewise.
* gnu/packages/freedesktop.scm (libatasmart)[home-page]: Likewise.
* gnu/packages/ftp.scm (weex)[home-page]: Likewise.
* gnu/packages/game-development.scm (dds, python-tmx, sfxr, quesoglc)
(eureka, plib)[home-page]: Likewise.
* gnu/packages/games.scm (abe, alex4, armagetronad, barony)
(foobillard++, golly, ltris, pipewalker, prboom-plus, trigger-rally)
(cmatrix, pinball, pioneers, tennix, chromium-bsu, freeciv, kiki)
(quakespasm, frotz, frotz-dumb-terminal, frotz-sdl, btanks)
(flare-engine, chessx, barrage, cgoban, passage)[home-page]: Likewise.
* gnu/packages/geo.scm (python-geopandas, saga)[home-page]: Likewise.
* gnu/packages/gl.scm (freeglut, gl2ps)[home-page]: Likewise.
* gnu/packages/gnome.scm (cogl, clutter-gtk, clutter-gst, bluefish)
(workrave)[home-page]: Likewise.
* gnu/packages/gnustep.scm (wmnd, wmfire, wmfire)[home-page]: Likewise.
* gnu/packages/graph.scm (mscgen)[home-page]: Likewise.
* gnu/packages/graphics.scm (assimp, alembic, ctl, agg)
(opencsg)[home-page]: Likewise.
* gnu/packages/graphviz.scm (gts)[home-page]: Likewise.
* gnu/packages/gtk.scm (gtkspell3)[home-page]: Likewise.
* gnu/packages/guile-xyz.scm (guile-irregex)[home-page]: Likewise.
* gnu/packages/haskell-apps.scm (cpphs)[home-page]: Likewise.
* gnu/packages/haskell-check.scm (ghc-hunit)[home-page]: Likewise.
* gnu/packages/haskell-web.scm (ghc-http-client-restricted)
(ghc-blaze-html, ghc-happstack-server, ghc-sourcemap)[home-page]:
Likewise.
* gnu/packages/haskell-xyz.scm (ghc-assoc, ghc-cairo, ghc-cborg)
(ghc-csv, ghc-glob, ghc-gtk2hs-buildtools, ghc-hmatrix-gsl-stats)
(ghc-intervalmap, ghc-lens-family-core, ghc-managed, ghc-mountpoints)
(ghc-network-multicast, ghc-optional-args, ghc-regex, ghc-spoon)
(ghc-transformers, ghc-turtle, ghc-utf8-light, ghc-wizards)
(ghc-template-haskell, ghc-boot-th, ghc-binary-orphans)
(ghc-postgresql-simple)[home-page]: Likewise.
* gnu/packages/hexedit.scm (ht, bvi)[home-page]: Likewise.
* gnu/packages/hunspell.scm (hunspell-dict-hu)[home-page]: Likewise.
* gnu/packages/image-processing.scm (mia)[home-page]: Likewise.
* gnu/packages/image-viewers.scm (geeqie, gpicview, luminance-hdr)
(qiv)[home-page]: Likewise.
* gnu/packages/image.scm (libuemf, devil, steghide, optipng, niftilib)
(sng, mtpaint)[home-page]: Likewise.
* gnu/packages/java-xml.scm (java-simple-xml, java-jaxp)
(java-apache-xml-commons-resolver)[home-page]: Likewise.
* gnu/packages/java.scm (java-cisd-base, java-cisd-args4j)
(java-hamcrest-core, java-jsr305, java-eclipse-osgi)
(java-eclipse-equinox-common, java-eclipse-core-jobs)
(java-eclipse-equinox-registry, java-eclipse-equinox-app)
(java-eclipse-equinox-preferences, java-eclipse-core-contenttype)
(java-eclipse-text, java-treelayout, java-aopalliance, java-jeromq)
(java-cdi-api)[home-page]: Likewise.
* gnu/packages/jemalloc.scm (jemalloc-4.5.0)[home-page]: Likewise.
* gnu/packages/julia-xyz.scm (julia-recipespipeline)[home-page]:
Likewise.
* gnu/packages/kde-internet.scm (kget)[home-page]: Likewise.
* gnu/packages/kde-systemtools.scm (dolphin-plugins)
(konsole)[home-page]: Likewise.
* gnu/packages/kodi.scm (fstrcmp)[home-page]: Likewise.
* gnu/packages/language.scm (hime, libchewing)[home-page]: Likewise.
* gnu/packages/lego.scm (nqc)[home-page]: Likewise.
* gnu/packages/lesstif.scm (lesstif)[home-page]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[home-page]: Likewise.
* gnu/packages/libdaemon.scm (libdaemon)[home-page]: Likewise.
* gnu/packages/libffi.scm (libffi)[home-page]: Likewise.
* gnu/packages/libreoffice.scm (libwpd, libwpg, libwps)[home-page]:
Likewise.
* gnu/packages/libusb.scm (libmtp, gmtp)[home-page]: Likewise.
* gnu/packages/linux.scm (e2fsprogs, extundelete, lsscsi, net-tools)
(kbd, sysfsutils, cpuid, libpfm4)[home-page]: Likewise.
* gnu/packages/lisp-check.scm (sbcl-ptester, sbcl-xlunit)[home-page]:
Likewise.
* gnu/packages/lisp-xyz.scm (sbcl-html-encode, sbcl-py-configparser)
(sbcl-cl-utilities, sbcl-series, sbcl-uffi, sbcl-clsql, sbcl-sycamore)
(sbcl-osicat, sbcl-hu.dwim.common, sbcl-caveman, sbcl-trivial-shell)
(sbcl-trivial-benchmark, sbcl-screamer, sbcl-smug)[home-page]: Likewise.
* gnu/packages/lisp.scm (lush2)[home-page]: Likewise.
* gnu/packages/logging.scm (log4cpp)[home-page]: Likewise.
* gnu/packages/lua.scm (lua-ldoc)[home-page]: Likewise.
* gnu/packages/machine-learning.scm (mcl, openfst, rxcpp)[home-page]:
Likewise.
* gnu/packages/mail.scm (muchsync, procmail, sendmail)
(opensmtpd-filter-dkimsign, crm114)[home-page]: Likewise.
* gnu/packages/man.scm (libpipeline, man-db)[home-page]: Likewise.
* gnu/packages/maths.scm (lapack, scalapack, hdf-eos5, itpp, gmsh)
(metamath, p4est, armadillo, suitesparse, atlas, lpsolve, wcalc, why3)
(frama-c)[home-page]: Likewise.
* gnu/packages/mcrypt.scm (mcrypt, libmcrypt, libmhash)[home-page]:
Likewise.
* gnu/packages/minetest.scm (minetest-advtrains)[home-page]: Likewise.
* gnu/packages/monitoring.scm (python-whisper, python-carbon)
(hostscope)[home-page]: Likewise.
* gnu/packages/mp3.scm (id3lib, libmp3splt, mp3splt, mpg321)
(lame)[home-page]: Likewise.
* gnu/packages/multiprecision.scm (mpc)[home-page]: Likewise.
* gnu/packages/music.scm (aria-maestosa, lingot, setbfree, bristol)
(portmidi, python-pyportmidi, zynaddsubfx, yoshimi, aj-snapshot)
(schismtracker, midicsv, midicsv, qmidiarp, qmidiroute, dssi, tap-lv2)
(shiru-lv2)[home-page]: Likewise.
* gnu/packages/ncurses.scm (stfl)[home-page]: Likewise.
* gnu/packages/networking.scm (lksctp-tools, mbuffer, ifstatus, bird)
(tunctl, traceroute)[home-page]: Likewise.
* gnu/packages/node-xyz.scm (node-mersenne)[home-page]: Likewise.
* gnu/packages/ntp.scm (openntpd)[home-page]: Likewise.
* gnu/packages/ocaml.scm (opam, hevea, ocaml-menhir, ocaml-piqilib)
(ocaml-graph, cubicle)[home-page]: Likewise.
* gnu/packages/opencl.scm (python-pyopencl)[home-page]: Likewise.
* gnu/packages/package-management.scm (xstow, modules)[home-page]:
Likewise.
* gnu/packages/parallel.scm (xjobs)[home-page]: Likewise.
* gnu/packages/pdf.scm (podofo, qpdf, xournal, impressive)[home-page]:
Likewise.
* gnu/packages/perl.scm (perl-math-vecstat, perltidy)[home-page]:
Likewise.
* gnu/packages/photo.scm (libpano13, enblend-enfuse, hugin)[home-page]:
Likewise.
* gnu/packages/plan9.scm (drawterm)[home-page]: Likewise.
* gnu/packages/plotutils.scm (guile-charting, ploticus)[home-page]:
Likewise.
* gnu/packages/popt.scm (argtable, popt)[home-page]: Likewise.
* gnu/packages/profiling.scm (otf2)[home-page]: Likewise.
* gnu/packages/pulseaudio.scm (pulseaudio)[home-page]: Likewise.
* gnu/packages/python-check.scm (python-mypy)[home-page]: Likewise.
* gnu/packages/python-web.scm (python-cssutils)
(python-translationstring)[home-page]: Likewise.
* gnu/packages/python-xyz.scm (python-diskcache, python-doxyqml)
(python-docutils, python-pexpect, python-importlib-resources)
(python-simplegeneric, python-urwid, python-xlrd, python-xlwt)
(python-pyasn1, python-pythondialog, python-tftpy, python-random2)
(python-arcp, python-pyopengl, python-sortedcollections)
(python-sortedcontainers, python-yapsy, python-pydispatcher)
(python-posix-ipc)[home-page]: Likewise.
* gnu/packages/qt.scm (qwt, libqglviewer, signond)[home-page]: Likewise.
* gnu/packages/radio.scm (unixcw, gnuais)[home-page]: Likewise.
* gnu/packages/raspberry-pi.scm (bcm2835)[home-page]: Likewise.
* gnu/packages/rdf.scm (clucene, rasqal, redland)[home-page]: Likewise.
* gnu/packages/regex.scm (tre)[home-page]: Likewise.
* gnu/packages/rsync.scm (librsync)[home-page]: Likewise.
* gnu/packages/ruby.scm (ruby-packnga, ruby-nokogiri, ruby-oj, ruby-ox)
(ruby-sinatra, ruby-citrus, ruby-cbor, ruby-roda)[home-page]: Likewise.
* gnu/packages/scheme.scm (scheme48, tinyscheme)[home-page]: Likewise.
* gnu/packages/screen.scm (dtach)[home-page]: Likewise.
* gnu/packages/scsi.scm (sg3-utils)[home-page]: Likewise.
* gnu/packages/sdl.scm (libmikmod, sdl-pango)[home-page]: Likewise.
* gnu/packages/shellutils.scm (hstr, rig)[home-page]: Likewise.
* gnu/packages/simulation.scm (python-dolfin-adjoint)[home-page]:
Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[home-page]: Likewise.
* gnu/packages/speech.scm (espeak)[home-page]: Likewise.
* gnu/packages/stalonetray.scm (stalonetray)[home-page]: Likewise.
* gnu/packages/statistics.scm (jags, r-mass, r-class, r-lattice)
(r-matrix, r-nnet, r-spatial, r-bit, r-bit64, r-digest, r-xtable)
(python-statsmodels, r-ade4, r-latticeextra, r-rcurl, r-xml, r-mvtnorm)
(r-robustbase, r-minqa, r-fdrtool, java-jdistlib, xlispstat)[home-page]:
Likewise.
* gnu/packages/swig.scm (swig)[home-page]: Likewise.
* gnu/packages/task-management.scm (wtime)[home-page]: Likewise.
* gnu/packages/tcl.scm (itcl, tclxml, tclx)[home-page]: Likewise.
* gnu/packages/terminals.scm (libtermkey, mlterm, libvterm)
(libvterm)[home-page]: Likewise.
* gnu/packages/tex.scm (texlive-lm, texlive-lm-math, texlive-cs)
(texlive-csplain, biber, texmaker)[home-page]: Likewise.
* gnu/packages/text-editors.scm (joe)[home-page]: Likewise.
* gnu/packages/textutils.scm (drm-tools, docx2txt)[home-page]: Likewise.
* gnu/packages/tv.scm (tvtime)[home-page]: Likewise.
* gnu/packages/unicode.scm (libunibreak)[home-page]: Likewise.
* gnu/packages/upnp.scm (libupnp)[home-page]: Likewise.
* gnu/packages/version-control.scm (cvs)[home-page]: Likewise.
* gnu/packages/video.scm (transcode, libquicktime, mjpegtools, aalib)
(liba52, libmpeg2, x265, libdv, dvdauthor, aegisub, pitivi, gavl)
(dvdbackup, guvcview, video-contact-sheet)[home-page]: Likewise.
* gnu/packages/virtualization.scm (bochs)[home-page]: Likewise.
* gnu/packages/w3m.scm (w3m)[home-page]: Likewise.
* gnu/packages/web.scm (qjson, libquvi-scripts, libquvi, quvi)
(tidy-html, htmlcxx)[home-page]: Likewise.
* gnu/packages/wm.scm (evilwm, menumaker)[home-page]: Likewise.
* gnu/packages/wv.scm (wv)[home-page]: Likewise.
* gnu/packages/wxwidgets.scm (wxsvg)[home-page]: Likewise.
* gnu/packages/xdisorg.scm (mtdev, xsel)[home-page]: Likewise.
* gnu/packages/xfig.scm (xfig, transfig)[home-page]: Likewise.
* gnu/packages/xml.scm (openjade, python-pyxb, xmlstarlet, xmlrpc-c)
(opensp)[home-page]: Likewise.
* gnu/packages/xorg.scm (xf86-video-qxl)[home-page]: Likewise.
2023-02-11 19:00:00 -05:00
|
|
|
(home-page "https://dblatex.sourceforge.net")
|
2014-09-29 17:58:56 -04:00
|
|
|
(synopsis "DocBook to LaTeX Publishing")
|
|
|
|
(description
|
|
|
|
"DocBook to LaTeX Publishing transforms your SGML/XML DocBook documents
|
|
|
|
to DVI, PostScript or PDF by translating them in pure LaTeX as a first
|
|
|
|
process. MathML 2.0 markups are supported too. It started as a clone of
|
|
|
|
DB2LaTeX.")
|
|
|
|
;; lib/contrib/which is under an X11 license
|
2021-08-20 08:09:05 -04:00
|
|
|
(license license:gpl2+)))
|
2020-12-28 22:15:26 -05:00
|
|
|
|
2021-03-27 07:27:52 -04:00
|
|
|
;; This is a variant of the 'dblatex' package that is not updated often. It
|
|
|
|
;; is intended to be used as a native-input at build-time only, e.g. by
|
|
|
|
;; 'gtk-doc' for generating package documentation. This allows the main
|
|
|
|
;; 'dblatex' and 'imagemagick' packages to be freely updated on the 'master'
|
|
|
|
;; branch without triggering an excessive number of rebuilds.
|
|
|
|
(define-public dblatex/stable
|
|
|
|
(hidden-package
|
|
|
|
(package/inherit dblatex
|
2023-04-25 20:56:59 -04:00
|
|
|
(inputs (modify-inputs (package-inputs dblatex)
|
gnu: dblatex: Fix missing texlive binaries and fig2dev.
The binaries for dblatex aren't provided by texlive-updmap.cfg but by
texlive-bin.
* gnu/packages/patches/dblatex-inkscape-1.0.patch: New file.
* gnu/local.mk: Register it.
* gnu/packages/docbook.scm (dblatex)[source]: Use dblatex-inkscape-1.0.patch.
[arguments]<#:tests?>: Enable tests.
<#:phases>: Rename 'set-path to 'wrap-dblatex. Wrap with texlive-bin rather
than texlive-updmap.cfg in PATH and wrap GUIX_TEXMF in 'wrap-dblatex. Add
'check-wrap phase.
[native-inputs]: Add docbook-mathml-1.0.
[inputs]: Restyle. Add texlive-bin. Replace inkscape/stable with inkscape.
Within texlive-updmap.cfg add previously missing: texlive-amsmath,
texlive-auxhook, texlive-bigintcalc, texlive-bin, texlive-bitset,
texlive-bookmark, texlive-colortbl, texlive-courier, texlive-eepic,
texlive-epstopdf-pkg, texlive-eso-pic, texlive-etexcmds, texlive-fancyhdr,
texlive-gettitlestring, texlive-graphics, texlive-graphics-cfg,
texlive-helvetic, texlive-hycolor, texlive-hyperref, texlive-infwarerr,
texlive-intcalc, texlive-kpathsea, texlive-kvdefinekeys, texlive-kvoptions,
texlive-kvsetkeys, texlive-l3backend, texlive-latex, texlive-latex-bin,
texlive-letltxmacro, texlive-ltxcmds, texlive-pdfescape, texlive-pdflscape,
texlive-pdftexcmds, texlive-psnfss, texlive-rerunfilecheck, texlive-symbol,
texlive-times, texlive-tools, texlive-uniquecounter, texlive-url and
texlive-zapfding. Add fig2dev.
(dblatex/stable)[inputs]: Replace inkscape with inkscape/stable.
Co-authored-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Change-Id: I4fb2e1f894b98a4e33a0438a1dda569eeb9eae81
2023-10-09 16:06:09 -04:00
|
|
|
(replace "imagemagick" imagemagick/stable)
|
|
|
|
(replace "inkscape" inkscape/stable))))))
|
2021-04-16 07:39:48 -04:00
|
|
|
|
2020-12-28 22:15:26 -05:00
|
|
|
(define-public docbook-utils
|
|
|
|
(package
|
|
|
|
(name "docbook-utils")
|
|
|
|
(version "0.6.14")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
;; The original sources are not accessible anymore.
|
|
|
|
(uri (string-append "http://deb.debian.org/debian/pool/main/"
|
|
|
|
"d/docbook-utils/docbook-utils_"
|
|
|
|
version ".orig.tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2023-04-25 20:56:57 -04:00
|
|
|
"1scj5vgw1xz872pq54a89blcxqqm11p90yzv8a9mqq57x27apyj8"))
|
2023-10-09 16:05:59 -04:00
|
|
|
(patches
|
|
|
|
(search-patches "docbook-utils-documentation-edits.patch"
|
|
|
|
"docbook-utils-escape-characters.patch"
|
|
|
|
"docbook-utils-remove-jade-sp.patch"
|
|
|
|
"docbook-utils-respect-refentry-for-name.patch"
|
|
|
|
"docbook-utils-use-date-element.patch"
|
|
|
|
"docbook-utils-source-date-epoch.patch"))
|
2023-04-25 20:56:57 -04:00
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
#~(begin
|
|
|
|
;; Patch build system.
|
2023-10-09 16:05:59 -04:00
|
|
|
(substitute* (find-files "." "\\.(in|am)$")
|
2023-04-25 20:56:57 -04:00
|
|
|
;; Do not hard-code SGML_CATALOG_FILES.
|
2023-10-09 16:05:59 -04:00
|
|
|
((".*SGML_CATALOG_FILES=/etc/sgml/catalog.*") ""))
|
2023-04-25 20:56:57 -04:00
|
|
|
|
|
|
|
;; Do not override the SGML_CATALOG_FILES environment
|
|
|
|
;; variable.
|
|
|
|
(substitute* "bin/jw.in"
|
|
|
|
((".*SGML_CATALOG_FILES=`find.*")
|
|
|
|
"")
|
|
|
|
(("SGML_CATALOG_FILES=`echo.*")
|
|
|
|
":\n")
|
|
|
|
(("SGML_CATALOG_FILES=\"\"")
|
|
|
|
":")
|
|
|
|
(("\\bwhich\\b")
|
|
|
|
"command -v"))
|
|
|
|
|
|
|
|
;; Locate lynx, links or w3m from the PATH, not from
|
|
|
|
;; /usr/bin.
|
|
|
|
(substitute* "backends/txt"
|
|
|
|
(("CONVERT=/usr/bin/")
|
|
|
|
"CONVERT=")
|
|
|
|
(("\\[ -x /usr/bin/([^ ]+) \\]" _ command)
|
2023-10-09 16:05:59 -04:00
|
|
|
(format #f "command -v ~a > /dev/null" command)))
|
|
|
|
|
|
|
|
;; This forces autoreconf to be invoked, needed for patches
|
|
|
|
;; to be effective.
|
|
|
|
(delete-file "configure")))))
|
|
|
|
(native-inputs (list autoconf automake libtool))
|
2020-12-28 22:15:26 -05:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
;; Propagated for convenience. All these tools are used at run time to
|
|
|
|
;; provide the complete functionality of the docbook-utils commands.
|
|
|
|
(propagated-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list texlive-jadetex
|
|
|
|
docbook-sgml-3.1
|
|
|
|
docbook-dsssl
|
|
|
|
openjade
|
|
|
|
opensp
|
|
|
|
lynx
|
|
|
|
perl-sgmls))
|
2020-12-28 22:15:26 -05:00
|
|
|
(home-page "https://packages.debian.org/sid/docbook-utils")
|
|
|
|
(synopsis "DocBook converter to other formats")
|
|
|
|
(description "The docbook-utils package is a collection of utilities
|
|
|
|
intended to ease the use of SGML and XML.
|
|
|
|
@table @command
|
|
|
|
@item jw
|
|
|
|
Convert a SGML DocBook file to other formats such as Hyper Text Markup
|
|
|
|
Language (HTML), Rich Text Format (RTF), PostScript (PS), man, Portable
|
|
|
|
Document Format (PDF), TeX, Texinfo or plain text (txt). It can be used
|
|
|
|
more conveniently via the following wrappers:
|
2023-04-25 20:56:57 -04:00
|
|
|
@table @command
|
|
|
|
@item docbook2dvi
|
|
|
|
Convert a SGML DocBook file to the DVI format.
|
|
|
|
@item docbook2html
|
|
|
|
Convert a SGML DocBook file to an HTML document.
|
|
|
|
@item docbook2man
|
|
|
|
Convert a SGML DocBook file a man page.
|
|
|
|
@item docbook2pdf
|
|
|
|
@itemx docbook2ps
|
|
|
|
@itemx docbook2rtf
|
|
|
|
@itemx docbook2tex
|
|
|
|
@itemx docbook2texi
|
|
|
|
Convert a SGML DocBook file to a PDF/PS/RTF/TeX document.
|
|
|
|
@item docbook2txt
|
|
|
|
Convert a SGML DocBook file to a plain text document.
|
|
|
|
@end table
|
2020-12-28 22:15:26 -05:00
|
|
|
@item sgmldiff
|
|
|
|
Detect the differences in markup between two SGML files.
|
|
|
|
@end table")
|
2021-09-16 19:25:52 -04:00
|
|
|
(license license:gpl2+)))
|
|
|
|
|
2021-08-27 00:15:36 -04:00
|
|
|
(define-public docbook2x
|
|
|
|
(package
|
|
|
|
(name "docbook2x")
|
|
|
|
(version "0.8.8")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/docbook2x/docbook2x/"
|
|
|
|
version "/docbook2X-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2023-10-09 16:06:00 -04:00
|
|
|
"0ifwzk99rzjws0ixzimbvs83x6cxqk1xzmg84wa1p7bs6rypaxs0"))
|
|
|
|
(patches
|
|
|
|
(search-patches "docbook2x-filename-handling.patch"
|
|
|
|
"docbook2x-fix-synopsis.patch"
|
|
|
|
"docbook2x-manpage-typo.patch"
|
|
|
|
"docbook2x-preprocessor-declaration.patch"
|
|
|
|
"docbook2x-static-datadir-evaluation.patch"))
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
;; Fix a failing test (maybe it worked with old texinfo?)
|
|
|
|
#~(begin
|
|
|
|
(substitute* "test/complete-manuals/at1.xml"
|
|
|
|
(("<bridgehead>")
|
|
|
|
"<bridgehead renderas=\"sect2\">"))
|
|
|
|
;; Force a new autoreconf run.
|
|
|
|
(delete-file "configure")))))
|
2023-10-09 16:06:02 -04:00
|
|
|
(outputs '("out" "doc"))
|
2021-08-27 00:15:36 -04:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2023-04-20 23:11:43 -04:00
|
|
|
(list
|
2023-12-29 17:05:14 -05:00
|
|
|
#:make-flags ''("AM_MAKEINFOHTMLFLAGS=\"--no-split\"")
|
2023-10-09 16:06:04 -04:00
|
|
|
#:modules '((guix build gnu-build-system)
|
|
|
|
(guix build utils)
|
|
|
|
(srfi srfi-26))
|
2023-04-20 23:11:43 -04:00
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
2023-12-29 17:05:14 -05:00
|
|
|
(add-before 'build 'clean
|
|
|
|
(lambda _
|
|
|
|
(invoke "make" "clean")))
|
2023-10-09 16:06:02 -04:00
|
|
|
(add-after 'install 'move-doc
|
|
|
|
(lambda _
|
|
|
|
(let* ((old (string-append #$output "/share/doc"))
|
|
|
|
(new (string-append #$output:doc "/share/doc")))
|
|
|
|
(mkdir-p (dirname new))
|
|
|
|
(rename-file old new))))
|
2023-04-20 23:11:43 -04:00
|
|
|
(add-after 'install 'wrap-programs
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
2023-10-09 16:06:04 -04:00
|
|
|
(let ((programs
|
|
|
|
(map (lambda (p)
|
|
|
|
(search-input-file outputs
|
|
|
|
(string-append "bin/" p)))
|
|
|
|
'("db2x_manxml" "db2x_texixml" "db2x_xsltproc"
|
|
|
|
"docbook2man" "docbook2texi")))
|
|
|
|
(perl5lib
|
|
|
|
(search-path-as-list
|
|
|
|
'("/lib/perl5/site_perl")
|
|
|
|
(map (cut assoc-ref inputs <>)
|
|
|
|
'("perl-xml-namespacesupport"
|
|
|
|
"perl-xml-parser"
|
|
|
|
"perl-xml-sax"
|
|
|
|
"perl-xml-sax-base")))))
|
2023-04-20 23:11:43 -04:00
|
|
|
(map (lambda (program)
|
|
|
|
(wrap-program program
|
2023-10-09 16:06:03 -04:00
|
|
|
`("PERL5LIB" ":" prefix ,perl5lib)))
|
2023-04-20 23:11:43 -04:00
|
|
|
programs))))
|
2023-10-09 16:06:01 -04:00
|
|
|
(add-after 'install 'sgml-check
|
|
|
|
;; This is not covered by 'make check'.
|
|
|
|
;; Test that 'sgml2xml-isoent' works.
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
(when tests?
|
|
|
|
(invoke "make" "installcheck"))))
|
2023-04-20 23:11:43 -04:00
|
|
|
(add-after 'install 'create-symlinks
|
|
|
|
(lambda _
|
|
|
|
;; Create db2x_* symlinks to satisfy some configure scripts
|
|
|
|
;; which use these names to differentiate from an older
|
|
|
|
;; docbook2man script provided by docbook-utils.
|
|
|
|
(map (lambda (prog)
|
|
|
|
(symlink prog (string-append #$output
|
|
|
|
"/bin/db2x_" prog)))
|
|
|
|
'("docbook2man" "docbook2texi")))))))
|
2023-10-09 16:06:00 -04:00
|
|
|
(inputs
|
|
|
|
(list bash-minimal
|
2023-10-09 16:06:01 -04:00
|
|
|
opensp
|
2023-10-09 16:06:00 -04:00
|
|
|
perl
|
|
|
|
perl-xml-namespacesupport
|
|
|
|
perl-xml-parser
|
|
|
|
perl-xml-sax
|
|
|
|
perl-xml-sax-base
|
|
|
|
texinfo
|
|
|
|
libxslt))
|
|
|
|
(native-inputs
|
2023-10-09 16:06:01 -04:00
|
|
|
(list autoconf automake libtool
|
|
|
|
tidy-html
|
|
|
|
;; For tests
|
|
|
|
docbook-xml-4.1.2 docbook-xml-4.2 docbook-xml-4.4
|
|
|
|
groff-minimal libxml2))
|
2023-10-09 16:06:03 -04:00
|
|
|
(native-search-paths %libxslt-search-paths)
|
gnu: Use HTTPS package home pages wherever possible.
* gnu/packages/accessibility.scm (florence)[home-page]: Use HTTPS.
* gnu/packages/admin.scm (netcat, nmon)[home-page]: Likewise.
* gnu/packages/algebra.scm (mpfrcx, cm, flint, fftw, r-dtt)[home-page]:
Likewise.
* gnu/packages/apr.scm (apr, apr-util)[home-page]: Likewise.
* gnu/packages/aspell.scm (aspell-dict-it)[home-page]: Likewise.
* gnu/packages/astronomy.scm (casacore, sextractor, libnova)
(xplanet)[home-page]: Likewise.
* gnu/packages/audio.scm (libtimidity, alsa-modular-synth, azr3, tao)
(freepats, rakarrack, liblo, libshout-idjc, timidity++, libsbsms)
(libmodplug, libxmp, xmp, sox, drc, gsm, gnaural)
(streamripper)[home-page]: Likewise.
* gnu/packages/authentication.scm (pamtester)[home-page]: Likewise.
* gnu/packages/backup.scm (grsync)[home-page]: Likewise.
* gnu/packages/bioconductor.scm (r-nmf, r-edger, r-limma)
(r-plgem)[home-page]: Likewise.
* gnu/packages/bioinformatics.scm (python-biom-format, bowtie, bowtie1)
(bwa, crossmap, java-htsjdk, java-htsjdk-latest, java-picard)
(java-picard-2.10.3, kaiju, proteinortho, rsem, rseqc, seek, samtools)
(snap-aligner, subread, stringtie, r-centipede, prinseq, emboss, phylip)
(libsbml)[home-page]: Likewise.
* gnu/packages/build-tools.scm (tup)[home-page]: Likewise.
* gnu/packages/cdrom.scm (libcddb, cdrdao, cdrtools)
(cd-discid)[home-page]: Likewise.
* gnu/packages/check.scm (cunit, python-nose)
(python-pyhamcrest)[home-page]: Likewise.
* gnu/packages/chemistry.scm (gromacs)[home-page]: Likewise.
* gnu/packages/chez.scm (chez-fmt)[home-page]: Likewise.
* gnu/packages/code.scm (lcov, uncrustify, cscope)[home-page]: Likewise.
* gnu/packages/compression.scm (p7zip)[home-page]: Likewise.
* gnu/packages/cran.scm (r-emdist, r-proj4, r-zoo, r-ggalluvial)
(r-orgmassspecr, r-polychrome, r-partykit, r-rcpp, r-ff, r-emdbook)
(r-fitdistrplus, r-linprog, r-geometry, r-dtw, r-fst, r-rjags)
(r-intergraph, r-qualv, r-labelled, r-survey, r-coin, r-fmsb, r-tm)
(r-corpcor, r-rmpfr, r-spatialextremes, r-longitudinal, r-genenet)
(r-bayesm, r-seqinr, r-mpm, r-text2vec, r-rgdal, r-seewave, r-hdrcde)
(r-shapes, r-anytime, r-stm, r-d3network, r-tam, r-directlabels)
(r-spatstat-utils, r-spatstat-sparse, r-spatstat-data, r-spatstat-geom)
(r-spatstat-core, r-spatstat-linnet, r-spatstat-random, r-spatstat)
(r-rcpptoml, r-mlecens, r-seurat, r-mlearning, r-zooimage)[home-page]:
Likewise.
* gnu/packages/crates-io.scm (rust-nickel-0.11, rust-thrift-0.13)
(rust-trust-dns-https-0.20, rust-trust-dns-native-tls-0.20)
(rust-trust-dns-openssl-0.20, rust-trust-dns-proto-0.20)
(rust-trust-dns-resolver-0.20, rust-trust-dns-rustls-0.20)
(rust-uint-0.9, rust-yaml-rust-0.4)[home-page]: Likewise.
* gnu/packages/crypto.scm (libdecaf, ccrypt)[home-page]: Likewise.
* gnu/packages/curl.scm (curlpp)[home-page]: Likewise.
* gnu/packages/databases.scm (python-pylibmc, unixodbc, wiredtiger)
(libpqxx, mdbtools, virtuoso-ose, libdbi, libdbi-drivers)
(soci)[home-page]: Likewise.
* gnu/packages/debian.scm (apt-mirror)[home-page]: Likewise.
* gnu/packages/debug.scm (remake)[home-page]: Likewise.
* gnu/packages/disk.scm (sdparm, idle3-tools, duc)[home-page]: Likewise.
* gnu/packages/django.scm (python-django-haystack)[home-page]: Likewise.
* gnu/packages/djvu.scm (djvulibre, djview)[home-page]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[home-page]: Likewise.
* gnu/packages/docbook.scm (dblatex, docbook2x)[home-page]: Likewise.
* gnu/packages/documentation.scm (scrollkeeper)[home-page]: Likewise.
* gnu/packages/ebook.scm (liblinebreak)[home-page]: Likewise.
* gnu/packages/electronics.scm (xoscope)[home-page]: Likewise.
* gnu/packages/emacs-xyz.scm (emacs-bbdb, emacs-caps-lock, emacs-djvu)
(emacs-pabbrev, emacs-twittering-mode, emacs-filladapt, emacs-rudel)
(emacs-stream, emacspeak, emacs-cc-mode, emacs-eldoc, emacs-jsonrpc)
(emacs-gtk-look, emacs-xclip, emacs-slime-volleyball, emacs-minimap)
(emacs-auto-dictionary-mode, emacs-persist, emacs-shell-command+)
(emacs-map, emacs-xref, emacs-dictionary)[home-page]: Likewise.
* gnu/packages/embedded.scm (sdcc)[home-page]: Likewise.
* gnu/packages/engineering.scm (asco, libngspice, libspnav)
(openctm)[home-page]: Likewise.
* gnu/packages/erlang.scm (erlang-erlware-commons)[home-page]: Likewise.
* gnu/packages/file-systems.scm (jfsutils, curlftpfs)[home-page]:
Likewise.
* gnu/packages/finance.scm (gbonds)[home-page]: Likewise.
* gnu/packages/flashing-tools.scm (dfu-util, srecord)[home-page]:
Likewise.
* gnu/packages/fltk.scm (ntk)[home-page]: Likewise.
* gnu/packages/fonts.scm (font-terminus, font-tex-gyre)
(font-comic-neue)[home-page]: Likewise.
* gnu/packages/fontutils.scm (ttf2pt1, potrace, libspiro)[home-page]:
Likewise.
* gnu/packages/fpga.scm (icestorm, gtkwave, gtkwave)
(python-myhdl)[home-page]: Likewise.
* gnu/packages/freedesktop.scm (libatasmart)[home-page]: Likewise.
* gnu/packages/ftp.scm (weex)[home-page]: Likewise.
* gnu/packages/game-development.scm (dds, python-tmx, sfxr, quesoglc)
(eureka, plib)[home-page]: Likewise.
* gnu/packages/games.scm (abe, alex4, armagetronad, barony)
(foobillard++, golly, ltris, pipewalker, prboom-plus, trigger-rally)
(cmatrix, pinball, pioneers, tennix, chromium-bsu, freeciv, kiki)
(quakespasm, frotz, frotz-dumb-terminal, frotz-sdl, btanks)
(flare-engine, chessx, barrage, cgoban, passage)[home-page]: Likewise.
* gnu/packages/geo.scm (python-geopandas, saga)[home-page]: Likewise.
* gnu/packages/gl.scm (freeglut, gl2ps)[home-page]: Likewise.
* gnu/packages/gnome.scm (cogl, clutter-gtk, clutter-gst, bluefish)
(workrave)[home-page]: Likewise.
* gnu/packages/gnustep.scm (wmnd, wmfire, wmfire)[home-page]: Likewise.
* gnu/packages/graph.scm (mscgen)[home-page]: Likewise.
* gnu/packages/graphics.scm (assimp, alembic, ctl, agg)
(opencsg)[home-page]: Likewise.
* gnu/packages/graphviz.scm (gts)[home-page]: Likewise.
* gnu/packages/gtk.scm (gtkspell3)[home-page]: Likewise.
* gnu/packages/guile-xyz.scm (guile-irregex)[home-page]: Likewise.
* gnu/packages/haskell-apps.scm (cpphs)[home-page]: Likewise.
* gnu/packages/haskell-check.scm (ghc-hunit)[home-page]: Likewise.
* gnu/packages/haskell-web.scm (ghc-http-client-restricted)
(ghc-blaze-html, ghc-happstack-server, ghc-sourcemap)[home-page]:
Likewise.
* gnu/packages/haskell-xyz.scm (ghc-assoc, ghc-cairo, ghc-cborg)
(ghc-csv, ghc-glob, ghc-gtk2hs-buildtools, ghc-hmatrix-gsl-stats)
(ghc-intervalmap, ghc-lens-family-core, ghc-managed, ghc-mountpoints)
(ghc-network-multicast, ghc-optional-args, ghc-regex, ghc-spoon)
(ghc-transformers, ghc-turtle, ghc-utf8-light, ghc-wizards)
(ghc-template-haskell, ghc-boot-th, ghc-binary-orphans)
(ghc-postgresql-simple)[home-page]: Likewise.
* gnu/packages/hexedit.scm (ht, bvi)[home-page]: Likewise.
* gnu/packages/hunspell.scm (hunspell-dict-hu)[home-page]: Likewise.
* gnu/packages/image-processing.scm (mia)[home-page]: Likewise.
* gnu/packages/image-viewers.scm (geeqie, gpicview, luminance-hdr)
(qiv)[home-page]: Likewise.
* gnu/packages/image.scm (libuemf, devil, steghide, optipng, niftilib)
(sng, mtpaint)[home-page]: Likewise.
* gnu/packages/java-xml.scm (java-simple-xml, java-jaxp)
(java-apache-xml-commons-resolver)[home-page]: Likewise.
* gnu/packages/java.scm (java-cisd-base, java-cisd-args4j)
(java-hamcrest-core, java-jsr305, java-eclipse-osgi)
(java-eclipse-equinox-common, java-eclipse-core-jobs)
(java-eclipse-equinox-registry, java-eclipse-equinox-app)
(java-eclipse-equinox-preferences, java-eclipse-core-contenttype)
(java-eclipse-text, java-treelayout, java-aopalliance, java-jeromq)
(java-cdi-api)[home-page]: Likewise.
* gnu/packages/jemalloc.scm (jemalloc-4.5.0)[home-page]: Likewise.
* gnu/packages/julia-xyz.scm (julia-recipespipeline)[home-page]:
Likewise.
* gnu/packages/kde-internet.scm (kget)[home-page]: Likewise.
* gnu/packages/kde-systemtools.scm (dolphin-plugins)
(konsole)[home-page]: Likewise.
* gnu/packages/kodi.scm (fstrcmp)[home-page]: Likewise.
* gnu/packages/language.scm (hime, libchewing)[home-page]: Likewise.
* gnu/packages/lego.scm (nqc)[home-page]: Likewise.
* gnu/packages/lesstif.scm (lesstif)[home-page]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[home-page]: Likewise.
* gnu/packages/libdaemon.scm (libdaemon)[home-page]: Likewise.
* gnu/packages/libffi.scm (libffi)[home-page]: Likewise.
* gnu/packages/libreoffice.scm (libwpd, libwpg, libwps)[home-page]:
Likewise.
* gnu/packages/libusb.scm (libmtp, gmtp)[home-page]: Likewise.
* gnu/packages/linux.scm (e2fsprogs, extundelete, lsscsi, net-tools)
(kbd, sysfsutils, cpuid, libpfm4)[home-page]: Likewise.
* gnu/packages/lisp-check.scm (sbcl-ptester, sbcl-xlunit)[home-page]:
Likewise.
* gnu/packages/lisp-xyz.scm (sbcl-html-encode, sbcl-py-configparser)
(sbcl-cl-utilities, sbcl-series, sbcl-uffi, sbcl-clsql, sbcl-sycamore)
(sbcl-osicat, sbcl-hu.dwim.common, sbcl-caveman, sbcl-trivial-shell)
(sbcl-trivial-benchmark, sbcl-screamer, sbcl-smug)[home-page]: Likewise.
* gnu/packages/lisp.scm (lush2)[home-page]: Likewise.
* gnu/packages/logging.scm (log4cpp)[home-page]: Likewise.
* gnu/packages/lua.scm (lua-ldoc)[home-page]: Likewise.
* gnu/packages/machine-learning.scm (mcl, openfst, rxcpp)[home-page]:
Likewise.
* gnu/packages/mail.scm (muchsync, procmail, sendmail)
(opensmtpd-filter-dkimsign, crm114)[home-page]: Likewise.
* gnu/packages/man.scm (libpipeline, man-db)[home-page]: Likewise.
* gnu/packages/maths.scm (lapack, scalapack, hdf-eos5, itpp, gmsh)
(metamath, p4est, armadillo, suitesparse, atlas, lpsolve, wcalc, why3)
(frama-c)[home-page]: Likewise.
* gnu/packages/mcrypt.scm (mcrypt, libmcrypt, libmhash)[home-page]:
Likewise.
* gnu/packages/minetest.scm (minetest-advtrains)[home-page]: Likewise.
* gnu/packages/monitoring.scm (python-whisper, python-carbon)
(hostscope)[home-page]: Likewise.
* gnu/packages/mp3.scm (id3lib, libmp3splt, mp3splt, mpg321)
(lame)[home-page]: Likewise.
* gnu/packages/multiprecision.scm (mpc)[home-page]: Likewise.
* gnu/packages/music.scm (aria-maestosa, lingot, setbfree, bristol)
(portmidi, python-pyportmidi, zynaddsubfx, yoshimi, aj-snapshot)
(schismtracker, midicsv, midicsv, qmidiarp, qmidiroute, dssi, tap-lv2)
(shiru-lv2)[home-page]: Likewise.
* gnu/packages/ncurses.scm (stfl)[home-page]: Likewise.
* gnu/packages/networking.scm (lksctp-tools, mbuffer, ifstatus, bird)
(tunctl, traceroute)[home-page]: Likewise.
* gnu/packages/node-xyz.scm (node-mersenne)[home-page]: Likewise.
* gnu/packages/ntp.scm (openntpd)[home-page]: Likewise.
* gnu/packages/ocaml.scm (opam, hevea, ocaml-menhir, ocaml-piqilib)
(ocaml-graph, cubicle)[home-page]: Likewise.
* gnu/packages/opencl.scm (python-pyopencl)[home-page]: Likewise.
* gnu/packages/package-management.scm (xstow, modules)[home-page]:
Likewise.
* gnu/packages/parallel.scm (xjobs)[home-page]: Likewise.
* gnu/packages/pdf.scm (podofo, qpdf, xournal, impressive)[home-page]:
Likewise.
* gnu/packages/perl.scm (perl-math-vecstat, perltidy)[home-page]:
Likewise.
* gnu/packages/photo.scm (libpano13, enblend-enfuse, hugin)[home-page]:
Likewise.
* gnu/packages/plan9.scm (drawterm)[home-page]: Likewise.
* gnu/packages/plotutils.scm (guile-charting, ploticus)[home-page]:
Likewise.
* gnu/packages/popt.scm (argtable, popt)[home-page]: Likewise.
* gnu/packages/profiling.scm (otf2)[home-page]: Likewise.
* gnu/packages/pulseaudio.scm (pulseaudio)[home-page]: Likewise.
* gnu/packages/python-check.scm (python-mypy)[home-page]: Likewise.
* gnu/packages/python-web.scm (python-cssutils)
(python-translationstring)[home-page]: Likewise.
* gnu/packages/python-xyz.scm (python-diskcache, python-doxyqml)
(python-docutils, python-pexpect, python-importlib-resources)
(python-simplegeneric, python-urwid, python-xlrd, python-xlwt)
(python-pyasn1, python-pythondialog, python-tftpy, python-random2)
(python-arcp, python-pyopengl, python-sortedcollections)
(python-sortedcontainers, python-yapsy, python-pydispatcher)
(python-posix-ipc)[home-page]: Likewise.
* gnu/packages/qt.scm (qwt, libqglviewer, signond)[home-page]: Likewise.
* gnu/packages/radio.scm (unixcw, gnuais)[home-page]: Likewise.
* gnu/packages/raspberry-pi.scm (bcm2835)[home-page]: Likewise.
* gnu/packages/rdf.scm (clucene, rasqal, redland)[home-page]: Likewise.
* gnu/packages/regex.scm (tre)[home-page]: Likewise.
* gnu/packages/rsync.scm (librsync)[home-page]: Likewise.
* gnu/packages/ruby.scm (ruby-packnga, ruby-nokogiri, ruby-oj, ruby-ox)
(ruby-sinatra, ruby-citrus, ruby-cbor, ruby-roda)[home-page]: Likewise.
* gnu/packages/scheme.scm (scheme48, tinyscheme)[home-page]: Likewise.
* gnu/packages/screen.scm (dtach)[home-page]: Likewise.
* gnu/packages/scsi.scm (sg3-utils)[home-page]: Likewise.
* gnu/packages/sdl.scm (libmikmod, sdl-pango)[home-page]: Likewise.
* gnu/packages/shellutils.scm (hstr, rig)[home-page]: Likewise.
* gnu/packages/simulation.scm (python-dolfin-adjoint)[home-page]:
Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[home-page]: Likewise.
* gnu/packages/speech.scm (espeak)[home-page]: Likewise.
* gnu/packages/stalonetray.scm (stalonetray)[home-page]: Likewise.
* gnu/packages/statistics.scm (jags, r-mass, r-class, r-lattice)
(r-matrix, r-nnet, r-spatial, r-bit, r-bit64, r-digest, r-xtable)
(python-statsmodels, r-ade4, r-latticeextra, r-rcurl, r-xml, r-mvtnorm)
(r-robustbase, r-minqa, r-fdrtool, java-jdistlib, xlispstat)[home-page]:
Likewise.
* gnu/packages/swig.scm (swig)[home-page]: Likewise.
* gnu/packages/task-management.scm (wtime)[home-page]: Likewise.
* gnu/packages/tcl.scm (itcl, tclxml, tclx)[home-page]: Likewise.
* gnu/packages/terminals.scm (libtermkey, mlterm, libvterm)
(libvterm)[home-page]: Likewise.
* gnu/packages/tex.scm (texlive-lm, texlive-lm-math, texlive-cs)
(texlive-csplain, biber, texmaker)[home-page]: Likewise.
* gnu/packages/text-editors.scm (joe)[home-page]: Likewise.
* gnu/packages/textutils.scm (drm-tools, docx2txt)[home-page]: Likewise.
* gnu/packages/tv.scm (tvtime)[home-page]: Likewise.
* gnu/packages/unicode.scm (libunibreak)[home-page]: Likewise.
* gnu/packages/upnp.scm (libupnp)[home-page]: Likewise.
* gnu/packages/version-control.scm (cvs)[home-page]: Likewise.
* gnu/packages/video.scm (transcode, libquicktime, mjpegtools, aalib)
(liba52, libmpeg2, x265, libdv, dvdauthor, aegisub, pitivi, gavl)
(dvdbackup, guvcview, video-contact-sheet)[home-page]: Likewise.
* gnu/packages/virtualization.scm (bochs)[home-page]: Likewise.
* gnu/packages/w3m.scm (w3m)[home-page]: Likewise.
* gnu/packages/web.scm (qjson, libquvi-scripts, libquvi, quvi)
(tidy-html, htmlcxx)[home-page]: Likewise.
* gnu/packages/wm.scm (evilwm, menumaker)[home-page]: Likewise.
* gnu/packages/wv.scm (wv)[home-page]: Likewise.
* gnu/packages/wxwidgets.scm (wxsvg)[home-page]: Likewise.
* gnu/packages/xdisorg.scm (mtdev, xsel)[home-page]: Likewise.
* gnu/packages/xfig.scm (xfig, transfig)[home-page]: Likewise.
* gnu/packages/xml.scm (openjade, python-pyxb, xmlstarlet, xmlrpc-c)
(opensp)[home-page]: Likewise.
* gnu/packages/xorg.scm (xf86-video-qxl)[home-page]: Likewise.
2023-02-11 19:00:00 -05:00
|
|
|
(home-page "https://docbook2x.sourceforge.net")
|
2021-08-27 00:15:36 -04:00
|
|
|
(synopsis "Convert DocBook to man page and Texinfo format")
|
|
|
|
(description
|
|
|
|
"docbook2X is a software package that converts DocBook documents into the
|
|
|
|
traditional Unix man page format and the GNU Texinfo format. Notable features
|
|
|
|
include table support for man pages, internationalization support, and easy
|
|
|
|
customization of the output using XSLT.")
|
|
|
|
(license license:expat)))
|