# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
maintainers {cal @neverpanic} openmaintainer
description DocBook to LaTeX Converter
long_description Dblatex transforms a DocBook XML/SGML document to LaTeX. \
Once transformed into LaTeX, standard LaTeX tools are \
used to produce DVI, Postcript or PDF files. \
dblatex tries to hide as much as possible the latex \
compiling stuff by providing a single clean script to \
produce directly DVI, PostScript and PDF output. \
The actual output rendering is done not only by the \
XSL stylesheets transformation, but also by a dedicated \
LaTeX package. The goal is to allow a deep LaTeX \
customisation without changing the XSL stylesheets. \
Post-processing is done by Python, to make publication \
faster, convert the images if needed, and do the whole \
homepage http://dblatex.sourceforge.net
master_sites sourceforge:project/dblatex/dblatex/dblatex-${version}
checksums sha256 6fd696b740e0044ae1caf843d225d98c01b6ed916550384544e7e31c0c6a2cfa \
rmd160 b113dc1a04180704e36558039ef1cc9d13900105
depends_lib port:texlive-latex-extra \
port:texlive-latex-recommended \
port:texlive-math-science \
python.default_version 27
# this gets assigned before python.bin is set to the version selected by the variant
#destroot.cmd ${python.bin} setup.py
destroot.destdir --root=${destroot} \
--catalogs=${destroot}${prefix}/etc/xml/catalog
# The mactex variant expects MacTeX to be installed
# and installs dblatex's stylefiles to MacTeX's texmf (local)
set dblatex.texmflocal ""
set dblatex.mactex_bin ""
variant mactex description {Allow dblatex to use a MacTeX installation instead of Macports texlive tools.
To install the mactex variant /Library/TeX/texbin must be added to binpath
# First, check if MacTeX actually seems to be there…
set dblatex.mactex_candidates { \
foreach dir ${dblatex.mactex_candidates} {
if [file executable "${dir}/kpsewhich"] {
set dblatex.mactex_bin ${dir}
if { ${dblatex.mactex_bin} != "" } {
[exec ${dblatex.mactex_bin}/kpsewhich --expand-var='\$TEXMFLOCAL']
regsub -all {'} ${dblatex.texmflocal} "" dblatex.texmflocal
return -code error "Cannot find MacTeX installation; aborting"
port:texlive-latex-extra \
port:texlive-latex-recommended \
port:texlive-math-science
notes "The mactex variant will install styles to MacTeX's texmf-local
(which is outside macport's common directory structure).
For the mactex variant to work,
${dblatex.mactex_bin} must also be added to binpath in macports.conf"