2014-01-17 23:47:31 +01:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
|
2014-09-29 23:58:56 +02:00
|
|
|
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
|
2016-04-07 20:58:25 +02:00
|
|
|
;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
|
2014-01-17 23:47:31 +01: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)
|
|
|
|
#:use-module (gnu packages compression)
|
2014-09-29 23:58:56 +02:00
|
|
|
#:use-module (gnu packages imagemagick)
|
|
|
|
#:use-module (gnu packages inkscape)
|
2016-05-24 21:18:53 +02:00
|
|
|
#:use-module (gnu packages tex)
|
2014-09-29 23:58:56 +02:00
|
|
|
#:use-module (gnu packages python)
|
2014-06-12 13:03:53 +02:00
|
|
|
#:use-module (gnu packages base)
|
2014-09-29 23:58:56 +02:00
|
|
|
#:use-module (gnu packages xml)
|
2014-01-17 23:47:31 +01:00
|
|
|
#:use-module (guix licenses)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#: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 20:40:01 +02:00
|
|
|
#:use-module (guix build-system python))
|
2014-01-17 23:47:31 +01:00
|
|
|
|
|
|
|
(define-public docbook-xml
|
|
|
|
(package
|
|
|
|
(name "docbook-xml")
|
|
|
|
(version "4.5")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://www.docbook.org/xml/" version
|
|
|
|
"/docbook-xml-" version ".zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1d671lcjckjri28xfbf6dq7y3xnkppa910w1jin8rjc35dx06kjf"))))
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
(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
|
2014-07-13 17:08:55 +02:00
|
|
|
(system* unzip source))
|
|
|
|
(substitute* (string-append out "/xml/dtd/docbook/catalog.xml")
|
|
|
|
(("uri=\"")
|
|
|
|
(string-append
|
|
|
|
"uri=\"file://" dtd "/")))))
|
|
|
|
#:modules ((guix build utils))))
|
2014-01-17 23:47:31 +01:00
|
|
|
(native-inputs `(("unzip" ,unzip)))
|
|
|
|
(home-page "http://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.")
|
|
|
|
(license (x11-style "" "See file headers."))))
|
|
|
|
|
2014-07-13 17:02:09 +02:00
|
|
|
(define-public docbook-xml-4.4
|
|
|
|
(package (inherit docbook-xml)
|
2016-04-07 20:58:25 +02:00
|
|
|
(version "4.4")
|
2014-07-13 17:02:09 +02:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://www.docbook.org/xml/" version
|
|
|
|
"/docbook-xml-" version ".zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"141h4zsyc71sfi2zzd89v4bb4qqq9ca1ri9ix2als9f4i3mmkw82"))))))
|
|
|
|
|
|
|
|
(define-public docbook-xml-4.3
|
|
|
|
(package (inherit docbook-xml)
|
2016-04-07 20:58:25 +02:00
|
|
|
(version "4.3")
|
2014-07-13 17:02:09 +02:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://www.docbook.org/xml/" version
|
|
|
|
"/docbook-xml-" version ".zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0r1l2if1z4wm2v664sqdizm4gak6db1kx9y50jq89m3gxaa8l1i3"))))))
|
|
|
|
|
2014-11-04 18:43:08 +01:00
|
|
|
(define-public docbook-xml-4.2
|
|
|
|
(package (inherit docbook-xml)
|
2016-04-07 20:58:25 +02:00
|
|
|
(version "4.2")
|
2014-11-04 18:43:08 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://www.docbook.org/xml/" version
|
|
|
|
"/docbook-xml-" version ".zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"18hgwvmywh6a5jh38szjmg3hg2r4v5lb6r3ydc3rd8cp9wg61i5c"))))))
|
|
|
|
|
2016-04-07 20:58:25 +02:00
|
|
|
(define-public docbook-xml-4.1.2
|
|
|
|
(package (inherit docbook-xml)
|
|
|
|
(version "4.1.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://www.docbook.org/xml/" version
|
|
|
|
"/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)
|
|
|
|
(zero? (system* unzip source "-d" dtd))))))))
|
|
|
|
|
2014-01-17 23:47:31 +01:00
|
|
|
(define-public docbook-xsl
|
|
|
|
(package
|
|
|
|
(name "docbook-xsl")
|
2016-11-27 09:49:15 +01:00
|
|
|
(version "1.79.1")
|
2014-01-17 23:47:31 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2016-07-21 08:35:30 +02:00
|
|
|
(uri (string-append "mirror://sourceforge/docbook/docbook-xsl/"
|
|
|
|
version "/docbook-xsl-" version ".tar.bz2"))
|
2014-01-17 23:47:31 +01:00
|
|
|
(sha256
|
|
|
|
(base32
|
2016-11-27 09:49:15 +01:00
|
|
|
"0s59lihif2fr7rznckxr2kfyrvkirv76r1zvidp9b5mj28p4apvj"))))
|
2014-01-17 23:47:31 +01:00
|
|
|
(build-system trivial-build-system)
|
|
|
|
(arguments
|
2014-07-13 17:15:47 +02:00
|
|
|
`(#:builder (let ((name-version (string-append ,name "-" ,version)))
|
2014-01-17 23:47:31 +01:00
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
|
|
(let* ((bzip2 (assoc-ref %build-inputs "bzip2"))
|
|
|
|
(tar (assoc-ref %build-inputs "tar"))
|
|
|
|
(source (assoc-ref %build-inputs "source"))
|
|
|
|
(out (assoc-ref %outputs "out"))
|
|
|
|
(xsl (string-append out "/xml/xsl")))
|
|
|
|
(setenv "PATH" (string-append bzip2 "/bin"))
|
|
|
|
(system* (string-append tar "/bin/tar") "xvf" source)
|
|
|
|
|
|
|
|
(mkdir-p xsl)
|
2014-07-13 17:15:47 +02: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 15:50:36 +01:00
|
|
|
(("rewritePrefix=\"./")
|
|
|
|
(string-append "rewritePrefix=\"file://" xsl "/"
|
|
|
|
name-version "/")))))
|
2014-07-13 17:15:47 +02:00
|
|
|
#:modules ((guix build utils))))
|
2014-01-17 23:47:31 +01:00
|
|
|
(native-inputs `(("bzip2" ,bzip2)
|
|
|
|
("tar" ,tar)))
|
|
|
|
(home-page "http://docbook.org")
|
|
|
|
(synopsis "DocBook XSL style sheets for document authoring")
|
|
|
|
(description
|
|
|
|
"This package provides XSL style sheets for DocBook.")
|
|
|
|
(license (x11-style "" "See 'COPYING' file."))))
|
2014-09-29 23:58:56 +02:00
|
|
|
|
|
|
|
(define-public dblatex
|
|
|
|
(package
|
|
|
|
(name "dblatex")
|
2016-11-30 16:29:11 +01:00
|
|
|
(version "0.3.9")
|
2014-09-29 23:58:56 +02:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2016-07-21 08:35:30 +02:00
|
|
|
(uri (string-append "mirror://sourceforge/dblatex/dblatex/"
|
|
|
|
"dblatex-" version "/dblatex-"
|
2014-09-29 23:58:56 +02:00
|
|
|
version ".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2016-11-30 16:29:11 +01:00
|
|
|
"0pdizc5rjywwzxa1qqhdmba5zr35pbmdwbysalsid7xw87w3kq06"))))
|
2014-09-29 23:58:56 +02:00
|
|
|
(build-system python-build-system)
|
|
|
|
;; TODO: Add xfig/transfig for fig2dev utility
|
|
|
|
(inputs
|
gnu: Remove python-setuptools and python2-setuptools from inputs (part 2)
This patch contains the changes where removing setuptools from the inputs
affected some code-lines beside.
* gnu/packages/admin.scm (ansible): Remove all [inputs], [native-inputs] and
[propagated-inputs] where python-setuptools or python2-setuptools are the
sole entries. Remove python-setuptools and python2-setuptools listed on a
line by its own from [inputs], [native-inputs] and [propagated-inputs].
* gnu/packages/backup.scm (duplicity): Likewise.
* gnu/packages/bioinformatics.scm (bamm, python2-pybedtools,
python2-bx-python, python2-dendropy, python-pysam, python2-pysam, clipper,
crossmap, cutadapt, deeptools, grit, idr, python2-warpedlmm,
pbtranscript-tofu, seqmagick): Likewise.
* gnu/packages/docbook.scm (dblatex): Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg, python2-pyxdg): Likewise.
* gnu/packages/lirc.scm (python2-lirc): Likewise.
* gnu/packages/mp3.scm (eyed3): Likewise.
* gnu/packages/nutrition.scm (gourmet): Likewise.
* gnu/packages/openstack.scm (python-hacking, python2-hacking,
python-os-testr, python2-os-testr,
python-stevedore, python2-stevedore,
python-tempest-lib, python2-tempest-lib,
python-oslo.log, python2-oslo.log,
python-keystoneclient, python2-keystoneclient): Likewise.
* gnu/packages/password-utils.scm (assword): Likewise.
* gnu/packages/python.scm (python-passlib, python2-passlib,
python-babel, python2-babel,
python-parse-type,
python-pytest, python2-pytest,
python-scripttest, python2-scripttest,
python-testtools, python2-testtools,
python-testscenarios, python2-testscenarios,
python-subunit, python2-subunit,
python-pbr-0.11,
python-pbr, python2-pbr,
python-testrepository, python2-testrepository,
behave,
python-wheel, python2-wheel,
python-requests, python2-requests,
python-jsonschema, python2-jsonschema,
python-pyjwt, python2-pyjwt,
python-virtualenv, python2-virtualenv,
python-jinja2, python2-jinja2,
python-joblib, python2-joblib,
python-sphinx, python2-sphinx,
python-feedgenerator, python2-feedgenerator,
python-scikit-image, python2-scikit-image,
python-redis, python2-redis,
python2-fastlmm,
python-numpydoc, python2-numpydoc,
python-matplotlib, python2-matplotlib,
python2-pysnptools,
python-rpy2, python2-rpy2,
python-pillow, python2-pillow,
python-pycparser, python2-pycparser,
python-cffi, python2-cffi,
python-cairocffi, python2-cairocffi,
python-drmaa, python2-drmaa,
python-pathpy, python2-pathpy,
python-simplegeneric, python2-simplegeneric,
python-ipython, python2-ipython,
python-apsw, python2-apsw,
python-lxml, python2-lxml,
python-networkx, python2-networkx,
python-pyzmq, python2-pyzmq,
python-mccabe, python2-mccabe,
python-mccabe-0.2.1,
python-flake8, python2-flake8,
python-flake8-2.2.4,
python-mistune, python2-mistune,
python-ptyprocess, python2-ptyprocess,
python-llfuse, python2-llfuse,
python-webob, python2-webob,
python-xlrd, python2-xlrd,
python-tables, python2-tables,
python-pip, python2-pip,
python-libarchive-c, python2-libarchive-c,
python-docopt, python2-docopt,
python-pyrfc3339, python2-pyrfc3339,
python-configobj, python2-configobj,
python-clint, python2-clint,
python-rply, python2-rply,
python2-rpython,
python-widgetsnbextension, python2-widgetsnbextension
jupyter,
python-jupyter-console, python2-jupyter-console,
python-hy, python2-hy,
python-urllib3, python2-urllib3,
python-rsa, python2-rsa,
python-tox, python2-tox,
python2-hypothesis,
python-paste, python2-paste,
python-pastescript, python2-pastescript,
python2-unicodecsv,
python-pkgconfig, python2-pkgconfig,
python2-rope,
python-sqlparse, python2-sqlparse,
python-gevent, python2-gevent,
python-tabulate, python2-tabulate,
python-arrow, python2-arrow,
python-cleo, python2-cleo,
python-fake-factory, python2-fake-factory,
ptpython): Likewise.
* gnu/packages/rdf.scm (python-rdflib, python2-rdflib): Likewise.
* gnu/packages/terminals.scm (asciinema): Likewise.
* gnu/packages/version-control.scm (git-annex-remote-hubic): Likewise.
* gnu/packages/xdisorg.scm (arandr): Likewise.
2016-09-28 13:30:54 +02:00
|
|
|
`(("texlive" ,texlive)
|
2014-09-29 23:58:56 +02:00
|
|
|
("imagemagick" ,imagemagick) ;for convert
|
|
|
|
("inkscape" ,inkscape) ;for svg conversion
|
|
|
|
("docbook" ,docbook-xml)
|
|
|
|
("libxslt" ,libxslt))) ;for xsltproc
|
|
|
|
(arguments
|
|
|
|
`(#:python ,python-2 ;'print' syntax
|
2016-12-02 15:20:00 +01:00
|
|
|
;; 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:
|
2016-12-01 23:30:49 +01:00
|
|
|
;; https://lists.gnu.org/archive/html/guix-devel/2016-12/msg00030.html
|
|
|
|
#:use-setuptools? #f
|
2014-09-29 23:58:56 +02:00
|
|
|
#:tests? #f ;no 'test' command
|
|
|
|
#:phases
|
|
|
|
(alist-cons-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"
|
|
|
|
"imagemagick" "inkscape"))))))
|
|
|
|
%standard-phases)))
|
|
|
|
(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
|
|
|
|
(license gpl2+)))
|