git.iko.soy/typeable/pandoc
on 1.8.1 help sign in
typeable/pandoc/pandoc.cabal
368 lines 14 kB history raw
1Name: pandoc
2Version: 1.8.1
3Cabal-Version: >= 1.6
4Build-Type: Custom
5License: GPL
6License-File: COPYING
7Copyright: (c) 2006-2011 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.10.4, 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
163Source-repository head
164 type: git
165 location: git://github.com/jgm/pandoc.git
167Flag threaded
168 Description: Compile markdown2pdf with -threaded option.
169 Default: True
170Flag highlighting
171 Description: Compile in support for syntax highlighting of code blocks.
172 Default: False
173Flag executable
174 Description: Build the pandoc executable.
175 Default: True
176Flag library
177 Description: Build the pandoc library.
178 Default: True
179Flag wrappers
180 Description: Build the wrappers (markdown2pdf).
181 Default: True
182Flag tests
183 Description: Build test-pandoc.
184 Default: False
185Flag benchmarks
186 Description: Build benchmark-pandoc.
187 Default: False
189Library
190 -- Note: the following material must be in both Library and Executable stanzas.
191 -- It needs to be duplicated because of the library & executable flags.
192 -- BEGIN DUPLICATED SECTION
193 Build-Depends: containers >= 0.1 && < 0.5,
194 parsec >= 2.1 && < 3.2,
195 xhtml >= 3000.0 && < 3000.3,
196 mtl >= 1.1 && < 2.1,
197 network >= 2 && < 2.4,
198 filepath >= 1.1 && < 1.3,
199 process >= 1 && < 1.1,
200 directory >= 1 && < 1.2,
201 bytestring >= 0.9 && < 1.0,
202 zip-archive >= 0.1.1.7 && < 0.2,
203 utf8-string >= 0.3 && < 0.4,
204 old-time >= 1 && < 1.1,
205 HTTP >= 4000.0.5 && < 4000.2,
206 texmath >= 0.5 && < 0.6,
207 xml >= 1.3.5 && < 1.4,
208 random >= 1 && < 1.1,
209 extensible-exceptions >= 0.1 && < 0.2,
210 citeproc-hs >= 0.3.1 && < 0.4,
211 pandoc-types == 1.8.*,
212 json >= 0.4 && < 0.5,
213 dlist >= 0.4 && < 0.6,
214 tagsoup >= 0.12 && < 0.13
215 if impl(ghc >= 6.10)
216 Build-depends: base >= 4 && < 5, syb >= 0.1 && < 0.4
217 else
218 Build-depends: base >= 3 && < 4
219 if flag(highlighting)
220 Build-depends: highlighting-kate >= 0.2.9 && < 0.3
221 cpp-options: -D_HIGHLIGHTING
222 if impl(ghc >= 6.12)
223 Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind
224 else
225 Ghc-Options: -O2 -Wall
226 Ghc-Prof-Options: -auto-all -caf-all
227 Extensions: CPP
228 Hs-Source-Dirs: src
229 -- END DUPLICATED SECTION
231 Exposed-Modules: Text.Pandoc,
232 Text.Pandoc.Pretty,
233 Text.Pandoc.CharacterReferences,
234 Text.Pandoc.Shared,
235 Text.Pandoc.Parsing,
236 Text.Pandoc.Highlighting,
237 Text.Pandoc.Readers.HTML,
238 Text.Pandoc.Readers.LaTeX,
239 Text.Pandoc.Readers.Markdown,
240 Text.Pandoc.Readers.RST,
241 Text.Pandoc.Readers.TeXMath,
242 Text.Pandoc.Readers.Textile,
243 Text.Pandoc.Readers.Native,
244 Text.Pandoc.Writers.Native,
245 Text.Pandoc.Writers.Docbook,
246 Text.Pandoc.Writers.HTML,
247 Text.Pandoc.Writers.LaTeX,
248 Text.Pandoc.Writers.ConTeXt,
249 Text.Pandoc.Writers.OpenDocument,
250 Text.Pandoc.Writers.Texinfo,
251 Text.Pandoc.Writers.Man,
252 Text.Pandoc.Writers.Markdown,
253 Text.Pandoc.Writers.RST,
254 Text.Pandoc.Writers.Org,
255 Text.Pandoc.Writers.Textile,
256 Text.Pandoc.Writers.MediaWiki,
257 Text.Pandoc.Writers.RTF,
258 Text.Pandoc.Writers.ODT,
259 Text.Pandoc.Writers.EPUB,
260 Text.Pandoc.S5,
261 Text.Pandoc.Templates
262 Text.Pandoc.Biblio
263 Other-Modules: Text.Pandoc.XML,
264 Text.Pandoc.UTF8,
265 Text.Pandoc.UUID,
266 Paths_pandoc
268 if flag(library)
269 Buildable: True
270 else
271 Buildable: False
273Executable pandoc
274 -- Note: the following material must be in both Library and Executable stanzas.
275 -- It needs to be duplicated because of the library & executable flags.
276 -- BEGIN DUPLICATED SECTION
277 Build-Depends: containers >= 0.1 && < 0.5,
278 parsec >= 2.1 && < 3.2,
279 xhtml >= 3000.0 && < 3000.3,
280 mtl >= 1.1 && < 2.1,
281 network >= 2 && < 2.4,
282 filepath >= 1.1 && < 1.3,
283 process >= 1 && < 1.1,
284 directory >= 1 && < 1.2,
285 bytestring >= 0.9 && < 1.0,
286 zip-archive >= 0.1.1.7 && < 0.2,
287 utf8-string >= 0.3 && < 0.4,
288 old-time >= 1 && < 1.1,
289 HTTP >= 4000.0.5 && < 4000.2,
290 texmath >= 0.5 && < 0.6,
291 xml >= 1.3.5 && < 1.4,
292 random >= 1 && < 1.1,
293 extensible-exceptions >= 0.1 && < 0.2,
294 citeproc-hs >= 0.3.1 && < 0.4,
295 pandoc-types == 1.8.*,
296 json >= 0.4 && < 0.5,
297 dlist >= 0.4 && < 0.6,
298 tagsoup >= 0.12 && < 0.13
299 if impl(ghc >= 6.10)
300 Build-depends: base >= 4 && < 5, syb >= 0.1 && < 0.4
301 else
302 Build-depends: base >= 3 && < 4
303 if flag(highlighting)
304 Build-depends: highlighting-kate >= 0.2.9 && < 0.3
305 cpp-options: -D_HIGHLIGHTING
306 if impl(ghc >= 6.12)
307 Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind
308 else
309 Ghc-Options: -O2 -Wall
310 Ghc-Prof-Options: -auto-all -caf-all
311 Extensions: CPP
312 Hs-Source-Dirs: src
313 -- END DUPLICATED SECTION
315 Main-Is: pandoc.hs
316 if flag(executable) || flag(wrappers)
317 Buildable: True
318 else
319 Buildable: False
321Executable markdown2pdf
322 Hs-Source-Dirs: src
323 Main-Is: markdown2pdf.hs
324 if flag(threaded)
325 Ghc-Options: -Wall -threaded
326 else
327 Ghc-Options: -Wall
328 Ghc-Prof-Options: -auto-all
329 Extensions: CPP
330 if flag(wrappers)
331 Buildable: True
332 else
333 Buildable: False
335Executable test-pandoc
336 Hs-Source-Dirs: src
337 Main-Is: test-pandoc.hs
338 if flag(highlighting)
339 cpp-options: -D_HIGHLIGHTING
340 if impl(ghc >= 7)
341 cpp-options: -D_LIT=lit
342 else
343 cpp-options: -D_LIT=$lit
344 if !flag(tests)
345 Buildable: False
346 else
347 if impl(ghc >= 6.12)
348 Ghc-Options: -Wall -fno-warn-unused-do-bind
349 else
350 Ghc-Options: -Wall
351 Extensions: CPP
352 Build-Depends: base >= 4 && < 5, Diff, test-framework >= 0.3 && < 0.4,
353 test-framework-hunit >= 0.2 && < 0.3,
354 test-framework-quickcheck2 >= 0.2.9 && < 0.3,
355 QuickCheck >= 2.4 && < 2.6,
356 HUnit >= 1.2 && < 1.3,
357 template-haskell >= 2.4 && < 2.6,
358 ansi-terminal == 0.5.*
359 Other-Modules: Tests.Old
360 Tests.Helpers
361 Tests.Arbitrary
362 Tests.Shared
363 Tests.Readers.LaTeX
364 Tests.Readers.Markdown
365 Tests.Readers.RST
366 Tests.Writers.Native
367 Tests.Writers.ConTeXt
368 Tests.Writers.HTML