2014-01-17 22:47:31 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2022-03-02 15:08:57 +00:00
|
|
|
;;; Copyright © 2014, 2021-2022 Ludovic Courtès <ludo@gnu.org>
|
2014-09-29 21:58:56 +00:00
|
|
|
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
|
2016-04-07 18:58:25 +00:00
|
|
|
;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
|
2018-02-20 03:18:43 +00:00
|
|
|
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
2020-06-14 13:19:31 +00:00
|
|
|
;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
|
2018-07-03 13:04:02 +00:00
|
|
|
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
2021-03-27 11:27:52 +00:00
|
|
|
;;; Copyright © 2021 Mark H Weaver <mhw@netris.org>
|
2021-09-14 06:39:59 +00:00
|
|
|
;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il>
|
2021-08-27 04:15:36 +00:00
|
|
|
;;; Copyright © 2021 Andrew Whatson <whatson@gmail.com>
|
2014-01-17 22:47:31 +00: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)
|
2021-08-27 04:15:36 +00:00
|
|
|
#:use-module (gnu packages bash)
|
2014-01-17 22:47:31 +00:00
|
|
|
#:use-module (gnu packages compression)
|
2014-09-29 21:58:56 +00:00
|
|
|
#:use-module (gnu packages imagemagick)
|
|
|
|
#:use-module (gnu packages inkscape)
|
2016-05-24 19:18:53 +00:00
|
|
|
#:use-module (gnu packages tex)
|
2021-08-27 04:15:36 +00:00
|
|
|
#:use-module (gnu packages texinfo)
|
2020-12-29 03:15:26 +00:00
|
|
|
#:use-module (gnu packages perl)
|
2014-09-29 21:58:56 +00:00
|
|
|
#:use-module (gnu packages python)
|
2014-06-12 11:03:53 +00:00
|
|
|
#:use-module (gnu packages base)
|
2020-12-29 03:15:26 +00:00
|
|
|
#:use-module (gnu packages web-browsers)
|
2014-09-29 21:58:56 +00:00
|
|
|
#:use-module (gnu packages xml)
|
2021-08-20 12:09:05 +00:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2014-01-17 22:47:31 +00:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
2021-03-27 11:27:52 +00:00
|
|
|
#:use-module ((guix build utils) #:select (alist-replace))
|
2021-10-17 07:23:39 +00:00
|
|
|
#:use-module (guix build-system copy)
|
2020-12-29 03:15:26 +00:00
|
|
|
#:use-module (guix build-system gnu)
|
2014-01-17 22:47:31 +00:00
|
|
|
#:use-module (guix build-system trivial)
|
gnu: Move contents of zip module into compression module.
* gnu/packages/zip.scm (zip, unzip, zziplib, perl-zip): Move to...
* gnu/packages/compression.scm: ...here.
* gnu/packages/zip.scm: Delete file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Unregister deleted file.
* po/packages/POTFILES.in: Unregister deleted file.
* gnu/packages/{audio, avr, bioinformatics, busybox, cdrom, ci, compression,
docbook, documentation, fonts, fpga, game-development, games, gl, gnome,
gnuzilla, graphics, guile, haskell, image, java, kodi, ldc, libreoffice,
markup, maths, mc, monitoring, music, php, pretty-print, python, scheme,
smalltalk, statistics, synergy, tex, textutils, video, web-browsers, xml,
zip}.scm, guix/build-system/{ant, font}.scm, guix/{download, packages}.scm:
Adapt module import.
2017-06-12 18:40:01 +00:00
|
|
|
#:use-module (guix build-system python))
|
2014-01-17 22:47:31 +00:00
|
|
|
|
2020-06-14 13:19:31 +00:00
|
|
|
(define-public docbook-xml-5
|
|
|
|
(package
|
|
|
|
(name "docbook-xml")
|
|
|
|
(version "5.0.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2020-11-09 09:30:46 +00:00
|
|
|
(uri (string-append "https://docbook.org/xml/" version
|
2020-06-14 13:19:31 +00:00
|
|
|
"/docbook-" version ".zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1iz3hq1lqgnshvlz4j9gvh4jy1ml74qf90vqf2ikbq0h4i2xzybs"))))
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:modules ((guix build utils))
|
|
|
|
#:builder
|
|
|
|
(begin
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
(let* ((unzip
|
|
|
|
(string-append (assoc-ref %build-inputs "unzip")
|
|
|
|
"/bin/unzip"))
|
|
|
|
(source (assoc-ref %build-inputs "source"))
|
|
|
|
(out (assoc-ref %outputs "out"))
|
|
|
|
(dtd (string-append out "/xml/dtd/docbook")))
|
|
|
|
(invoke unzip source)
|
|
|
|
(mkdir-p dtd)
|
|
|
|
(copy-recursively (string-append "docbook-" ,version) dtd)
|
|
|
|
(with-directory-excursion dtd
|
|
|
|
(substitute* (string-append out "/xml/dtd/docbook/catalog.xml")
|
|
|
|
(("uri=\"")
|
|
|
|
(string-append
|
|
|
|
"uri=\"file://" dtd "/")))
|
|
|
|
#t)))))
|
2021-12-13 16:18:24 +00:00
|
|
|
(native-inputs (list unzip))
|
2020-06-14 13:19:31 +00: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 12:09:05 +00:00
|
|
|
(license (license:x11-style "" "See file headers."))))
|
2020-06-14 13:19:31 +00:00
|
|
|
|
2014-01-17 22:47:31 +00:00
|
|
|
(define-public docbook-xml
|
|
|
|
(package
|
2020-06-14 13:19:31 +00:00
|
|
|
(inherit docbook-xml-5)
|
2014-01-17 22:47:31 +00:00
|
|
|
(name "docbook-xml")
|
|
|
|
(version "4.5")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2020-11-09 09:30:46 +00:00
|
|
|
(uri (string-append "https://docbook.org/xml/" version
|
2014-01-17 22:47:31 +00:00
|
|
|
"/docbook-xml-" version ".zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1d671lcjckjri28xfbf6dq7y3xnkppa910w1jin8rjc35dx06kjf"))))
|
|
|
|
(arguments
|
|
|
|
'(#:builder (begin
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
|
|
(let* ((unzip
|
|
|
|
(string-append (assoc-ref %build-inputs "unzip")
|
|
|
|
"/bin/unzip"))
|
|
|
|
(source (assoc-ref %build-inputs "source"))
|
|
|
|
(out (assoc-ref %outputs "out"))
|
|
|
|
(dtd (string-append out "/xml/dtd/docbook")))
|
|
|
|
(mkdir-p dtd)
|
|
|
|
(with-directory-excursion dtd
|
gnu: Use invoke and return #t from all builders.
* gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/audio.scm,
gnu/packages/avr.scm, gnu/packages/base.scm, gnu/packages/bioinformatics.scm,
gnu/packages/certs.scm, gnu/packages/check.scm, gnu/packages/code.scm,
gnu/packages/commencement.scm, gnu/packages/dictionaries.scm,
gnu/packages/docbook.scm, gnu/packages/emacs.scm, gnu/packages/embedded.scm,
gnu/packages/fonts.scm, gnu/packages/games.scm, gnu/packages/gnome.scm,
gnu/packages/gnu-doc.scm, gnu/packages/guile.scm, gnu/packages/hurd.scm,
gnu/packages/javascript.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm, gnu/packages/lxde.scm,
gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/mate.scm,
gnu/packages/pkg-config.scm, gnu/packages/qt.scm, gnu/packages/rust.scm,
gnu/packages/scheme.scm, gnu/packages/sdl.scm, gnu/packages/statistics.scm,
gnu/packages/syncthing.scm, gnu/packages/tex.scm, gnu/packages/web.scm,
gnu/packages/wine.scm, gnu/packages/xfce.scm: In the builders of packages
using 'trivial-build-system', use invoke where appropriate, raise exceptions
on errors, and otherwise return #t.
2018-03-28 00:14:05 +00:00
|
|
|
(invoke unzip source))
|
2014-07-13 15:08:55 +00:00
|
|
|
(substitute* (string-append out "/xml/dtd/docbook/catalog.xml")
|
2020-06-14 13:19:31 +00:00
|
|
|
(("uri=\"")
|
|
|
|
(string-append
|
gnu: Use invoke and return #t from all builders.
* gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/audio.scm,
gnu/packages/avr.scm, gnu/packages/base.scm, gnu/packages/bioinformatics.scm,
gnu/packages/certs.scm, gnu/packages/check.scm, gnu/packages/code.scm,
gnu/packages/commencement.scm, gnu/packages/dictionaries.scm,
gnu/packages/docbook.scm, gnu/packages/emacs.scm, gnu/packages/embedded.scm,
gnu/packages/fonts.scm, gnu/packages/games.scm, gnu/packages/gnome.scm,
gnu/packages/gnu-doc.scm, gnu/packages/guile.scm, gnu/packages/hurd.scm,
gnu/packages/javascript.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm, gnu/packages/lxde.scm,
gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/mate.scm,
gnu/packages/pkg-config.scm, gnu/packages/qt.scm, gnu/packages/rust.scm,
gnu/packages/scheme.scm, gnu/packages/sdl.scm, gnu/packages/statistics.scm,
gnu/packages/syncthing.scm, gnu/packages/tex.scm, gnu/packages/web.scm,
gnu/packages/wine.scm, gnu/packages/xfce.scm: In the builders of packages
using 'trivial-build-system', use invoke where appropriate, raise exceptions
on errors, and otherwise return #t.
2018-03-28 00:14:05 +00:00
|
|
|
"uri=\"file://" dtd "/")))
|
|
|
|
#t))
|
2020-06-14 13:19:31 +00:00
|
|
|
#:modules ((guix build utils))))))
|
2014-01-17 22:47:31 +00:00
|
|
|
|
2014-07-13 15:02:09 +00:00
|
|
|
(define-public docbook-xml-4.4
|
|
|
|
(package (inherit docbook-xml)
|
2016-04-07 18:58:25 +00:00
|
|
|
(version "4.4")
|
2014-07-13 15:02:09 +00:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2020-11-09 09:30:46 +00:00
|
|
|
(uri (string-append "https://docbook.org/xml/" version
|
2014-07-13 15:02:09 +00:00
|
|
|
"/docbook-xml-" version ".zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"141h4zsyc71sfi2zzd89v4bb4qqq9ca1ri9ix2als9f4i3mmkw82"))))))
|
|
|
|
|
|
|
|
(define-public docbook-xml-4.3
|
|
|
|
(package (inherit docbook-xml)
|
2016-04-07 18:58:25 +00:00
|
|
|
(version "4.3")
|
2014-07-13 15:02:09 +00:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2020-11-09 09:30:46 +00:00
|
|
|
(uri (string-append "https://docbook.org/xml/" version
|
2014-07-13 15:02:09 +00:00
|
|
|
"/docbook-xml-" version ".zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0r1l2if1z4wm2v664sqdizm4gak6db1kx9y50jq89m3gxaa8l1i3"))))))
|
|
|
|
|
2014-11-04 17:43:08 +00:00
|
|
|
(define-public docbook-xml-4.2
|
|
|
|
(package (inherit docbook-xml)
|
2016-04-07 18:58:25 +00:00
|
|
|
(version "4.2")
|
2014-11-04 17:43:08 +00:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2020-11-09 09:30:46 +00:00
|
|
|
(uri (string-append "https://docbook.org/xml/" version
|
2014-11-04 17:43:08 +00:00
|
|
|
"/docbook-xml-" version ".zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"18hgwvmywh6a5jh38szjmg3hg2r4v5lb6r3ydc3rd8cp9wg61i5c"))))))
|
|
|
|
|
2016-04-07 18:58:25 +00:00
|
|
|
(define-public docbook-xml-4.1.2
|
|
|
|
(package (inherit docbook-xml)
|
|
|
|
(version "4.1.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2020-11-09 09:30:46 +00:00
|
|
|
(uri (string-append "https://docbook.org/xml/" version
|
2016-04-07 18:58:25 +00:00
|
|
|
"/docbkx412.zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0wkp5rvnqj0ghxia0558mnn4c7s3n501j99q2isp3sp0ci069w1h"))))
|
|
|
|
(arguments
|
|
|
|
'(#:modules ((guix build utils))
|
|
|
|
#:builder
|
|
|
|
(begin
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
(let ((source (assoc-ref %build-inputs "source"))
|
|
|
|
(unzip (string-append (assoc-ref %build-inputs "unzip")
|
|
|
|
"/bin/unzip"))
|
|
|
|
(dtd (string-append (assoc-ref %outputs "out")
|
|
|
|
"/xml/dtd/docbook")))
|
|
|
|
(mkdir-p dtd)
|
gnu: Use invoke and return #t from all builders.
* gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/audio.scm,
gnu/packages/avr.scm, gnu/packages/base.scm, gnu/packages/bioinformatics.scm,
gnu/packages/certs.scm, gnu/packages/check.scm, gnu/packages/code.scm,
gnu/packages/commencement.scm, gnu/packages/dictionaries.scm,
gnu/packages/docbook.scm, gnu/packages/emacs.scm, gnu/packages/embedded.scm,
gnu/packages/fonts.scm, gnu/packages/games.scm, gnu/packages/gnome.scm,
gnu/packages/gnu-doc.scm, gnu/packages/guile.scm, gnu/packages/hurd.scm,
gnu/packages/javascript.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm, gnu/packages/lxde.scm,
gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/mate.scm,
gnu/packages/pkg-config.scm, gnu/packages/qt.scm, gnu/packages/rust.scm,
gnu/packages/scheme.scm, gnu/packages/sdl.scm, gnu/packages/statistics.scm,
gnu/packages/syncthing.scm, gnu/packages/tex.scm, gnu/packages/web.scm,
gnu/packages/wine.scm, gnu/packages/xfce.scm: In the builders of packages
using 'trivial-build-system', use invoke where appropriate, raise exceptions
on errors, and otherwise return #t.
2018-03-28 00:14:05 +00:00
|
|
|
(invoke unzip source "-d" dtd)))))))
|
2016-04-07 18:58:25 +00:00
|
|
|
|
2014-01-17 22:47:31 +00:00
|
|
|
(define-public docbook-xsl
|
|
|
|
(package
|
|
|
|
(name "docbook-xsl")
|
2020-06-14 15:21:23 +00:00
|
|
|
(version "1.79.2")
|
2014-01-17 22:47:31 +00:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2020-06-14 15:21:23 +00:00
|
|
|
(uri (string-append "https://github.com/docbook/xslt10-stylesheets"
|
|
|
|
"/releases/download/release%2F" version
|
|
|
|
"/docbook-xsl-" version ".tar.bz2"))
|
|
|
|
(patches (search-patches "docbook-xsl-support-old-url.patch"
|
|
|
|
"docbook-xsl-nonrecursive-string-subst.patch"))
|
2014-01-17 22:47:31 +00:00
|
|
|
(sha256
|
|
|
|
(base32
|
2020-06-14 15:21:23 +00:00
|
|
|
"0wd33z41kdsybyx3ay21w6bdlmgpd9kyn3mr5y520lsf8km28r9i"))
|
2018-07-23 23:04:07 +00:00
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
(for-each delete-file (find-files "." "\\.jar$"))
|
|
|
|
#t))))
|
2014-01-17 22:47:31 +00:00
|
|
|
(build-system trivial-build-system)
|
|
|
|
(arguments
|
2021-03-08 12:59:23 +00:00
|
|
|
`(#:builder (begin
|
2014-01-17 22:47:31 +00:00
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
2021-03-08 12:59:23 +00:00
|
|
|
(define name-version
|
|
|
|
(string-append ,name "-" ,version))
|
|
|
|
|
2014-01-17 22:47:31 +00:00
|
|
|
(let* ((bzip2 (assoc-ref %build-inputs "bzip2"))
|
2017-12-20 16:40:43 +00:00
|
|
|
(xz (assoc-ref %build-inputs "xz"))
|
2014-01-17 22:47:31 +00:00
|
|
|
(tar (assoc-ref %build-inputs "tar"))
|
|
|
|
(source (assoc-ref %build-inputs "source"))
|
|
|
|
(out (assoc-ref %outputs "out"))
|
|
|
|
(xsl (string-append out "/xml/xsl")))
|
2017-12-20 16:40:43 +00:00
|
|
|
(setenv "PATH" (string-append bzip2 "/bin" ":" xz "/bin"))
|
gnu: Use invoke and return #t from all builders.
* gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/audio.scm,
gnu/packages/avr.scm, gnu/packages/base.scm, gnu/packages/bioinformatics.scm,
gnu/packages/certs.scm, gnu/packages/check.scm, gnu/packages/code.scm,
gnu/packages/commencement.scm, gnu/packages/dictionaries.scm,
gnu/packages/docbook.scm, gnu/packages/emacs.scm, gnu/packages/embedded.scm,
gnu/packages/fonts.scm, gnu/packages/games.scm, gnu/packages/gnome.scm,
gnu/packages/gnu-doc.scm, gnu/packages/guile.scm, gnu/packages/hurd.scm,
gnu/packages/javascript.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm, gnu/packages/lxde.scm,
gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/mate.scm,
gnu/packages/pkg-config.scm, gnu/packages/qt.scm, gnu/packages/rust.scm,
gnu/packages/scheme.scm, gnu/packages/sdl.scm, gnu/packages/statistics.scm,
gnu/packages/syncthing.scm, gnu/packages/tex.scm, gnu/packages/web.scm,
gnu/packages/wine.scm, gnu/packages/xfce.scm: In the builders of packages
using 'trivial-build-system', use invoke where appropriate, raise exceptions
on errors, and otherwise return #t.
2018-03-28 00:14:05 +00:00
|
|
|
(invoke (string-append tar "/bin/tar") "xvf" source)
|
2014-01-17 22:47:31 +00:00
|
|
|
|
|
|
|
(mkdir-p xsl)
|
2014-07-13 15:15:47 +00:00
|
|
|
(copy-recursively name-version
|
|
|
|
(string-append xsl "/" name-version))
|
|
|
|
|
|
|
|
(substitute* (string-append xsl "/" name-version "/catalog.xml")
|
gnu: Adjust formatting as recommended by 'guix lint'.
* gnu/packages/aidc.scm (barcode, qrencode),
gnu/packages/bash.scm (bash, bash-completion),
gnu/packages/busybox.scm (busybox),
gnu/packages/cdrom.scm (cdparanoia),
gnu/packages/cmake.scm (cmake),
gnu/packages/conkeror.scm (conkeror),
gnu/packages/cook.scm (cook),
gnu/packages/curl.scm (curl),
gnu/packages/docbook.scm (docbook-xsl),
gnu/packages/enlightenment.scm (enlightenment),
gnu/packages/games.scm (abbaye),
gnu/packages/geeqie.scm (exiv2),
gnu/packages/gimp.scm (gegl),
gnu/packages/gl.scm (glu, freeglut, ftgl),
gnu/packages/glib.scm (glib),
gnu/packages/gnome.scm (orbit2, gconf, geocode-glib),
gnu/packages/gstreamer.scm (gstreamer, gst-plugins-base),
gnu/packages/linux.scm (util-linux),
gnu/packages/lisp.scm (gcl, ecl),
gnu/packages/maths.scm (gnuplot, hdf5),
gnu/packages/ssh.scm (dropbear),
gnu/packages/web.scm (json-c): Remove tabulations and trailing
white spaces or reformat to fit within 80 columns.
* gnu/packages/audio.scm (aubio),
gnu/packages/emacs.scm (emacs-s),
gnu/packages/engineering.scm (geda-gaf),
gnu/packages/games.scm (dosbox),
gnu/packages/gnome.scm (gusb),
gnu/packages/gtk.scm (gtk+),
gnu/packages/guile.scm (guile-wisp),
gnu/packages/hurd.scm (hurd-headers),
gnu/packages/wm.scm (i3-wm): Adjust synopsis or description.
2015-11-13 14:50:36 +00:00
|
|
|
(("rewritePrefix=\"./")
|
|
|
|
(string-append "rewritePrefix=\"file://" xsl "/"
|
gnu: Use invoke and return #t from all builders.
* gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/audio.scm,
gnu/packages/avr.scm, gnu/packages/base.scm, gnu/packages/bioinformatics.scm,
gnu/packages/certs.scm, gnu/packages/check.scm, gnu/packages/code.scm,
gnu/packages/commencement.scm, gnu/packages/dictionaries.scm,
gnu/packages/docbook.scm, gnu/packages/emacs.scm, gnu/packages/embedded.scm,
gnu/packages/fonts.scm, gnu/packages/games.scm, gnu/packages/gnome.scm,
gnu/packages/gnu-doc.scm, gnu/packages/guile.scm, gnu/packages/hurd.scm,
gnu/packages/javascript.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm, gnu/packages/lxde.scm,
gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/mate.scm,
gnu/packages/pkg-config.scm, gnu/packages/qt.scm, gnu/packages/rust.scm,
gnu/packages/scheme.scm, gnu/packages/sdl.scm, gnu/packages/statistics.scm,
gnu/packages/syncthing.scm, gnu/packages/tex.scm, gnu/packages/web.scm,
gnu/packages/wine.scm, gnu/packages/xfce.scm: In the builders of packages
using 'trivial-build-system', use invoke where appropriate, raise exceptions
on errors, and otherwise return #t.
2018-03-28 00:14:05 +00:00
|
|
|
name-version "/")))
|
|
|
|
#t))
|
|
|
|
#:modules ((guix build utils))))
|
2021-12-13 16:18:24 +00:00
|
|
|
(native-inputs (list bzip2 xz ;needed for repacked tarballs
|
|
|
|
tar))
|
2020-01-18 11:38:35 +00:00
|
|
|
(home-page "https://docbook.org")
|
2014-01-17 22:47:31 +00:00
|
|
|
(synopsis "DocBook XSL style sheets for document authoring")
|
|
|
|
(description
|
|
|
|
"This package provides XSL style sheets for DocBook.")
|
2021-08-20 12:09:05 +00:00
|
|
|
(license (license:x11-style "" "See 'COPYING' file."))))
|
2014-09-29 21:58:56 +00:00
|
|
|
|
2021-10-17 07:23:39 +00:00
|
|
|
(define-public docbook-xsl-ns
|
|
|
|
(package
|
|
|
|
(name "docbook-xsl-ns")
|
|
|
|
(version "1.79.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/docbook/"
|
|
|
|
name "/" version "/"
|
|
|
|
name "-" version ".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"170ggf5dgjar65kkn5n33kvjr3pdinpj66nnxfx8b2avw0k91jin"))))
|
|
|
|
(build-system copy-build-system)
|
|
|
|
(outputs '("out" "doc"))
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
;; XXX: The copy-build-system doesn't seem to allow installing to a
|
|
|
|
;; different output.
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(xml (string-append out "/xml/xsl/" ,name "-" ,version))
|
|
|
|
(doc (string-append (assoc-ref %outputs "doc")
|
|
|
|
"/share/doc/" ,name "-" ,version))
|
|
|
|
(select-rx (make-regexp
|
|
|
|
"(\\.xml$|\\.xsl$|\\.dtd$|\\.ent$)")))
|
|
|
|
;; Install catalog.
|
|
|
|
(install-file "catalog.xml" xml)
|
|
|
|
(install-file "VERSION.xsl" xml)
|
|
|
|
(substitute* (string-append xml "/catalog.xml")
|
|
|
|
(("rewritePrefix=\"./")
|
|
|
|
(string-append "rewritePrefix=\"file://" xml "/")))
|
|
|
|
;; Install style sheets.
|
|
|
|
(for-each (lambda (dir)
|
|
|
|
(for-each (lambda (f)
|
|
|
|
(install-file
|
|
|
|
f (string-append xml "/" (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"))
|
|
|
|
;; Install documentation.
|
|
|
|
(install-file "NEWS" doc)
|
|
|
|
(install-file "RELEASE-NOTES.html" doc)
|
|
|
|
(copy-recursively "slides" doc)
|
|
|
|
(copy-recursively "webhelp" doc)))))))
|
|
|
|
(home-page "https://docbook.org")
|
|
|
|
(synopsis "DocBook XSL namespaced style sheets for document authoring")
|
|
|
|
(description "This package provides the @emph{namespaced} XSL style sheets
|
|
|
|
for DocBook.")
|
|
|
|
(license (license:x11-style "" "See 'COPYING' file."))))
|
|
|
|
|
2018-09-09 15:47:41 +00: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
|
|
|
|
"1g72y2yyc2k89kzs0lvrb9n7hjayw1hdskfpplpz97pf1c99wcig"))))
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
(outputs '("out" "doc"))
|
|
|
|
(arguments
|
|
|
|
`(#:modules ((guix build utils))
|
|
|
|
#:builder
|
|
|
|
(begin
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
(let ((source (assoc-ref %build-inputs "source"))
|
|
|
|
(dtd (string-append (assoc-ref %outputs "out")
|
|
|
|
"/sgml/dtd/docbook"))
|
|
|
|
(docbook-dsssl-doc (assoc-ref %build-inputs "docbook-dsssl-doc"))
|
|
|
|
(doc (assoc-ref %outputs "doc"))
|
|
|
|
(tar (assoc-ref %build-inputs "tar"))
|
|
|
|
(bzip2 (assoc-ref %build-inputs "bzip2")))
|
|
|
|
(setenv "PATH" (string-append tar "/bin" ":" bzip2 "/bin"))
|
|
|
|
(mkdir-p dtd)
|
|
|
|
(invoke "tar" "-xf" source "-C" dtd)
|
|
|
|
;; The doc output contains 1.4 MiB of HTML documentation.
|
|
|
|
(symlink docbook-dsssl-doc doc)))))
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list docbook-dsssl-doc))
|
2018-09-09 15:47:41 +00:00
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list bzip2 tar))
|
2018-09-09 15:47:41 +00:00
|
|
|
(home-page "https://docbook.org/")
|
|
|
|
(synopsis "DSSSL style sheets for DocBook")
|
|
|
|
(description "This package provides DSSSL style sheets for DocBook.")
|
2021-08-20 12:09:05 +00:00
|
|
|
(license (license:non-copyleft "file://README"))))
|
2018-09-09 15:47:41 +00: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"))))
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:modules ((guix build utils))
|
|
|
|
#:builder
|
|
|
|
(begin
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
(let ((source (assoc-ref %build-inputs "source"))
|
|
|
|
(docdir (string-append (assoc-ref %outputs "out")
|
|
|
|
"/share/doc/" "docbook-dsssl-" ,version))
|
|
|
|
(tar (assoc-ref %build-inputs "tar"))
|
|
|
|
(bzip2 (assoc-ref %build-inputs "bzip2")))
|
|
|
|
(setenv "PATH" (string-append tar "/bin" ":" bzip2 "/bin"))
|
|
|
|
(mkdir-p docdir)
|
|
|
|
;; Extract the "doc" subdirectory.
|
|
|
|
(invoke "tar" "-xf" source "--strip-components=2"
|
|
|
|
"--no-same-owner" "-C" docdir
|
|
|
|
(string-append "docbook-dsssl-" ,version "/doc"))))))
|
|
|
|
(native-inputs
|
2021-03-06 11:37:04 +00:00
|
|
|
`(("bzip2" ,bzip2)
|
2018-09-09 15:47:41 +00:00
|
|
|
("tar" ,tar)))
|
|
|
|
(home-page "https://docbook.org/")
|
|
|
|
(synopsis "DocBook DSSSL style sheets documentation")
|
|
|
|
(description "Documentation for the DocBook DSSSL style sheets.")
|
2021-08-20 12:09:05 +00:00
|
|
|
(license (license:non-copyleft "file://doc/LEGALNOTICE.htm"))))
|
2018-09-09 15:47:41 +00:00
|
|
|
|
2018-07-03 13:04:41 +00:00
|
|
|
(define-public docbook-sgml
|
|
|
|
(package
|
|
|
|
(name "docbook-sgml")
|
|
|
|
(version "4.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://www.oasis-open.org/docbook/sgml/"
|
|
|
|
version "/docbk41.zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"04b3gp4zkh9c5g9kvnywdkdfkcqx3kjc04j4mpkr4xk7lgqgrany"))))
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:modules ((guix build utils))
|
|
|
|
#:builder
|
|
|
|
(begin
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
(let ((source (assoc-ref %build-inputs "source"))
|
|
|
|
(iso-entities-dir (string-append
|
|
|
|
(assoc-ref %build-inputs "iso-8879-entities")))
|
|
|
|
(unzip (string-append (assoc-ref %build-inputs "unzip")
|
|
|
|
"/bin/unzip"))
|
|
|
|
(dtd (string-append (assoc-ref %outputs "out")
|
|
|
|
"/sgml/dtd/docbook")))
|
|
|
|
;; Extract the sources.
|
|
|
|
(mkdir-p dtd)
|
|
|
|
(chdir dtd)
|
|
|
|
(invoke unzip source)
|
|
|
|
;; Reference the ISO 8879 character entities.
|
|
|
|
;; e.g. "iso-lat1.gml" --> "<iso-entities-dir>/ISOlat1"
|
|
|
|
(substitute* "docbook.cat"
|
|
|
|
(("(.*ISO 8879.*)\"iso-(.*)\\.gml\"" _ head name)
|
|
|
|
(string-append head "\"" iso-entities-dir "/ISO" name "\"")))))))
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list unzip))
|
2018-07-03 13:04:41 +00:00
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list iso-8879-entities))
|
2018-07-03 13:04:41 +00: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 12:09:05 +00:00
|
|
|
(license (license:x11-style "" "See file headers."))))
|
2018-07-03 13:04:41 +00:00
|
|
|
|
2020-12-28 21:52:54 +00:00
|
|
|
(define-public docbook-sgml-3.1
|
|
|
|
(package
|
|
|
|
(inherit docbook-sgml)
|
|
|
|
(version "3.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://www.oasis-open.org/docbook/sgml/"
|
|
|
|
version "/docbk31.zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0f25ch7bywwhdxb1qa0hl28mgq1blqdap3rxzamm585rf4kis9i0"))))))
|
|
|
|
|
2018-07-03 13:04:02 +00:00
|
|
|
;;; Private package referenced by docbook-sgml.
|
|
|
|
(define iso-8879-entities
|
|
|
|
(package
|
|
|
|
(name "iso-8879-entities")
|
|
|
|
(version "0.0") ;no proper version
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri "http://www.oasis-open.org/cover/ISOEnts.zip")
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1clrkaqnvc1ja4lj8blr0rdlphngkcda3snm7b9jzvcn76d3br6w"))))
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:modules ((guix build utils))
|
|
|
|
#:builder
|
|
|
|
(begin
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
(let ((source (assoc-ref %build-inputs "source"))
|
|
|
|
(unzip (string-append (assoc-ref %build-inputs "unzip")
|
|
|
|
"/bin/unzip"))
|
|
|
|
(out (string-append (assoc-ref %outputs "out"))))
|
|
|
|
(invoke unzip source "-d" out)))))
|
|
|
|
(native-inputs `(("unzip" ,unzip)))
|
|
|
|
(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 12:09:05 +00:00
|
|
|
(license (license:x11-style "" "See file headers."))))
|
2018-07-03 13:04:02 +00:00
|
|
|
|
2014-09-29 21:58:56 +00:00
|
|
|
(define-public dblatex
|
|
|
|
(package
|
|
|
|
(name "dblatex")
|
2020-12-19 13:35:54 +00:00
|
|
|
(version "0.3.12")
|
2014-09-29 21:58:56 +00:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2016-07-21 06:35:30 +00:00
|
|
|
(uri (string-append "mirror://sourceforge/dblatex/dblatex/"
|
2020-12-19 13:35:54 +00:00
|
|
|
"dblatex-" version "/dblatex3-"
|
2014-09-29 21:58:56 +00:00
|
|
|
version ".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-12-19 13:35:54 +00:00
|
|
|
"0yd09nypswy3q4scri1dg7dr99d7gd6r2dwx0xm81l9f4y32gs0n"))))
|
2014-09-29 21:58:56 +00:00
|
|
|
(build-system python-build-system)
|
|
|
|
;; TODO: Add xfig/transfig for fig2dev utility
|
|
|
|
(inputs
|
gnu: Replace all uses of texlive-union by texlive-updmap.cfg.
* doc/build.scm (pdf-manual) Replace texlive-union by texlive-updmap.cfg.
* gnu/packages/algebra.scm (pari-gp): Likewise.
* gnu/packages/bioinformatics.scm (discrover, velvet): Likewise.
* gnu/packages/chez.scm (chez-scheme, chez-web, chez-sockets): Likewise.
* gnu/packages/docbook.scm (dblatex): Likewise.
* gnu/packages/emacs-xyz.scm (emacs-auctex): Likewise.
* gnu/packages/engineering.scm (fastcap): Likewise.
* gnu/packages/guile-xyz.scm (emacsy, guile-cv): Likewise.
* gnu/packages/lisp.scm (sbcl): Likewise.
* gnu/packages/maths.scm (octave, hypre): Likewise.
* gnu/packages/music.scm (lilypond): Likewise.
* gnu/packages/plotutils.scm (asymptote): Likewise.
* gnu/packages/python-xyz.scm (python-numpy-documentation)
(python-matplotlib-documentation, python-ipython-documentation)
(python-pypandoc): Likewise.
* gnu/packages/radio.scm (gnuradio, libosmo-dsp): Likewise.
* gnu/packages/scheme.scm (mit-scheme): Likewise.
* gnu/packages/statistics.scm (r-with-tests): Likewise.
* gnu/packages/tex.scm (simple-texlive-package)
(texlive-xmltex, texlive-tiny, texlive-jadetex, teximpatient, lyx): Likewise.
2021-01-14 05:23:38 +00:00
|
|
|
`(("texlive" ,(texlive-updmap.cfg (list texlive-amsfonts
|
2017-07-09 14:20:38 +00:00
|
|
|
texlive-latex-anysize
|
|
|
|
texlive-latex-appendix
|
2020-12-19 13:35:54 +00:00
|
|
|
texlive-latex-bookmark
|
2017-07-09 14:20:38 +00:00
|
|
|
texlive-latex-changebar
|
|
|
|
texlive-latex-colortbl
|
|
|
|
texlive-latex-fancybox
|
|
|
|
texlive-latex-fancyhdr
|
|
|
|
texlive-latex-fancyvrb
|
|
|
|
texlive-latex-float
|
|
|
|
texlive-latex-footmisc
|
2021-09-14 06:39:59 +00:00
|
|
|
texlive-hyperref
|
2017-07-09 14:20:38 +00:00
|
|
|
texlive-latex-jknapltx
|
2022-03-02 15:08:57 +00:00
|
|
|
|
|
|
|
;; TODO: Use non-deprecated name on
|
|
|
|
;; next rebuild cycle.
|
2017-07-09 14:20:38 +00:00
|
|
|
texlive-latex-listings
|
2022-03-02 15:08:57 +00:00
|
|
|
|
2017-07-09 14:20:38 +00:00
|
|
|
texlive-latex-multirow
|
|
|
|
texlive-latex-overpic
|
|
|
|
texlive-latex-pdfpages
|
2020-12-19 13:35:54 +00:00
|
|
|
texlive-latex-refcount
|
2017-07-09 14:20:38 +00:00
|
|
|
texlive-latex-subfigure
|
|
|
|
texlive-latex-titlesec
|
2021-09-14 06:39:59 +00:00
|
|
|
texlive-wasysym
|
2017-07-09 14:20:38 +00:00
|
|
|
|
|
|
|
texlive-fonts-rsfs
|
2021-09-14 06:39:59 +00:00
|
|
|
texlive-stmaryrd
|
2017-07-09 14:20:38 +00:00
|
|
|
|
gnu: TeX Live: Update to 2020.0.
* guix/build-system/texlive.scm (%texlive-tag): Set to 2020.0.
(%texlive-revision): Set to 54632.
* gnu/packages/tex.scm (texlive-extra-src, texlive-texmf-src, texlive-bin,
texlive-texmf, texlive): Update to 20200406.
(texlive-bin)[source](patches): Remove.
[arguments]: Adjust poppler compatibility phase for new upstream patches.
* gnu/packages/tex.scm (hyph-utf8-scripts, texlive-docstrip, texlive-unicode-data
texlive-hyphen-base, texlive-dvips, texlive-metafont-base, texlive-fontinst,
texlive-fontname, texlive-tex-plain, texlive-hyphen-bulgarian, texlive-hyphen-chinese,
texlive-hyphen-hungarian, texlive-hyphen-latin, texlive-hyphen-sanskrit,
texlive-hyphen-spanish, texlive-hyph-utf8, texlive-kpathsea,
texlive-latexconfig, texlive-latex-base, texlive-union,
texlive-latex-filecontents, texlive-latex-fancyvrb, texlive-graphics-def,
texlive-latex-graphics, texlive-latex-oberdiek, texlive-latex-tools,
texlive-latex-l3kernel, texlive-latex-l3packages, texlive-latex-fontspec,
texlive-latex-amsmath, texlive-latex-babel, texlive-latex-draftwatermark,
texlive-etoolbox, texlive-latex-geometry, texlive-latex-polyglossia,
texlive-latex-supertabular, texlive-tex-texinfo, texlive-latex-appendix,
texlive-latex-colortbl, texlive-latex-listings, texlive-inconsolata,
texlive-latex-enumitem, texlive-latex-multirow, texlive-latex-overpic,
texlive-latex-parskip, texlive-latex-pdfpages, texlive-libertine,
texlive-latex-titlesec, texlive-metapost, texlive-latex-acmart,
texlive-latex-wasysym, texlive-latex-preview, texlive-latex-acronym,
texlive-pdftex, texlive-latex-media9, texlive-latex-ocgx2, texlive-latex-ms,
texlive-generic-ulem, texlive-latex-pgf, texlive-latex-koma-script,
texlive-generic-listofitems, texlive-bibtex, texlive-context-base,
texlive-beamer, texlive-pstricks, texlive-marginnote, texlive-iftex,
texlive-tools, texlive-siunitx, texlive-booktabs, texlive-csquotes,
texlive-biblatex, texlive-microtype, texlive-caption, texlive-ydoc,
texlive-courier, texlive-hyperref, texlive-fontspec, texlive-l3build,
texlive-luaotfload, texlive-babel, texlive-tipa, texlive-jknappen,
texlive-wasy, texlive-context, texlive-cabin, texlive-fourier,
texlive-mweights, texlive-newtx, texlive-xcharter, texlive-tcolorbox): Update
hashes.
(texlive-hyphen-bulgarian): Don't include removed files.
(texlive-hyphen-hungarian, texlive-hyphen-sanskrit): Adjust for directory
rename.
(texlive-hyphen-chinese, texlive-hyphen-latin): Add more files.
(texlive-hyphen-macedonian): New public variable.
(texlive-metafont-base)[source]: Switch to SVN-MULTI-FETCH.
[arguments]: Adjust for extra source files.
(texlive-latex-base)[arguments]: Disable more formats.
[propagated-inputs]: Add TEXLIVE-HYPHEN-MACEDONIAN.
(texlive-fontinst): Don't include "scripts/texlive/fontinst.sh".
(texlive-generic-iftex): New public variable.
(texlive-iftex, texlive-generic-ifxetex): Deprecate in favor of
TEXLIVE-GENERIC-IFTEX.
(texlive-latex-oberdiek)[propagated-inputs]: Change from
TEXLIVE-GENERIC-IFXETEX to TEXLIVE-GENERIC-IFTEX.
(texlive-latex-xkeyval)[native-inputs]: Likewise.
(texlive-default-updmap.cfg): Remove variable.
* gnu/packages/patches/texlive-bin-poppler-0.83.patch,
gnu/packages/patches/texlive-bin-poppler-0.86.patch: Delete files.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
2021-03-21 00:39:05 +00:00
|
|
|
texlive-generic-iftex)))
|
2014-09-29 21:58:56 +00:00
|
|
|
("imagemagick" ,imagemagick) ;for convert
|
|
|
|
("inkscape" ,inkscape) ;for svg conversion
|
|
|
|
("docbook" ,docbook-xml)
|
|
|
|
("libxslt" ,libxslt))) ;for xsltproc
|
|
|
|
(arguments
|
2020-12-19 13:35:54 +00:00
|
|
|
`(;; Using setuptools causes an invalid "package_base" path in
|
2016-12-02 14:20:00 +00:00
|
|
|
;; 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:
|
2016-12-01 22:30:49 +00:00
|
|
|
;; https://lists.gnu.org/archive/html/guix-devel/2016-12/msg00030.html
|
|
|
|
#:use-setuptools? #f
|
2014-09-29 21:58:56 +00:00
|
|
|
#:tests? #f ;no 'test' command
|
|
|
|
#:phases
|
2018-02-20 03:18:43 +00:00
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'wrap 'set-path
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
;; dblatex executes helper programs at runtime.
|
|
|
|
(wrap-program (string-append out "/bin/dblatex")
|
|
|
|
`("PATH" ":" prefix
|
|
|
|
,(map (lambda (input)
|
|
|
|
(string-append (assoc-ref inputs input)
|
|
|
|
"/bin"))
|
|
|
|
'("libxslt" "texlive"
|
2021-10-19 17:07:42 +00:00
|
|
|
"imagemagick" "inkscape"))))))))))
|
2014-09-29 21:58:56 +00:00
|
|
|
(home-page "http://dblatex.sourceforge.net")
|
|
|
|
(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 12:09:05 +00:00
|
|
|
(license license:gpl2+)))
|
2020-12-29 03:15:26 +00:00
|
|
|
|
2021-03-27 11:27:52 +00: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
|
|
|
|
(inputs (alist-replace "imagemagick" `(,imagemagick/stable)
|
|
|
|
(package-inputs dblatex))))))
|
2021-04-16 11:39:48 +00:00
|
|
|
|
2020-12-29 03:15:26 +00: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
|
|
|
|
"1scj5vgw1xz872pq54a89blcxqqm11p90yzv8a9mqq57x27apyj8"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:phases (modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'patch-build-system
|
|
|
|
(lambda _
|
|
|
|
(substitute* (find-files "." "\\.in$")
|
|
|
|
;; Do not hard-code SGML_CATALOG_FILES.
|
|
|
|
((".*SGML_CATALOG_FILES=/etc/sgml/catalog.*") "")
|
|
|
|
;; Use OpenSP and OpenJade.
|
|
|
|
(("\\bjade\\b")
|
|
|
|
"openjade")
|
|
|
|
(("\\bnsgmls\\b")
|
|
|
|
"onsgmls"))
|
|
|
|
#t))
|
|
|
|
(add-after 'unpack 'patch-jw.in
|
|
|
|
;; Do not override the SGML_CATALOG_FILES environment
|
|
|
|
;; variable.
|
|
|
|
(lambda _
|
|
|
|
(substitute* "bin/jw.in"
|
|
|
|
((".*SGML_CATALOG_FILES=`find.*")
|
|
|
|
"")
|
|
|
|
(("SGML_CATALOG_FILES=`echo.*")
|
|
|
|
":\n")
|
|
|
|
(("SGML_CATALOG_FILES=\"\"")
|
|
|
|
":")
|
|
|
|
(("\\bwhich\\b")
|
|
|
|
"command -v"))
|
|
|
|
#t))
|
|
|
|
(add-after 'unpack 'patch-txt-backend
|
|
|
|
(lambda _
|
|
|
|
;; Locate lynx, links or w3m from the PATH, not from
|
|
|
|
;; /usr/bin.
|
|
|
|
(substitute* "backends/txt"
|
|
|
|
(("CONVERT=/usr/bin/")
|
|
|
|
"CONVERT=")
|
|
|
|
(("\\[ -x /usr/bin/([^ ]+) \\]" dummy command)
|
|
|
|
(string-append "command -v " command " > /dev/null")))
|
|
|
|
#t)))))
|
|
|
|
;; 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 16:18:24 +00:00
|
|
|
(list texlive-jadetex
|
|
|
|
docbook-sgml-3.1
|
|
|
|
docbook-dsssl
|
|
|
|
openjade
|
|
|
|
opensp
|
|
|
|
lynx
|
|
|
|
perl-sgmls))
|
2020-12-29 03:15:26 +00: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:
|
|
|
|
@itemx docbook2dvi Convert a SGML DocBook file to the DVI format.
|
|
|
|
@itemx docbook2html Convert a SGML DocBook file to an HTML document.
|
|
|
|
@itemx docbook2man Convert a SGML DocBook file a man page.
|
|
|
|
@itemx docbook2pdf Convert a SGML DocBook file to a PDF document.
|
|
|
|
@itemx docbook2ps Convert a SGML DocBook file to a PS document.
|
|
|
|
@itemx docbook2rtf Convert a SGML DocBook file to a RTF document.
|
|
|
|
@itemx docbook2tex Convert a SGML DocBook file to a TeX document.
|
|
|
|
@itemx docbook2texi Convert a SGML DocBook file to a Texinfo document.
|
|
|
|
@itemx docbook2txt Convert a SGML DocBook file to a plain text document.
|
|
|
|
@item sgmldiff
|
|
|
|
Detect the differences in markup between two SGML files.
|
|
|
|
@end table")
|
2021-09-16 23:25:52 +00:00
|
|
|
(license license:gpl2+)))
|
|
|
|
|
2021-08-27 04:15:36 +00: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
|
|
|
|
"0ifwzk99rzjws0ixzimbvs83x6cxqk1xzmg84wa1p7bs6rypaxs0"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("bash-minimal" ,bash-minimal)
|
|
|
|
("docbook-xml" ,docbook-xml)
|
|
|
|
("perl" ,perl)
|
|
|
|
("perl-xml-namespacesupport" ,perl-xml-namespacesupport)
|
|
|
|
("perl-xml-parser" ,perl-xml-parser)
|
|
|
|
("perl-xml-sax" ,perl-xml-sax)
|
|
|
|
("perl-xml-sax-base" ,perl-xml-sax-base)
|
|
|
|
("texinfo" ,texinfo)
|
|
|
|
("xsltproc" ,libxslt)))
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'configure 'patch-sources
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
;; Fix failed substitution in config.pl
|
|
|
|
(substitute* "perl/config.pl"
|
|
|
|
(("\\$\\{prefix\\}")
|
|
|
|
(assoc-ref outputs "out")))
|
|
|
|
;; Fix a failing test (maybe it worked with old texinfo?)
|
|
|
|
(substitute* "test/complete-manuals/at1.xml"
|
|
|
|
(("<bridgehead>")
|
|
|
|
"<bridgehead renderas=\"sect2\">"))
|
|
|
|
;; Patch all the tests use DocBook 4.5
|
|
|
|
(substitute* (find-files "test" "\\.xml$")
|
|
|
|
(("\"-//OASIS//DTD DocBook XML V4\\..+//EN\"")
|
|
|
|
"\"-//OASIS//DTD DocBook XML V4.5//EN\"")
|
|
|
|
(("\"http://www\\.oasis-open\\.org/docbook/xml/4\\..+/docbookx.dtd\"")
|
|
|
|
"\"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd\""))
|
|
|
|
;; Set XML catalogs for tests to pass
|
|
|
|
(setenv "XML_CATALOG_FILES"
|
|
|
|
(string-append (assoc-ref inputs "docbook-xml")
|
|
|
|
"/xml/dtd/docbook/catalog.xml"))))
|
|
|
|
(add-after 'install 'wrap-programs
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(programs
|
|
|
|
(map (lambda (p)
|
|
|
|
(string-append out "/bin/" p))
|
|
|
|
'("db2x_manxml" "db2x_texixml" "db2x_xsltproc"
|
|
|
|
"docbook2man" "docbook2texi")))
|
|
|
|
(perl5lib
|
|
|
|
(map (lambda (i)
|
|
|
|
(string-append (assoc-ref inputs i)
|
|
|
|
"/lib/perl5/site_perl"))
|
|
|
|
'("perl-xml-namespacesupport"
|
|
|
|
"perl-xml-parser"
|
|
|
|
"perl-xml-sax"
|
|
|
|
"perl-xml-sax-base")))
|
|
|
|
(xml-catalog-files
|
|
|
|
(list (string-append (assoc-ref inputs "docbook-xml")
|
|
|
|
"/xml/dtd/docbook/catalog.xml"))))
|
|
|
|
(map (lambda (program)
|
|
|
|
(wrap-program program
|
|
|
|
`("PERL5LIB" ":" prefix
|
|
|
|
,perl5lib)
|
|
|
|
`("XML_CATALOG_FILES" " " prefix
|
|
|
|
,xml-catalog-files)))
|
|
|
|
programs))))
|
|
|
|
(add-after 'install 'create-symlinks
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
;; 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 out "/bin/db2x_" prog)))
|
|
|
|
'("docbook2man" "docbook2texi"))))))))
|
|
|
|
(home-page "http://docbook2x.sourceforge.net")
|
|
|
|
(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)))
|