# -*- 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 # $Id$ PortSystem 1.0 PortGroup python 1.0 PortGroup texlive 1.0 name dblatex version 0.3.7 categories textproc tex maintainers cal openmaintainer license GPL-2+ platforms darwin supported_archs noarch 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 \ compilation. homepage http://dblatex.sourceforge.net master_sites sourceforge:project/dblatex/dblatex/dblatex-${version} checksums sha256 59ce3fdfd4d6cf44beb8705d9267b7be7cb32d4f826834c861c5b7016c7e722e \ rmd160 8e1eab8ef98b4a5cd714015a45810f935ea40e36 use_bzip2 yes depends_lib port:texlive-latex-extra \ port:texlive-latex-recommended \ port:texlive-math-extra \ port:dejavu-fonts \ port:ImageMagick \ port:docbook-xml \ port:docbook-xsl patchfiles patch-setup.py-remove-debian-installer.diff python.link_binaries no 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 post-destroot { reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${python.prefix}/bin/dblatex reinplace "s|#!/usr/bin/env python|#!${python.bin}|" ${destroot}${python.prefix}/bin/dblatex fs-traverse f ${destroot}${python.prefix}/share { if {[file isfile $f]} { set f [string range $f [string length ${destroot}${python.prefix}/share/] end] file mkdir [file dirname ${destroot}${prefix}/share/$f] ln -s ${python.prefix}/share/$f ${destroot}${prefix}/share/$f } } file mkdir ${destroot}${texlive_texmflocal}/tex/latex/dblatex fs-traverse f ${destroot}${python.prefix}/share/dblatex/latex { if {[file isfile $f]} { if {[catch {exec ${prefix}/bin/kpsewhich -a [file tail $f]} result]} { set f [string range $f [string length ${destroot}${python.prefix}/share/dblatex/latex/] end] file mkdir [file dirname ${destroot}${texlive_texmflocal}/tex/latex/dblatex/$f] ln -s ${python.prefix}/share/dblatex/latex/$f ${destroot}${texlive_texmflocal}/tex/latex/dblatex/$f } } } ln -s ${python.prefix}/bin/dblatex ${destroot}${prefix}/bin/ } post-activate { texlive.mktexlsr } post-deactivate { texlive.mktexlsr } livecheck.regex /${name}-(\[0-9.\]+)/