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: Portfile 70152 2010-07-30 18:29:18Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python26 1.0 |
---|
6 | |
---|
7 | name dblatex |
---|
8 | version 0.3 |
---|
9 | categories textproc tex |
---|
10 | maintainers nomaintainer |
---|
11 | platforms darwin |
---|
12 | description DocBook to LaTeX Converter |
---|
13 | long_description Dblatex transforms a DocBook XML/SGML document to LaTeX. \ |
---|
14 | Once transformed into LaTeX, standard LaTeX tools are \ |
---|
15 | used to produce DVI, Postcript or PDF files. \ |
---|
16 | dblatex tries to hide as much as possible the latex \ |
---|
17 | compiling stuff by providing a single clean script to \ |
---|
18 | produce directly DVI, PostScript and PDF output. \ |
---|
19 | The actual output rendering is done not only by the \ |
---|
20 | XSL stylesheets transformation, but also by a dedicated \ |
---|
21 | LaTeX package. The goal is to allow a deep LaTeX \ |
---|
22 | customisation without changing the XSL stylesheets. \ |
---|
23 | Post-processing is done by Python, to make publication \ |
---|
24 | faster, convert the images if needed, and do the whole \ |
---|
25 | compilation. |
---|
26 | homepage http://dblatex.sourceforge.net |
---|
27 | |
---|
28 | master_sites sourceforge:dblatex |
---|
29 | |
---|
30 | checksums md5 7de6bf72b8b2934169ce0ec911e966ed \ |
---|
31 | sha1 60a853354de23a44c2f32bca812909e3a5dd76ba \ |
---|
32 | rmd160 987090d2282b8ff802f6e806f788d9fdc42187e2 |
---|
33 | |
---|
34 | use_bzip2 yes |
---|
35 | |
---|
36 | depends_lib port:python26 \ |
---|
37 | port:texlive-latex-extra \ |
---|
38 | port:texlive-math-extra \ |
---|
39 | port:texlive-latex-recommended \ |
---|
40 | port:dejavu-fonts \ |
---|
41 | port:ImageMagick \ |
---|
42 | port:docbook-xml \ |
---|
43 | port:docbook-xsl |
---|
44 | |
---|
45 | destroot.cmd ${python.bin} setup.py |
---|
46 | destroot.destdir --root=${destroot} \ |
---|
47 | --catalogs==${destroot}${prefix}/etc/xml/catalog |
---|
48 | |
---|
49 | python.link_binaries no |
---|
50 | |
---|
51 | pre-destroot { |
---|
52 | # |
---|
53 | # The following ensures that the packages installed by |
---|
54 | # texlive-latex-extra and texlive-latex-extra are |
---|
55 | # visible by kpsewhich |
---|
56 | # |
---|
57 | # This must be done before dblatex setup script runs. |
---|
58 | # |
---|
59 | system "${prefix}/bin/mktexlsr --verbose" |
---|
60 | } |
---|
61 | |
---|
62 | post-destroot { |
---|
63 | reinplace "s|${destroot}${prefix}|${prefix}|g" ${destroot}${python.prefix}/bin/dblatex |
---|
64 | |
---|
65 | fs-traverse f ${destroot}${python.prefix}/share { |
---|
66 | if {[file isfile $f]} { |
---|
67 | set f [string range $f [string length ${destroot}${python.prefix}/share/] end] |
---|
68 | file mkdir [file dirname ${destroot}${prefix}/share/$f] |
---|
69 | ln -s ${python.prefix}/share/$f ${destroot}${prefix}/share/$f |
---|
70 | } |
---|
71 | } |
---|
72 | ln -s ${python.prefix}/bin/dblatex ${destroot}${prefix}/bin/ |
---|
73 | |
---|
74 | xinstall -d ${destroot}${prefix}/share/texmf/tex |
---|
75 | copy ${destroot}${python.prefix}/share/dblatex/latex ${destroot}${prefix}/share/texmf/tex/ |
---|
76 | } |
---|
77 | |
---|
78 | post-activate { |
---|
79 | # |
---|
80 | # The following ensures that the packages installed by |
---|
81 | # dblatex are visible by kpsewhich |
---|
82 | # |
---|
83 | system "${prefix}/bin/mktexlsr" |
---|
84 | } |
---|
85 | |
---|
86 | livecheck.type regex |
---|
87 | livecheck.url http://sourceforge.net/projects/${name}/files/ |
---|
88 | livecheck.regex /${name}-(\[0-9.\]+)/ |
---|