aboutsummaryrefslogtreecommitdiff
path: root/pandoc.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'pandoc.cabal')
-rw-r--r--pandoc.cabal148
1 files changed, 65 insertions, 83 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 139e576ec..e999f1b80 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -1,5 +1,5 @@
Name: pandoc
-Version: 1.9.4.2
+Version: 1.10
Cabal-Version: >= 1.10
Build-Type: Custom
License: GPL
@@ -20,7 +20,7 @@ Description: Pandoc is a Haskell library for converting from one markup
markdown, reStructuredText, HTML, LaTeX, ConTeXt, Docbook,
OpenDocument, ODT, Word docx, RTF, MediaWiki, Textile,
groff man pages, plain text, Emacs Org-Mode, AsciiDoc, EPUB,
- and S5, Slidy and Slideous HTML slide shows.
+ FictionBook2, and S5, Slidy and Slideous HTML slide shows.
.
Pandoc extends standard markdown syntax with footnotes,
embedded LaTeX, definition lists, tables, and other
@@ -96,8 +96,6 @@ Extra-Source-Files:
-- generated man pages (produced post-build)
man/man1/pandoc.1,
man/man5/pandoc_markdown.5,
- -- benchmarks
- Benchmark.hs,
-- tests
tests/bodybg.gif,
tests/docbook-reader.docbook
@@ -174,7 +172,9 @@ Extra-Source-Files:
tests/lhs-test.latex+lhs,
tests/lhs-test.html,
tests/lhs-test.html+lhs,
- tests/lhs-test.fragment.html+lhs
+ tests/lhs-test.fragment.html+lhs,
+ tests/pipe-tables.txt,
+ tests/pipe-tables.native
Extra-Tmp-Files: man/man1/pandoc.1,
man/man5/pandoc_markdown.5
@@ -188,9 +188,6 @@ Flag executable
Flag library
Description: Build the pandoc library.
Default: True
-Flag tests
- Description: Build test-pandoc.
- Default: False
Flag blaze_html_0_5
Description: Use blaze-html 0.5 and blaze-markup 0.5
Default: False
@@ -217,12 +214,13 @@ Library
random >= 1 && < 1.1,
extensible-exceptions >= 0.1 && < 0.2,
citeproc-hs >= 0.3.4 && < 0.4,
- pandoc-types >= 1.9.0.2 && < 1.10,
+ pandoc-types >= 1.10 && < 1.11,
json >= 0.4 && < 0.6,
tagsoup >= 0.12.5 && < 0.13,
base64-bytestring >= 0.1 && < 0.2,
zlib >= 0.5 && < 0.6,
highlighting-kate >= 0.5.1 && < 0.6,
+ data-default >= 0.4 && < 0.6,
temporary >= 1.1 && < 1.2
if flag(blaze_html_0_5)
build-depends:
@@ -256,6 +254,7 @@ Library
-- END DUPLICATED SECTION
Exposed-Modules: Text.Pandoc,
+ Text.Pandoc.Options,
Text.Pandoc.Pretty,
Text.Pandoc.Shared,
Text.Pandoc.Parsing,
@@ -286,6 +285,7 @@ Library
Text.Pandoc.Writers.ODT,
Text.Pandoc.Writers.Docx,
Text.Pandoc.Writers.EPUB,
+ Text.Pandoc.Writers.FB2,
Text.Pandoc.PDF,
Text.Pandoc.Templates,
Text.Pandoc.Biblio,
@@ -325,12 +325,13 @@ Executable pandoc
random >= 1 && < 1.1,
extensible-exceptions >= 0.1 && < 0.2,
citeproc-hs >= 0.3.4 && < 0.4,
- pandoc-types >= 1.9.0.2 && < 1.10,
+ pandoc-types >= 1.10 && < 1.11,
json >= 0.4 && < 0.6,
tagsoup >= 0.12.5 && < 0.13,
base64-bytestring >= 0.1 && < 0.2,
zlib >= 0.5 && < 0.6,
highlighting-kate >= 0.5.1 && < 0.6,
+ data-default >= 0.4 && < 0.6,
temporary >= 1.1 && < 1.2
if flag(blaze_html_0_5)
build-depends:
@@ -369,47 +370,42 @@ Executable pandoc
else
Buildable: False
-Executable test-pandoc
- Main-Is: test-pandoc.hs
- -- Note: the following is duplicated in all stanzas.
- -- It needs to be duplicated because of the library & executable flags.
- -- BEGIN DUPLICATED SECTION
- Build-Depends: containers >= 0.1 && < 0.5,
- parsec >= 3.1 && < 3.2,
- mtl >= 1.1 && < 2.2,
- network >= 2 && < 2.4,
- filepath >= 1.1 && < 1.4,
- process >= 1 && < 1.2,
- directory >= 1 && < 1.2,
- bytestring >= 0.9 && < 1.0,
- zip-archive >= 0.1.1.7 && < 0.2,
- utf8-string >= 0.3 && < 0.4,
- old-locale >= 1 && < 1.1,
- time >= 1.2 && < 1.5,
- HTTP >= 4000.0.5 && < 4000.3,
- texmath >= 0.6.0.2 && < 0.7,
- xml >= 1.3.12 && < 1.4,
- random >= 1 && < 1.1,
- extensible-exceptions >= 0.1 && < 0.2,
- citeproc-hs >= 0.3.4 && < 0.4,
- pandoc-types >= 1.9.0.2 && < 1.10,
- json >= 0.4 && < 0.6,
- tagsoup >= 0.12.5 && < 0.13,
- base64-bytestring >= 0.1 && < 0.2,
- zlib >= 0.5 && < 0.6,
- highlighting-kate >= 0.5.1 && < 0.6,
- temporary >= 1.1 && < 1.2
- if flag(blaze_html_0_5)
- build-depends:
- blaze-html >= 0.5 && < 0.6,
- blaze-markup >= 0.5.1 && < 0.6
- else
- build-depends:
- blaze-html >= 0.4.3.0 && < 0.5
+Test-Suite test-pandoc
+ Type: exitcode-stdio-1.0
+ Main-Is: test-pandoc.hs
+ Hs-Source-Dirs: tests
if impl(ghc >= 6.10)
Build-depends: base >= 4 && < 5, syb >= 0.1 && < 0.4
else
Build-depends: base >= 3 && < 4
+ Build-Depends: pandoc,
+ pandoc-types >= 1.10 && < 1.11,
+ utf8-string >= 0.3 && < 0.4,
+ bytestring >= 0.9 && < 1.0,
+ directory >= 1 && < 1.2,
+ filepath >= 1.1 && < 1.4,
+ process >= 1 && < 1.2,
+ Diff,
+ test-framework >= 0.3 && < 0.7,
+ test-framework-hunit >= 0.2 && < 0.3,
+ test-framework-quickcheck2 >= 0.2.9 && < 0.3,
+ QuickCheck >= 2.4 && < 2.6,
+ HUnit >= 1.2 && < 1.3,
+ template-haskell >= 2.4 && < 2.8,
+ containers >= 0.1 && < 0.5,
+ ansi-terminal == 0.5.*
+ Other-Modules: Tests.Old
+ Tests.Helpers
+ Tests.Arbitrary
+ Tests.Shared
+ Tests.Readers.LaTeX
+ Tests.Readers.Markdown
+ Tests.Readers.RST
+ Tests.Writers.Native
+ Tests.Writers.ConTeXt
+ Tests.Writers.HTML
+ Tests.Writers.Markdown
+ Tests.Writers.LaTeX
if impl(ghc >= 7.0.1)
Ghc-Options: -O2 -rtsopts -Wall -fno-warn-unused-do-bind -dno-debug-output
else
@@ -417,43 +413,29 @@ Executable test-pandoc
Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind -dno-debug-output
else
Ghc-Options: -O2 -Wall
- if impl(ghc >= 7.0.1)
- Ghc-Prof-Options: -auto-all -caf-all -rtsopts
+ if impl(ghc >= 7)
+ cpp-options: -D_LIT=lit
else
- Ghc-Prof-Options: -auto-all -caf-all
+ cpp-options: -D_LIT=$lit
Default-Language: Haskell98
- Default-Extensions: CPP
- Other-Extensions: PatternGuards, OverloadedStrings,
- ScopedTypeVariables, GeneralizedNewtypeDeriving,
- RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
- FlexibleInstances
- Hs-Source-Dirs: src
- -- END DUPLICATED SECTION
- if !flag(tests)
- Buildable: False
+ Default-Extensions: CPP, TemplateHaskell, QuasiQuotes
+
+benchmark benchmark-pandoc
+ Type: exitcode-stdio-1.0
+ Main-Is: benchmark-pandoc.hs
+ Hs-Source-Dirs: benchmark
+ if impl(ghc >= 6.10)
+ Build-depends: base >= 4 && < 5, syb >= 0.1 && < 0.4
else
- Buildable: True
- if impl(ghc >= 7)
- cpp-options: -D_LIT=lit
+ Build-depends: base >= 3 && < 4
+ Build-Depends: pandoc,
+ criterion >= 0.5 && < 0.7,
+ json >= 0.4 && < 0.6
+ if impl(ghc >= 7.0.1)
+ Ghc-Options: -O2 -rtsopts -Wall -fno-warn-unused-do-bind -dno-debug-output
+ else
+ if impl(ghc >= 6.12)
+ Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind -dno-debug-output
else
- cpp-options: -D_LIT=$lit
- Other-Extensions: TemplateHaskell, QuasiQuotes
- Build-Depends: Diff, test-framework >= 0.3 && < 0.7,
- test-framework-hunit >= 0.2 && < 0.3,
- test-framework-quickcheck2 >= 0.2.9 && < 0.3,
- QuickCheck >= 2.4 && < 2.6,
- HUnit >= 1.2 && < 1.3,
- template-haskell >= 2.4 && < 2.8,
- ansi-terminal == 0.5.*
- Other-Modules: Tests.Old
- Tests.Helpers
- Tests.Arbitrary
- Tests.Shared
- Tests.Readers.LaTeX
- Tests.Readers.Markdown
- Tests.Readers.RST
- Tests.Writers.Native
- Tests.Writers.ConTeXt
- Tests.Writers.HTML
- Tests.Writers.Markdown
- Tests.Writers.LaTeX
+ Ghc-Options: -O2 -Wall
+ Default-Language: Haskell98