git.iko.soy/typeable/pandoc
on 1.6 help sign in
typeable/pandoc/pandoc.cabal
271 lines 11 kB history raw
1Name: pandoc
2Version: 1.6
3Cabal-Version: >= 1.2
4Build-Type: Custom
5License: GPL
6License-File: COPYING
7Copyright: (c) 2006-2010 John MacFarlane
8Author: John MacFarlane <jgm@berkeley.edu>
9Maintainer: John MacFarlane <jgm@berkeley.edu>
10Bug-Reports: http://code.google.com/p/pandoc/issues/list
11Stability: alpha
12Homepage: http://johnmacfarlane.net/pandoc
13Category: Text
14Tested-With: GHC == 6.12.1
15Synopsis: Conversion between markup formats
16Description: Pandoc is a Haskell library for converting from one markup
17 format to another, and a command-line tool that uses
18 this library. It can read markdown and (subsets of)
19 reStructuredText, HTML, and LaTeX, and it can write
20 markdown, reStructuredText, HTML, LaTeX, ConTeXt, Docbook,
21 OpenDocument, ODT, RTF, MediaWiki, groff man pages, EPUB,
22 and S5 and Slidy HTML slide shows.
23 .
24 Pandoc extends standard markdown syntax with footnotes,
25 embedded LaTeX, definition lists, tables, and other
26 features. A compatibility mode is provided for those
27 who need a drop-in replacement for Markdown.pl.
28 .
29 In contrast to existing tools for converting markdown
30 to HTML, which use regex substitutions, pandoc has
31 a modular design: it consists of a set of readers,
32 which parse text in a given format and produce a native
33 representation of the document, and a set of writers,
34 which convert this native representation into a target
35 format. Thus, adding an input or output format requires
36 only adding a reader or writer.
37Data-Files:
38 -- templates
39 templates/html.template, templates/docbook.template,
40 templates/opendocument.template, templates/latex.template,
41 templates/context.template, templates/texinfo.template,
42 templates/man.template, templates/markdown.template,
43 templates/rst.template, templates/plain.template,
44 templates/mediawiki.template, templates/rtf.template,
45 templates/s5.template, templates/slidy.template,
46 -- data for ODT writer
47 reference.odt,
48 -- stylesheet for EPUB writer
49 epub.css,
50 -- data for LaTeXMathML writer
51 data/LaTeXMathML.js,
52 data/MathMLinHTML.js,
53 -- data for S5 writer
54 s5/default/slides.js.comment,
55 s5/default/slides.js.packed,
56 s5/default/s5-core.css,
57 s5/default/framing.css,
58 s5/default/pretty.css,
59 s5/default/opera.css,
60 s5/default/outline.css,
61 s5/default/print.css,
62 -- data for slidy writer
63 slidy/slidy.min.css,
64 slidy/slidy.min.js,
65 -- documentation
66 README, INSTALL, COPYRIGHT, BUGS, changelog
67Extra-Source-Files:
68 -- sources for man pages
69 man/man1/pandoc.1.md, man/man1/markdown2pdf.1.md,
70 -- tests
71 tests/bodybg.gif,
72 tests/html-reader.html,
73 tests/html-reader.native,
74 tests/insert,
75 tests/lalune.jpg,
76 tests/movie.jpg,
77 tests/latex-reader.latex,
78 tests/latex-reader.native,
79 tests/markdown-reader-more.txt,
80 tests/markdown-reader-more.native,
81 tests/rst-reader.native,
82 tests/rst-reader.rst,
83 tests/s5.basic.html,
84 tests/s5.fancy.html,
85 tests/s5.fragment.html,
86 tests/s5.inserts.html,
87 tests/s5.native,
88 tests/tables.context,
89 tests/tables.docbook,
90 tests/tables.html,
91 tests/tables.latex,
92 tests/tables.man,
93 tests/tables.plain,
94 tests/tables.markdown,
95 tests/tables.mediawiki,
96 tests/tables.native,
97 tests/tables.opendocument,
98 tests/tables.texinfo,
99 tests/tables.rst,
100 tests/tables.rtf,
101 tests/tables.txt,
102 tests/tables-rstsubset.native,
103 tests/testsuite.native,
104 tests/testsuite.txt,
105 tests/writer.latex,
106 tests/writer.context,
107 tests/writer.docbook,
108 tests/writer.html,
109 tests/writer.man,
110 tests/writer.markdown,
111 tests/writer.plain,
112 tests/writer.mediawiki,
113 tests/writer.native,
114 tests/writer.opendocument,
115 tests/writer.rst,
116 tests/writer.rtf,
117 tests/writer.texinfo,
118 tests/lhs-test.native,
119 tests/lhs-test.markdown,
120 tests/lhs-test.markdown+lhs,
121 tests/lhs-test.rst,
122 tests/lhs-test.rst+lhs,
123 tests/lhs-test.latex,
124 tests/lhs-test.latex+lhs,
125 tests/lhs-test.html,
126 tests/lhs-test.html+lhs,
127 tests/lhs-test.fragment.html+lhs,
128 tests/RunTests.hs
129Extra-Tmp-Files: man/man1/pandoc.1, man/man1/markdown2pdf.1
131Flag threaded
132 Description: Compile markdown2pdf with -threaded option.
133 Default: True
134Flag highlighting
135 Description: Compile in support for syntax highlighting of code blocks.
136 Default: False
137Flag executable
138 Description: Build the pandoc executable.
139 Default: True
140Flag library
141 Description: Build the pandoc library.
142 Default: True
143Flag wrappers
144 Description: Build the wrappers (markdown2pdf).
145 Default: True
146Flag citeproc
147 Description: Compile in support for citeproc-hs bibliographic formatting.
148 Default: False
150Library
151 -- Note: the following material must be in both Library and Executable stanzas.
152 -- It needs to be duplicated because of the library & executable flags.
153 -- BEGIN DUPLICATED SECTION
154 Build-Depends: pretty >= 1, containers >= 0.1,
155 parsec >= 2.1, xhtml >= 3000.0,
156 mtl >= 1.1, network >= 2, filepath >= 1.1,
157 process >= 1, directory >= 1,
158 bytestring >= 0.9, zip-archive >= 0.1.1.4,
159 utf8-string >= 0.3, old-time >= 1,
160 HTTP >= 4000.0.5, texmath >= 0.3, xml >= 1.3.5 && < 1.4,
161 random, extensible-exceptions
162 if impl(ghc >= 6.10)
163 Build-depends: base >= 4 && < 5, syb
164 else
165 Build-depends: base >= 3 && < 4
166 if flag(highlighting)
167 Build-depends: highlighting-kate >= 0.2.7.1
168 cpp-options: -D_HIGHLIGHTING
169 if flag(citeproc)
170 Build-depends: citeproc-hs >= 0.2
171 cpp-options: -D_CITEPROC
172 if impl(ghc >= 6.12)
173 Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind
174 else
175 Ghc-Options: -O2 -Wall
176 Ghc-Prof-Options: -auto-all -caf-all
177 Extensions: CPP
178 Hs-Source-Dirs: src
179 -- END DUPLICATED SECTION
181 Exposed-Modules: Text.Pandoc,
182 Text.Pandoc.Blocks,
183 Text.Pandoc.Definition,
184 Text.Pandoc.CharacterReferences,
185 Text.Pandoc.Shared,
186 Text.Pandoc.Parsing,
187 Text.Pandoc.Highlighting,
188 Text.Pandoc.Readers.HTML,
189 Text.Pandoc.Readers.LaTeX,
190 Text.Pandoc.Readers.Markdown,
191 Text.Pandoc.Readers.RST,
192 Text.Pandoc.Readers.TeXMath,
193 Text.Pandoc.Writers.Native,
194 Text.Pandoc.Writers.Docbook,
195 Text.Pandoc.Writers.HTML,
196 Text.Pandoc.Writers.LaTeX,
197 Text.Pandoc.Writers.ConTeXt,
198 Text.Pandoc.Writers.OpenDocument,
199 Text.Pandoc.Writers.Texinfo,
200 Text.Pandoc.Writers.Man,
201 Text.Pandoc.Writers.Markdown,
202 Text.Pandoc.Writers.RST,
203 Text.Pandoc.Writers.MediaWiki,
204 Text.Pandoc.Writers.RTF,
205 Text.Pandoc.Writers.ODT,
206 Text.Pandoc.Writers.EPUB,
207 Text.Pandoc.S5,
208 Text.Pandoc.Templates
209 Other-Modules: Text.Pandoc.XML,
210 Text.Pandoc.UTF8,
211 Text.Pandoc.UUID,
212 Paths_pandoc
214 if flag(citeproc)
215 Exposed-Modules: Text.Pandoc.Biblio
216 if flag(library)
217 Buildable: True
218 else
219 Buildable: False
221Executable pandoc
222 -- Note: the following material must be in both Library and Executable stanzas.
223 -- It needs to be duplicated because of the library & executable flags.
224 -- BEGIN DUPLICATED SECTION
225 Build-Depends: pretty >= 1, containers >= 0.1,
226 parsec >= 2.1, xhtml >= 3000.0,
227 mtl >= 1.1, network >= 2, filepath >= 1.1,
228 process >= 1, directory >= 1,
229 bytestring >= 0.9, zip-archive >= 0.1.1.4,
230 utf8-string >= 0.3, old-time >= 1,
231 HTTP >= 4000.0.5, texmath, xml >= 1.3.5 && < 1.4,
232 random, extensible-exceptions
233 if impl(ghc >= 6.10)
234 Build-depends: base >= 4 && < 5, syb
235 else
236 Build-depends: base >= 3 && < 4
237 if flag(highlighting)
238 Build-depends: highlighting-kate >= 0.2.7.1
239 cpp-options: -D_HIGHLIGHTING
240 if flag(citeproc)
241 Build-depends: citeproc-hs >= 0.2
242 cpp-options: -D_CITEPROC
243 if impl(ghc >= 6.12)
244 Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind
245 else
246 Ghc-Options: -O2 -Wall
247 Ghc-Prof-Options: -auto-all -caf-all
248 Extensions: CPP
249 Hs-Source-Dirs: src
250 -- END DUPLICATED SECTION
252 Main-Is: pandoc.hs
253 if flag(executable) || flag(wrappers)
254 Buildable: True
255 else
256 Buildable: False
258Executable markdown2pdf
259 Hs-Source-Dirs: src
260 Main-Is: markdown2pdf.hs
261 if flag(threaded)
262 Ghc-Options: -Wall -threaded
263 else
264 Ghc-Options: -Wall
265 Ghc-Prof-Options: -auto-all
266 Extensions: CPP
267 if flag(wrappers)
268 Buildable: True
269 else
270 Buildable: False