-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
/
Copy pathpandoc-cli.cabal
96 lines (86 loc) · 2.94 KB
/
pandoc-cli.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
cabal-version: 2.4
name: pandoc-cli
version: 3.6.4
build-type: Simple
license: GPL-2.0-or-later
license-file: COPYING.md
copyright: (c) 2006-2024 John MacFarlane
author: John MacFarlane <[email protected]>
maintainer: John MacFarlane <[email protected]>
bug-reports: https://github.com/jgm/pandoc/issues
stability: alpha
homepage: https://pandoc.org
category: Text
synopsis: Conversion between documentation formats
description: Pandoc-cli provides a command-line executable that uses the
pandoc library to convert between markup formats.
-- data-files:
extra-source-files:
man/pandoc.1
man/pandoc-lua.1
man/pandoc-server.1
source-repository head
type: git
location: https://github.com/jgm/pandoc.git
flag lua
description: Support custom modifications and conversions with the
pandoc Lua scripting engine.
default: True
flag server
Description: Include support for running pandoc as an HTTP server.
Default: True
flag nightly
Description: Add '-nightly-COMPILEDATE' to the output of '--version'.
Default: False
common common-options
default-language: Haskell2010
other-extensions: OverloadedStrings
build-depends: base >= 4.12 && < 5
ghc-options: -Wall -fno-warn-unused-do-bind
-Wincomplete-record-updates
-Wnoncanonical-monad-instances
-Wcpp-undef
-Wincomplete-uni-patterns
-Widentities
-Wpartial-fields
-Wmissing-signatures
-fhide-source-paths
if impl(ghc >= 8.10)
ghc-options: -Wunused-packages
if impl(ghc >= 9.0)
ghc-options: -Winvalid-haddock
if os(windows)
cpp-options: -D_WINDOWS
common common-executable
import: common-options
ghc-options: -rtsopts -with-rtsopts=-A8m -threaded
executable pandoc
import: common-executable
hs-source-dirs: src
main-is: pandoc.hs
buildable: True
-- Note: we always link to an exact version of pandoc, with the
-- same version as this package:
build-depends: pandoc == 3.6.4,
text
other-modules: PandocCLI.Lua
, PandocCLI.Server
if flag(nightly)
cpp-options: -DNIGHTLY
build-depends: template-haskell,
time
if flag(server)
build-depends: pandoc-server >= 0.1.0.9 && < 0.2,
wai-extra >= 3.0.24,
warp,
safe
hs-source-dirs: server
else
hs-source-dirs: no-server
if flag(lua)
build-depends: hslua-cli >= 1.4.1 && < 1.5,
pandoc-lua-engine >= 0.4 && < 0.5,
temporary >= 1.1 && < 1.4
hs-source-dirs: lua
else
hs-source-dirs: no-lua