git.iko.soy/typeable/pandoc
on 1.8 help sign in
typeable/pandoc/pandoc.cabal
364 lines 14 kB history raw
1Name: pandoc
2Version: 1.8
3Cabal-Version: >= 1.6
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, GHC == 6.12.3, GHC == 7.0.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, LaTeX and Textile, and it can write
20 markdown, reStructuredText, HTML, LaTeX, ConTeXt, Docbook,
21 OpenDocument, ODT, RTF, MediaWiki, Textile, groff man pages,
22 plain text, Emacs Org-Mode, EPUB, and S5 and Slidy HTML
23 slide shows.
24 .
25 Pandoc extends standard markdown syntax with footnotes,
26 embedded LaTeX, definition lists, tables, and other
27 features. A compatibility mode is provided for those
28 who need a drop-in replacement for Markdown.pl.
29 .
30 In contrast to existing tools for converting markdown
31 to HTML, which use regex substitutions, pandoc has
32 a modular design: it consists of a set of readers,
33 which parse text in a given format and produce a native
34 representation of the document, and a set of writers,
35 which convert this native representation into a target
36 format. Thus, adding an input or output format requires
37 only adding a reader or writer.
38Data-Files:
39 -- templates
40 templates/html.template, templates/docbook.template,
41 templates/opendocument.template, templates/latex.template,
42 templates/context.template, templates/texinfo.template,
43 templates/man.template, templates/markdown.template,
44 templates/rst.template, templates/plain.template,
45 templates/mediawiki.template, templates/rtf.template,
46 templates/s5.template, templates/slidy.template,
47 templates/textile.template, templates/org.template
48 -- data for ODT writer
49 reference.odt,
50 -- stylesheet for EPUB writer
51 epub.css,
52 -- data for LaTeXMathML writer
53 data/LaTeXMathML.js,
54 data/MathMLinHTML.js,
55 -- data for S5 writer
56 s5/default/slides.js.comment,
57 s5/default/slides.js.packed,
58 s5/default/s5-core.css,
59 s5/default/framing.css,
60 s5/default/pretty.css,
61 s5/default/opera.css,
62 s5/default/outline.css,
63 s5/default/print.css,
64 -- data for slidy writer
65 slidy/slidy.min.css,
66 slidy/slidy.min.js,
67 -- data for citeproc
68 default.csl,
69 -- documentation
70 README, INSTALL, COPYRIGHT, BUGS, changelog
71Extra-Source-Files:
72 -- sources for man pages
73 man/man1/markdown2pdf.1.md,
74 -- code to create pandoc.1 man page
75 MakeManPage.hs,
76 man/man1/pandoc.1.template,
77 man/man5/pandoc_markdown.5.template,
78 -- generated man pages (produced post-build)
79 man/man1/markdown2pdf.1,
80 man/man1/pandoc.1,
81 man/man5/pandoc_markdown.5,
82 -- benchmarks
83 Benchmark.hs,
84 -- tests
85 tests/bodybg.gif,
86 tests/html-reader.html,
87 tests/html-reader.native,
88 tests/insert,
89 tests/lalune.jpg,
90 tests/movie.jpg,
91 tests/biblio.bib,
92 tests/chicago-author-date.csl,
93 tests/ieee.csl,
94 tests/mhra.csl,
95 tests/latex-reader.latex,
96 tests/latex-reader.native,
97 tests/textile-reader.textile,
98 tests/textile-reader.native,
99 tests/markdown-reader-more.txt,
100 tests/markdown-reader-more.native,
101 tests/markdown-citations.txt,
102 tests/markdown-citations.chicago-author-date.txt,
103 tests/markdown-citations.mhra.txt,
104 tests/markdown-citations.ieee.txt,
105 tests/textile-reader.textile,
106 tests/rst-reader.native,
107 tests/rst-reader.rst,
108 tests/s5.basic.html,
109 tests/s5.fancy.html,
110 tests/s5.fragment.html,
111 tests/s5.inserts.html,
112 tests/s5.native,
113 tests/tables.context,
114 tests/tables.docbook,
115 tests/tables.html,
116 tests/tables.latex,
117 tests/tables.man,
118 tests/tables.plain,
119 tests/tables.markdown,
120 tests/tables.mediawiki,
121 tests/tables.textile,
122 tests/tables.native,
123 tests/tables.opendocument,
124 tests/tables.org,
125 tests/tables.texinfo,
126 tests/tables.rst,
127 tests/tables.rtf,
128 tests/tables.txt,
129 tests/tables-rstsubset.native,
130 tests/testsuite.native,
131 tests/testsuite.txt,
132 tests/writer.latex,
133 tests/writer.context,
134 tests/writer.docbook,
135 tests/writer.html,
136 tests/writer.man,
137 tests/writer.markdown,
138 tests/writer.plain,
139 tests/writer.mediawiki,
140 tests/writer.textile,
141 tests/writer.native,
142 tests/writer.opendocument,
143 tests/writer.org,
144 tests/writer.rst,
145 tests/writer.rtf,
146 tests/writer.texinfo,
147 tests/lhs-test.native,
148 tests/lhs-test.markdown,
149 tests/lhs-test.markdown+lhs,
150 tests/lhs-test.rst,
151 tests/lhs-test.rst+lhs,
152 tests/lhs-test.latex,
153 tests/lhs-test.latex+lhs,
154 tests/lhs-test.html,
155 tests/lhs-test.html+lhs,
156 tests/lhs-test.nohl.html,
157 tests/lhs-test.nohl.html+lhs,
158 tests/lhs-test.fragment.html+lhs
159Extra-Tmp-Files: man/man1/pandoc.1,
160 man/man1/markdown2pdf.1,
161 man/man5/pandoc_markdown.5
163Flag threaded
164 Description: Compile markdown2pdf with -threaded option.
165 Default: True
166Flag highlighting
167 Description: Compile in support for syntax highlighting of code blocks.
168 Default: False
169Flag executable
170 Description: Build the pandoc executable.
171 Default: True
172Flag library
173 Description: Build the pandoc library.
174 Default: True
175Flag wrappers
176 Description: Build the wrappers (markdown2pdf).
177 Default: True
178Flag tests
179 Description: Build test-pandoc.
180 Default: False
181Flag benchmarks
182 Description: Build benchmark-pandoc.
183 Default: False
185Library
186 -- Note: the following material must be in both Library and Executable stanzas.
187 -- It needs to be duplicated because of the library & executable flags.
188 -- BEGIN DUPLICATED SECTION
189 Build-Depends: containers >= 0.1 && < 0.5,
190 parsec >= 2.1 && < 3.2,
191 xhtml >= 3000.0 && < 3000.3,
192 mtl >= 1.1 && < 2.1,
193 network >= 2 && < 2.4,
194 filepath >= 1.1 && < 1.3,
195 process >= 1 && < 1.1,
196 directory >= 1 && < 1.2,
197 bytestring >= 0.9 && < 1.0,
198 zip-archive >= 0.1.1.7 && < 0.2,
199 utf8-string >= 0.3 && < 0.4,
200 old-time >= 1 && < 1.1,
201 HTTP >= 4000.0.5 && < 4000.2,
202 texmath >= 0.5 && < 0.6,
203 xml >= 1.3.5 && < 1.4,
204 random >= 1 && < 1.1,
205 extensible-exceptions >= 0.1 && < 0.2,
206 citeproc-hs >= 0.3.1 && < 0.4,
207 pandoc-types == 1.8.*,
208 json >= 0.4 && < 0.5,
209 dlist >= 0.4 && < 0.6,
210 tagsoup >= 0.12 && < 0.13
211 if impl(ghc >= 6.10)
212 Build-depends: base >= 4 && < 5, syb >= 0.1 && < 0.4
213 else
214 Build-depends: base >= 3 && < 4
215 if flag(highlighting)
216 Build-depends: highlighting-kate >= 0.2.9 && < 0.3
217 cpp-options: -D_HIGHLIGHTING
218 if impl(ghc >= 6.12)
219 Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind
220 else
221 Ghc-Options: -O2 -Wall
222 Ghc-Prof-Options: -auto-all -caf-all
223 Extensions: CPP
224 Hs-Source-Dirs: src
225 -- END DUPLICATED SECTION
227 Exposed-Modules: Text.Pandoc,
228 Text.Pandoc.Pretty,
229 Text.Pandoc.CharacterReferences,
230 Text.Pandoc.Shared,
231 Text.Pandoc.Parsing,
232 Text.Pandoc.Highlighting,
233 Text.Pandoc.Readers.HTML,
234 Text.Pandoc.Readers.LaTeX,
235 Text.Pandoc.Readers.Markdown,
236 Text.Pandoc.Readers.RST,
237 Text.Pandoc.Readers.TeXMath,
238 Text.Pandoc.Readers.Textile,
239 Text.Pandoc.Readers.Native,
240 Text.Pandoc.Writers.Native,
241 Text.Pandoc.Writers.Docbook,
242 Text.Pandoc.Writers.HTML,
243 Text.Pandoc.Writers.LaTeX,
244 Text.Pandoc.Writers.ConTeXt,
245 Text.Pandoc.Writers.OpenDocument,
246 Text.Pandoc.Writers.Texinfo,
247 Text.Pandoc.Writers.Man,
248 Text.Pandoc.Writers.Markdown,
249 Text.Pandoc.Writers.RST,
250 Text.Pandoc.Writers.Org,
251 Text.Pandoc.Writers.Textile,
252 Text.Pandoc.Writers.MediaWiki,
253 Text.Pandoc.Writers.RTF,
254 Text.Pandoc.Writers.ODT,
255 Text.Pandoc.Writers.EPUB,
256 Text.Pandoc.S5,
257 Text.Pandoc.Templates
258 Text.Pandoc.Biblio
259 Other-Modules: Text.Pandoc.XML,
260 Text.Pandoc.UTF8,
261 Text.Pandoc.UUID,
262 Paths_pandoc
264 if flag(library)
265 Buildable: True
266 else
267 Buildable: False
269Executable pandoc
270 -- Note: the following material must be in both Library and Executable stanzas.
271 -- It needs to be duplicated because of the library & executable flags.
272 -- BEGIN DUPLICATED SECTION
273 Build-Depends: containers >= 0.1 && < 0.5,
274 parsec >= 2.1 && < 3.2,
275 xhtml >= 3000.0 && < 3000.3,
276 mtl >= 1.1 && < 2.1,
277 network >= 2 && < 2.4,
278 filepath >= 1.1 && < 1.3,
279 process >= 1 && < 1.1,
280 directory >= 1 && < 1.2,
281 bytestring >= 0.9 && < 1.0,
282 zip-archive >= 0.1.1.7 && < 0.2,
283 utf8-string >= 0.3 && < 0.4,
284 old-time >= 1 && < 1.1,
285 HTTP >= 4000.0.5 && < 4000.2,
286 texmath >= 0.5 && < 0.6,
287 xml >= 1.3.5 && < 1.4,
288 random >= 1 && < 1.1,
289 extensible-exceptions >= 0.1 && < 0.2,
290 citeproc-hs >= 0.3.1 && < 0.4,
291 pandoc-types == 1.8.*,
292 json >= 0.4 && < 0.5,
293 dlist >= 0.4 && < 0.6,
294 tagsoup >= 0.12 && < 0.13
295 if impl(ghc >= 6.10)
296 Build-depends: base >= 4 && < 5, syb >= 0.1 && < 0.4
297 else
298 Build-depends: base >= 3 && < 4
299 if flag(highlighting)
300 Build-depends: highlighting-kate >= 0.2.9 && < 0.3
301 cpp-options: -D_HIGHLIGHTING
302 if impl(ghc >= 6.12)
303 Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind
304 else
305 Ghc-Options: -O2 -Wall
306 Ghc-Prof-Options: -auto-all -caf-all
307 Extensions: CPP
308 Hs-Source-Dirs: src
309 -- END DUPLICATED SECTION
311 Main-Is: pandoc.hs
312 if flag(executable) || flag(wrappers)
313 Buildable: True
314 else
315 Buildable: False
317Executable markdown2pdf
318 Hs-Source-Dirs: src
319 Main-Is: markdown2pdf.hs
320 if flag(threaded)
321 Ghc-Options: -Wall -threaded
322 else
323 Ghc-Options: -Wall
324 Ghc-Prof-Options: -auto-all
325 Extensions: CPP
326 if flag(wrappers)
327 Buildable: True
328 else
329 Buildable: False
331Executable test-pandoc
332 Hs-Source-Dirs: src
333 Main-Is: test-pandoc.hs
334 if flag(highlighting)
335 cpp-options: -D_HIGHLIGHTING
336 if impl(ghc >= 7)
337 cpp-options: -D_LIT=lit
338 else
339 cpp-options: -D_LIT=$lit
340 if !flag(tests)
341 Buildable: False
342 else
343 if impl(ghc >= 6.12)
344 Ghc-Options: -Wall -fno-warn-unused-do-bind
345 else
346 Ghc-Options: -Wall
347 Extensions: CPP
348 Build-Depends: base >= 4 && < 5, Diff, test-framework >= 0.3 && < 0.4,
349 test-framework-hunit >= 0.2 && < 0.3,
350 test-framework-quickcheck2 >= 0.2.9 && < 0.3,
351 QuickCheck >= 2.4 && < 2.6,
352 HUnit >= 1.2 && < 1.3,
353 template-haskell >= 2.4 && < 2.6,
354 ansi-terminal == 0.5.*
355 Other-Modules: Tests.Old
356 Tests.Helpers
357 Tests.Arbitrary
358 Tests.Shared
359 Tests.Readers.LaTeX
360 Tests.Readers.Markdown
361 Tests.Readers.RST
362 Tests.Writers.Native
363 Tests.Writers.ConTeXt
364 Tests.Writers.HTML