# -*- 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           python25 1.0
name                dblatex
version             0.2.9
categories          textproc tex
maintainers         nomaintainer
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
platforms           darwin
master_sites        sourceforge:dblatex
checksums           md5    6ade2e1cbe40f1798cb8de846528bf43 \
                    sha1   266d02788f9f785a0c6e3d347039587df2023303 \
                    rmd160 18477dab4b7155ac66568bbd51648822c9881b3d 
use_bzip2           yes
distname            ${name}-${version}

depends_lib         port:py25-hashlib \
                    port:texlive \
                    port:ImageMagick \
                    port:docbook-xml \
                    port:docbook-xsl

destroot.cmd        ${python.bin} setup.py
destroot.destdir    --prefix=${destroot}${prefix} \
                    --catalogs==${destroot}${prefix}/etc/xml/catalog

post-destroot      {

                    reinplace "s|${destroot}${prefix}|${prefix}|g" \
                              ${destroot}${prefix}/bin/dblatex

                   }

post-activate {

ui_msg "\n \
============================================================\n \
NOTE: The contents of /opt/local/share/dblatex/latex need to \n \
be copied into the main or your local texmf/tex/latex tree\n \
in order for dblatex to work.\n \
============================================================\n \
\n"

}

