Browse Source

gnu: Add dblatex.

* gnu/packages/docbook.scm (dblatex): New variable.
Eric Bavier 7 years ago
1 changed files with 54 additions and 0 deletions
  1. +54

+ 54
- 0
gnu/packages/docbook.scm View File

@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 Ludovic Courtès <>
;;; Copyright © 2014 Eric Bavier <>
;;; This file is part of GNU Guix.
@ -19,11 +20,17 @@
(define-module (gnu packages docbook)
#:use-module (gnu packages)
#:use-module (gnu packages compression)
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages inkscape)
#:use-module (gnu packages texlive)
#:use-module (gnu packages python)
#:use-module (gnu packages base)
#:use-module (gnu packages xml)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system trivial)
#:use-module (guix build-system python)
#:autoload (gnu packages zip) (unzip))
(define-public docbook-xml
@ -126,3 +133,50 @@ by no means limited to these applications.) This package provides XML DTDs.")
"This package provides XSL style sheets for DocBook.")
(license (x11-style "" "See 'COPYING' file."))))
(define-public dblatex
(name "dblatex")
(version "0.3.5")
(source (origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/dblatex/dblatex-"
version ".tar.bz2"))
(build-system python-build-system)
;; TODO: Add xfig/transfig for fig2dev utility
`(("python-setuptools" ,python-setuptools)
("texlive" ,texlive)
("imagemagick" ,imagemagick) ;for convert
("inkscape" ,inkscape) ;for svg conversion
("docbook" ,docbook-xml)
("libxslt" ,libxslt))) ;for xsltproc
`(#:python ,python-2 ;'print' syntax
#:tests? #f ;no 'test' command
'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)
'("libxslt" "texlive"
"imagemagick" "inkscape"))))))
(home-page "")
(synopsis "DocBook to LaTeX Publishing")
"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
;; lib/contrib/which is under an X11 license
(license gpl2+)))