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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python26 1.0 |
---|
6 | |
---|
7 | name dblatex |
---|
8 | version 0.2.10 |
---|
9 | categories textproc tex |
---|
10 | maintainers nomaintainer |
---|
11 | description DocBook to LaTeX Converter |
---|
12 | long_description Dblatex transforms a DocBook XML/SGML document to LaTeX. \ |
---|
13 | Once transformed into LaTeX, standard LaTeX tools are \ |
---|
14 | used to produce DVI, Postcript or PDF files. \ |
---|
15 | dblatex tries to hide as much as possible the latex \ |
---|
16 | compiling stuff by providing a single clean script to \ |
---|
17 | produce directly DVI, PostScript and PDF output. \ |
---|
18 | The actual output rendering is done not only by the \ |
---|
19 | XSL stylesheets transformation, but also by a dedicated \ |
---|
20 | LaTeX package. The goal is to allow a deep LaTeX \ |
---|
21 | customisation without changing the XSL stylesheets. \ |
---|
22 | Post-processing is done by Python, to make publication \ |
---|
23 | faster, convert the images if needed, and do the whole \ |
---|
24 | compilation. |
---|
25 | homepage http://dblatex.sourceforge.net |
---|
26 | platforms darwin |
---|
27 | master_sites sourceforge:dblatex |
---|
28 | checksums md5 a8603517b93fe172aca3742d1d26a350 \ |
---|
29 | sha1 3b6016525a2615eccaa73c58ef3898618a50a729 \ |
---|
30 | rmd160 6d22aa1cfb03bc3672ac4ce27226e62170f9df9b |
---|
31 | use_bzip2 yes |
---|
32 | |
---|
33 | depends_lib port:python26 \ |
---|
34 | bin:latex:texlive \ |
---|
35 | port:dejavu-fonts \ |
---|
36 | port:ImageMagick \ |
---|
37 | port:docbook-xml \ |
---|
38 | port:docbook-xsl |
---|
39 | |
---|
40 | destroot.cmd ${python.bin} setup.py |
---|
41 | destroot.destdir --prefix=${destroot}${prefix} \ |
---|
42 | --catalogs==${destroot}${prefix}/etc/xml/catalog |
---|
43 | |
---|
44 | post-destroot { |
---|
45 | |
---|
46 | reinplace "s|${destroot}${prefix}|${prefix}|g" \ |
---|
47 | ${destroot}${prefix}/bin/dblatex |
---|
48 | |
---|
49 | set mysrcdir "${destroot}${prefix}/share/dblatex/latex" |
---|
50 | set mydstdir "${destroot}${prefix}/share/texmf/tex/latex" |
---|
51 | |
---|
52 | file mkdir ${mydstdir}/contrib |
---|
53 | file mkdir ${mydstdir}/contrib/db2latex |
---|
54 | file mkdir ${mydstdir}/contrib/db2latex/graphics |
---|
55 | file mkdir ${mydstdir}/contrib/example |
---|
56 | file mkdir ${mydstdir}/graphics |
---|
57 | file mkdir ${mydstdir}/misc |
---|
58 | file mkdir ${mydstdir}/misc/passivetex |
---|
59 | file mkdir ${mydstdir}/misc/xelatex |
---|
60 | file mkdir ${mydstdir}/scripts |
---|
61 | file mkdir ${mydstdir}/specs |
---|
62 | file mkdir ${mydstdir}/style |
---|
63 | |
---|
64 | file copy ${mysrcdir}/contrib/db2latex/db2latex.sty ${mydstdir}/contrib/db2latex |
---|
65 | file copy ${mysrcdir}/contrib/db2latex/param.xsl ${mydstdir}/contrib/db2latex |
---|
66 | |
---|
67 | file copy ${mysrcdir}/contrib/db2latex/graphics/caution.eps ${mydstdir}/contrib/db2latex/graphics |
---|
68 | file copy ${mysrcdir}/contrib/db2latex/graphics/important.eps ${mydstdir}/contrib/db2latex/graphics |
---|
69 | file copy ${mysrcdir}/contrib/db2latex/graphics/note.eps ${mydstdir}/contrib/db2latex/graphics |
---|
70 | file copy ${mysrcdir}/contrib/db2latex/graphics/tip.eps ${mydstdir}/contrib/db2latex/graphics |
---|
71 | file copy ${mysrcdir}/contrib/db2latex/graphics/warning.eps ${mydstdir}/contrib/db2latex/graphics |
---|
72 | file copy ${mysrcdir}/contrib/db2latex/graphics/caution.pdf ${mydstdir}/contrib/db2latex/graphics |
---|
73 | file copy ${mysrcdir}/contrib/db2latex/graphics/important.pdf ${mydstdir}/contrib/db2latex/graphics |
---|
74 | file copy ${mysrcdir}/contrib/db2latex/graphics/note.pdf ${mydstdir}/contrib/db2latex/graphics |
---|
75 | file copy ${mysrcdir}/contrib/db2latex/graphics/tip.pdf ${mydstdir}/contrib/db2latex/graphics |
---|
76 | file copy ${mysrcdir}/contrib/db2latex/graphics/warning.pdf ${mydstdir}/contrib/db2latex/graphics |
---|
77 | |
---|
78 | file copy ${mysrcdir}/contrib/example/dbsimple.sty ${mydstdir}/contrib/example |
---|
79 | |
---|
80 | file copy ${mysrcdir}/graphics/dblatex.eps ${mydstdir}/graphics |
---|
81 | file copy ${mysrcdir}/graphics/dblatex.png ${mydstdir}/graphics |
---|
82 | file copy ${mysrcdir}/graphics/warning.eps ${mydstdir}/graphics |
---|
83 | file copy ${mysrcdir}/graphics/warning.fig ${mydstdir}/graphics |
---|
84 | file copy ${mysrcdir}/graphics/warning.pdf ${mydstdir}/graphics |
---|
85 | |
---|
86 | file copy ${mysrcdir}/misc/attachfile.sty ${mydstdir}/misc |
---|
87 | file copy ${mysrcdir}/misc/enumitem.sty ${mydstdir}/misc |
---|
88 | file copy ${mysrcdir}/misc/multirow2.sty ${mydstdir}/misc |
---|
89 | file copy ${mysrcdir}/misc/ragged2e.sty ${mydstdir}/misc |
---|
90 | file copy ${mysrcdir}/misc/bibtopic.sty ${mydstdir}/misc |
---|
91 | file copy ${mysrcdir}/misc/lastpage.sty ${mydstdir}/misc |
---|
92 | |
---|
93 | file copy ${mysrcdir}/misc/passivetex/LICENSE ${mydstdir}/misc/passivetex |
---|
94 | file copy ${mysrcdir}/misc/passivetex/dummyels.sty ${mydstdir}/misc/passivetex |
---|
95 | file copy ${mysrcdir}/misc/passivetex/unicode.sty ${mydstdir}/misc/passivetex |
---|
96 | |
---|
97 | file copy ${mysrcdir}/misc/xelatex/xecyr.sty ${mydstdir}/misc/xelatex |
---|
98 | |
---|
99 | file copy ${mysrcdir}/specs/db2latex.specs ${mydstdir}/specs |
---|
100 | file copy ${mysrcdir}/specs/native.specs ${mydstdir}/specs |
---|
101 | file copy ${mysrcdir}/specs/simple.specs ${mydstdir}/specs |
---|
102 | |
---|
103 | file copy ${mysrcdir}/style/dbk_admonition.sty ${mydstdir}/style |
---|
104 | file copy ${mysrcdir}/style/dbk_core.sty ${mydstdir}/style |
---|
105 | file copy ${mysrcdir}/style/dbk_item.sty ${mydstdir}/style |
---|
106 | file copy ${mysrcdir}/style/dbk_verbatim.sty ${mydstdir}/style |
---|
107 | file copy ${mysrcdir}/style/dbk_annot.sty ${mydstdir}/style |
---|
108 | file copy ${mysrcdir}/style/dbk_fonts.sty ${mydstdir}/style |
---|
109 | file copy ${mysrcdir}/style/dbk_locale.sty ${mydstdir}/style |
---|
110 | file copy ${mysrcdir}/style/docbook.sty ${mydstdir}/style |
---|
111 | file copy ${mysrcdir}/style/dbk_biblio.sty ${mydstdir}/style |
---|
112 | file copy ${mysrcdir}/style/dbk_graphic.sty ${mydstdir}/style |
---|
113 | file copy ${mysrcdir}/style/dbk_revision.sty ${mydstdir}/style |
---|
114 | file copy ${mysrcdir}/style/dbk_callout.sty ${mydstdir}/style |
---|
115 | file copy ${mysrcdir}/style/dbk_headfoot.sty ${mydstdir}/style |
---|
116 | file copy ${mysrcdir}/style/dbk_table.sty ${mydstdir}/style |
---|
117 | file copy ${mysrcdir}/style/dbk_changebar.sty ${mydstdir}/style |
---|
118 | file copy ${mysrcdir}/style/dbk_hyper.sty ${mydstdir}/style |
---|
119 | file copy ${mysrcdir}/style/dbk_title.sty ${mydstdir}/style |
---|
120 | |
---|
121 | } |
---|
122 | |
---|
123 | post-activate { |
---|
124 | |
---|
125 | system "${prefix}/bin/mktexlsr" |
---|
126 | |
---|
127 | } |
---|