aboutsummaryrefslogtreecommitdiff
path: root/pandoc.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'pandoc.cabal')
-rw-r--r--pandoc.cabal36
1 files changed, 33 insertions, 3 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 3486ad48c..3031bc0e0 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -1,5 +1,5 @@
Name: pandoc
-Version: 1.13
+Version: 1.13.0.1
Cabal-Version: >= 1.10
Build-Type: Custom
License: GPL
@@ -93,6 +93,9 @@ Extra-Source-Files:
-- generated man pages (produced post-build)
man/man1/pandoc.1
man/man5/pandoc_markdown.5
+ -- trypandoc
+ trypandoc/Makefile
+ trypandoc/index.html
-- tests
tests/bodybg.gif
tests/*.native
@@ -116,6 +119,8 @@ Extra-Source-Files:
tests/s5-inserts.html
tests/tables.context
tests/tables.docbook
+ tests/tables.dokuwiki
+ tests/tables.icml
tests/tables.html
tests/tables.latex
tests/tables.man
@@ -184,6 +189,10 @@ Flag embed_data_files
Description: Embed data files in binary for relocatable executable.
Default: False
+Flag trypandoc
+ Description: Build trypandoc cgi executable.
+ Default: False
+
Flag https
Description: Enable support for downloading of resources over https.
Default: True
@@ -192,6 +201,10 @@ Flag make-pandoc-man-pages
Description: Build program to regenerate pandoc man pages from README.
Default: False
+Flag network-uri
+ Description: Get Network.URI from the network-uri package
+ Default: True
+
Library
Build-Depends: base >= 4.2 && <5,
syb >= 0.1 && < 0.5,
@@ -200,7 +213,6 @@ Library
array >= 0.3 && < 0.6,
parsec >= 3.1 && < 3.2,
mtl >= 1.1 && < 2.3,
- network >= 2 && < 2.6,
filepath >= 1.1 && < 1.4,
process >= 1 && < 1.3,
directory >= 1 && < 1.3,
@@ -234,6 +246,10 @@ Library
old-time,
deepseq-generics >= 0.1 && < 0.2,
JuicyPixels >= 3.1.6.1 && < 3.2
+ if flag(network-uri)
+ Build-Depends: network-uri >= 2.6 && < 2.7, network >= 2.6
+ else
+ Build-Depends: network >= 2 && < 2.6
if flag(https)
Build-Depends: http-client >= 0.3.2 && < 0.4,
http-client-tls >= 0.2 && < 0.3,
@@ -330,7 +346,6 @@ Executable pandoc
base >= 4.2 && <5,
directory >= 1 && < 1.3,
filepath >= 1.1 && < 1.4,
- network >= 2 && < 2.6,
text >= 0.11 && < 1.2,
bytestring >= 0.9 && < 0.11,
extensible-exceptions >= 0.1 && < 0.2,
@@ -339,6 +354,10 @@ Executable pandoc
yaml >= 0.8.8.2 && < 0.9,
containers >= 0.1 && < 0.6,
HTTP >= 4000.0.5 && < 4000.3
+ if flag(network-uri)
+ Build-Depends: network-uri >= 2.6 && < 2.7
+ else
+ Build-Depends: network >= 2 && < 2.6
Ghc-Options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
Ghc-Prof-Options: -auto-all -caf-all -rtsopts -with-rtsopts=-K16m
if os(windows)
@@ -352,6 +371,17 @@ Executable pandoc
Main-Is: pandoc.hs
Buildable: True
+Executable trypandoc
+ Main-Is: trypandoc.hs
+ Hs-Source-Dirs: trypandoc
+ default-language: Haskell2010
+ if flag(trypandoc)
+ Build-Depends: base, aeson, pandoc, highlighting-kate,
+ text, wai-extra, wai >= 0.3, http-types
+ Buildable: True
+ else
+ Buildable: False
+
-- NOTE: A trick in Setup.hs makes sure this won't be installed:
Executable make-pandoc-man-pages
Main-Is: make-pandoc-man-pages.hs