Ticket #19276: Portfile

File Portfile, 2.5 KB (added by oksmith77, 16 years ago)

New Portfile dblatex

Line 
1# -*- 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
2# $Id$
3
4PortSystem          1.0
5PortGroup           python25 1.0
6name                dblatex
7version             0.2.9
8categories          textproc tex
9maintainers         nomaintainer
10description         DocBook to LaTeX Converter
11long_description    Dblatex transforms a DocBook XML/SGML document to LaTeX. \
12                    Once transformed into LaTeX, standard LaTeX tools are \
13                    used to produce DVI, Postcript or PDF files. \
14                    dblatex tries to hide as much as possible the latex \
15                    compiling stuff by providing a single clean script to \
16                    produce directly DVI, PostScript and PDF output. \
17                    The actual output rendering is done not only by the \
18                    XSL stylesheets transformation, but also by a dedicated \
19                    LaTeX package. The goal is to allow a deep LaTeX \
20                    customisation without changing the XSL stylesheets. \
21                    Post-processing is done by Python, to make publication \
22                    faster, convert the images if needed, and do the whole \
23                    compilation.
24homepage            http://dblatex.sourceforge.net
25platforms           darwin
26master_sites        sourceforge:dblatex
27checksums           md5    6ade2e1cbe40f1798cb8de846528bf43 \
28                    sha1   266d02788f9f785a0c6e3d347039587df2023303 \
29                    rmd160 18477dab4b7155ac66568bbd51648822c9881b3d
30use_bzip2           yes
31distname            ${name}-${version}
32
33depends_lib         port:py25-hashlib \
34                    port:texlive \
35                    port:ImageMagick \
36                    port:docbook-xml \
37                    port:docbook-xsl
38
39destroot.cmd        ${python.bin} setup.py
40destroot.destdir    --prefix=${destroot}${prefix} \
41                    --catalogs==${destroot}${prefix}/etc/xml/catalog
42
43post-destroot      {
44
45                    reinplace "s|${destroot}${prefix}|${prefix}|g" \
46                              ${destroot}${prefix}/bin/dblatex
47
48                   }
49
50post-activate {
51
52ui_msg "\n \
53============================================================\n \
54NOTE: The contents of /opt/local/share/dblatex/latex need to \n \
55be copied into the main or your local texmf/tex/latex tree\n \
56in order for dblatex to work.\n \
57============================================================\n \
58\n"
59
60}