cabal: add custom-setup stanza, lowercase field names.
This commit is contained in:
parent
19a06b0c83
commit
de93744179
1 changed files with 96 additions and 93 deletions
189
pandoc.cabal
189
pandoc.cabal
|
@ -1,19 +1,19 @@
|
||||||
Name: pandoc
|
name: pandoc
|
||||||
Version: 2.0
|
version: 2.0
|
||||||
Cabal-Version: >= 1.10
|
cabal-version: >= 1.10
|
||||||
Build-Type: Custom
|
build-type: Custom
|
||||||
License: GPL
|
license: GPL
|
||||||
License-File: COPYING.md
|
license-file: COPYING.md
|
||||||
Copyright: (c) 2006-2017 John MacFarlane
|
copyright: (c) 2006-2017 John MacFarlane
|
||||||
Author: John MacFarlane <jgm@berkeley.edu>
|
author: John MacFarlane <jgm@berkeley.edu>
|
||||||
Maintainer: John MacFarlane <jgm@berkeley.edu>
|
maintainer: John MacFarlane <jgm@berkeley.edu>
|
||||||
Bug-Reports: https://github.com/jgm/pandoc/issues
|
bug-reports: https://github.com/jgm/pandoc/issues
|
||||||
Stability: alpha
|
stability: alpha
|
||||||
Homepage: http://pandoc.org
|
homepage: http://pandoc.org
|
||||||
Category: Text
|
category: Text
|
||||||
Tested-With: GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2
|
tested-with: GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2
|
||||||
Synopsis: Conversion between markup formats
|
synopsis: Conversion between markup formats
|
||||||
Description: Pandoc is a Haskell library for converting from one markup
|
description: Pandoc is a Haskell library for converting from one markup
|
||||||
format to another, and a command-line tool that uses
|
format to another, and a command-line tool that uses
|
||||||
this library. It can read several dialects of Markdown and
|
this library. It can read several dialects of Markdown and
|
||||||
(subsets of) HTML, reStructuredText, LaTeX, DocBook,
|
(subsets of) HTML, reStructuredText, LaTeX, DocBook,
|
||||||
|
@ -35,7 +35,7 @@ Description: Pandoc is a Haskell library for converting from one markup
|
||||||
which convert this native representation into a target
|
which convert this native representation into a target
|
||||||
format. Thus, adding an input or output format requires
|
format. Thus, adding an input or output format requires
|
||||||
only adding a reader or writer.
|
only adding a reader or writer.
|
||||||
Data-Files:
|
data-files:
|
||||||
-- templates
|
-- templates
|
||||||
data/templates/default.html4
|
data/templates/default.html4
|
||||||
data/templates/default.html5
|
data/templates/default.html5
|
||||||
|
@ -119,7 +119,7 @@ Data-Files:
|
||||||
data/jats.csl
|
data/jats.csl
|
||||||
-- documentation
|
-- documentation
|
||||||
MANUAL.txt, COPYRIGHT
|
MANUAL.txt, COPYRIGHT
|
||||||
Extra-Source-Files:
|
extra-source-files:
|
||||||
-- documentation
|
-- documentation
|
||||||
INSTALL.md, BUGS, README.md, CONTRIBUTING.md, changelog
|
INSTALL.md, BUGS, README.md, CONTRIBUTING.md, changelog
|
||||||
man/pandoc.1
|
man/pandoc.1
|
||||||
|
@ -261,36 +261,39 @@ Extra-Source-Files:
|
||||||
test/odt/markdown/*.md
|
test/odt/markdown/*.md
|
||||||
test/odt/native/*.native
|
test/odt/native/*.native
|
||||||
test/lua/*.lua
|
test/lua/*.lua
|
||||||
Source-repository head
|
source-repository head
|
||||||
type: git
|
type: git
|
||||||
location: git://github.com/jgm/pandoc.git
|
location: git://github.com/jgm/pandoc.git
|
||||||
|
|
||||||
Flag static
|
flag static
|
||||||
Description: Use static linking for pandoc executable.
|
Description: Use static linking for pandoc executable.
|
||||||
Default: False
|
Default: False
|
||||||
|
|
||||||
Flag embed_data_files
|
flag embed_data_files
|
||||||
Description: Embed data files in binary for relocatable executable.
|
Description: Embed data files in binary for relocatable executable.
|
||||||
Default: False
|
Default: False
|
||||||
|
|
||||||
Flag trypandoc
|
flag trypandoc
|
||||||
Description: Build trypandoc cgi executable.
|
Description: Build trypandoc cgi executable.
|
||||||
Default: False
|
Default: False
|
||||||
|
|
||||||
Flag weigh-pandoc
|
flag weigh-pandoc
|
||||||
Description: Build weigh-pandoc to measure memory usage.
|
Description: Build weigh-pandoc to measure memory usage.
|
||||||
Default: False
|
Default: False
|
||||||
|
|
||||||
Flag network-uri
|
flag network-uri
|
||||||
Description: Get Network.URI from the network-uri package
|
Description: Get Network.URI from the network-uri package
|
||||||
Default: True
|
Default: True
|
||||||
|
|
||||||
Flag old-locale
|
flag old-locale
|
||||||
Description: Use old-locale and time < 1.5
|
Description: Use old-locale and time < 1.5
|
||||||
Default: False
|
Default: False
|
||||||
|
|
||||||
Library
|
custom-setup
|
||||||
Build-Depends: base >= 4.7 && < 5,
|
setup-depends: base, Cabal
|
||||||
|
|
||||||
|
library
|
||||||
|
build-depends: base >= 4.7 && < 5,
|
||||||
syb >= 0.1 && < 0.8,
|
syb >= 0.1 && < 0.8,
|
||||||
containers >= 0.4.2.1 && < 0.6,
|
containers >= 0.4.2.1 && < 0.6,
|
||||||
unordered-containers >= 0.2 && < 0.3,
|
unordered-containers >= 0.2 && < 0.3,
|
||||||
|
@ -336,37 +339,37 @@ Library
|
||||||
http-types >= 0.8 && < 0.10,
|
http-types >= 0.8 && < 0.10,
|
||||||
csv-conduit >= 0.6 && < 0.7
|
csv-conduit >= 0.6 && < 0.7
|
||||||
if os(windows)
|
if os(windows)
|
||||||
Cpp-options: -D_WINDOWS
|
cpp-options: -D_WINDOWS
|
||||||
else
|
else
|
||||||
Build-Depends: unix >= 2.4 && < 2.8
|
build-depends: unix >= 2.4 && < 2.8
|
||||||
if flag(old-locale)
|
if flag(old-locale)
|
||||||
Build-Depends: old-locale >= 1 && < 1.1,
|
build-depends: old-locale >= 1 && < 1.1,
|
||||||
time >= 1.2 && < 1.5
|
time >= 1.2 && < 1.5
|
||||||
else
|
else
|
||||||
Build-Depends: time >= 1.5 && < 1.9
|
build-depends: time >= 1.5 && < 1.9
|
||||||
if flag(network-uri)
|
if flag(network-uri)
|
||||||
Build-Depends: network-uri >= 2.6 && < 2.7, network >= 2.6
|
build-depends: network-uri >= 2.6 && < 2.7, network >= 2.6
|
||||||
else
|
else
|
||||||
Build-Depends: network >= 2 && < 2.6
|
build-depends: network >= 2 && < 2.6
|
||||||
if flag(embed_data_files)
|
if flag(embed_data_files)
|
||||||
cpp-options: -DEMBED_DATA_FILES
|
cpp-options: -DEMBED_DATA_FILES
|
||||||
build-depends: file-embed >= 0.0 && < 0.1
|
build-depends: file-embed >= 0.0 && < 0.1
|
||||||
other-modules: Text.Pandoc.Data
|
other-modules: Text.Pandoc.Data
|
||||||
if os(windows)
|
if os(windows)
|
||||||
Cpp-options: -D_WINDOWS
|
cpp-options: -D_WINDOWS
|
||||||
Ghc-Options: -Wall -fno-warn-unused-do-bind
|
ghc-options: -Wall -fno-warn-unused-do-bind
|
||||||
Ghc-Prof-Options: -fprof-auto-exported
|
ghc-prof-options: -fprof-auto-exported
|
||||||
Default-Language: Haskell98
|
default-language: Haskell98
|
||||||
Other-Extensions: PatternGuards, OverloadedStrings,
|
other-extensions: PatternGuards, OverloadedStrings,
|
||||||
ScopedTypeVariables, GeneralizedNewtypeDeriving,
|
ScopedTypeVariables, GeneralizedNewtypeDeriving,
|
||||||
RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
|
RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
|
||||||
FlexibleInstances
|
FlexibleInstances
|
||||||
Hs-Source-Dirs: src
|
hs-source-dirs: src
|
||||||
if impl(ghc < 7.10)
|
if impl(ghc < 7.10)
|
||||||
Hs-Source-Dirs: prelude
|
hs-source-dirs: prelude
|
||||||
Other-Modules: Prelude
|
other-modules: Prelude
|
||||||
|
|
||||||
Exposed-Modules: Text.Pandoc,
|
exposed-modules: Text.Pandoc,
|
||||||
Text.Pandoc.App,
|
Text.Pandoc.App,
|
||||||
Text.Pandoc.Options,
|
Text.Pandoc.Options,
|
||||||
Text.Pandoc.Extensions,
|
Text.Pandoc.Extensions,
|
||||||
|
@ -444,7 +447,7 @@ Library
|
||||||
Text.Pandoc.Emoji,
|
Text.Pandoc.Emoji,
|
||||||
Text.Pandoc.ImageSize,
|
Text.Pandoc.ImageSize,
|
||||||
Text.Pandoc.Class
|
Text.Pandoc.Class
|
||||||
Other-Modules: Text.Pandoc.Readers.Docx.Lists,
|
other-modules: Text.Pandoc.Readers.Docx.Lists,
|
||||||
Text.Pandoc.Readers.Docx.Combine,
|
Text.Pandoc.Readers.Docx.Combine,
|
||||||
Text.Pandoc.Readers.Docx.Parse,
|
Text.Pandoc.Readers.Docx.Parse,
|
||||||
Text.Pandoc.Readers.Docx.Util,
|
Text.Pandoc.Readers.Docx.Util,
|
||||||
|
@ -481,67 +484,67 @@ Library
|
||||||
Text.Pandoc.Compat.Time,
|
Text.Pandoc.Compat.Time,
|
||||||
Paths_pandoc
|
Paths_pandoc
|
||||||
|
|
||||||
Buildable: True
|
buildable: True
|
||||||
|
|
||||||
Executable pandoc
|
executable pandoc
|
||||||
Build-Depends: pandoc, base >= 4.7 && < 5
|
build-depends: pandoc, base >= 4.7 && < 5
|
||||||
Ghc-Options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
|
ghc-options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
|
||||||
Ghc-Prof-Options: -fprof-auto-exported -rtsopts -with-rtsopts=-K16m
|
ghc-prof-options: -fprof-auto-exported -rtsopts -with-rtsopts=-K16m
|
||||||
if flag(static)
|
if flag(static)
|
||||||
Ld-options: -static
|
ld-options: -static
|
||||||
Default-Language: Haskell98
|
default-language: Haskell98
|
||||||
Other-Extensions: PatternGuards, OverloadedStrings,
|
other-extensions: PatternGuards, OverloadedStrings,
|
||||||
ScopedTypeVariables, GeneralizedNewtypeDeriving,
|
ScopedTypeVariables, GeneralizedNewtypeDeriving,
|
||||||
RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
|
RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
|
||||||
FlexibleInstances
|
FlexibleInstances
|
||||||
Hs-Source-Dirs: .
|
hs-source-dirs: .
|
||||||
if impl(ghc < 7.10)
|
if impl(ghc < 7.10)
|
||||||
Hs-Source-Dirs: prelude
|
hs-source-dirs: prelude
|
||||||
Other-Modules: Prelude
|
other-modules: Prelude
|
||||||
Main-Is: pandoc.hs
|
main-is: pandoc.hs
|
||||||
Buildable: True
|
buildable: True
|
||||||
Other-Modules: Paths_pandoc
|
other-modules: Paths_pandoc
|
||||||
|
|
||||||
Executable trypandoc
|
executable trypandoc
|
||||||
Main-Is: trypandoc.hs
|
main-is: trypandoc.hs
|
||||||
Hs-Source-Dirs: trypandoc
|
hs-source-dirs: trypandoc
|
||||||
if impl(ghc < 7.10)
|
if impl(ghc < 7.10)
|
||||||
Hs-Source-Dirs: prelude
|
hs-source-dirs: prelude
|
||||||
Other-Modules: Prelude
|
other-modules: Prelude
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
if flag(trypandoc)
|
if flag(trypandoc)
|
||||||
Build-Depends: base, aeson, pandoc,
|
build-depends: base, aeson, pandoc,
|
||||||
text, wai-extra, wai >= 0.3, http-types
|
text, wai-extra, wai >= 0.3, http-types
|
||||||
Buildable: True
|
buildable: True
|
||||||
else
|
else
|
||||||
Buildable: False
|
buildable: False
|
||||||
|
|
||||||
Executable weigh-pandoc
|
executable weigh-pandoc
|
||||||
Main-Is: weigh-pandoc.hs
|
main-is: weigh-pandoc.hs
|
||||||
Hs-Source-Dirs: benchmark
|
hs-source-dirs: benchmark
|
||||||
if impl(ghc < 7.10)
|
if impl(ghc < 7.10)
|
||||||
Hs-Source-Dirs: prelude
|
hs-source-dirs: prelude
|
||||||
Other-Modules: Prelude
|
other-modules: Prelude
|
||||||
if flag(weigh-pandoc)
|
if flag(weigh-pandoc)
|
||||||
Build-Depends: pandoc,
|
build-depends: pandoc,
|
||||||
base >= 4.2 && < 5,
|
base >= 4.2 && < 5,
|
||||||
text,
|
text,
|
||||||
weigh >= 0.0 && < 0.1,
|
weigh >= 0.0 && < 0.1,
|
||||||
mtl >= 2.2 && < 2.3
|
mtl >= 2.2 && < 2.3
|
||||||
Buildable: True
|
buildable: True
|
||||||
else
|
else
|
||||||
Buildable: False
|
buildable: False
|
||||||
Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
|
ghc-options: -rtsopts -Wall -fno-warn-unused-do-bind
|
||||||
Default-Language: Haskell98
|
default-language: Haskell98
|
||||||
|
|
||||||
Test-Suite test-pandoc
|
test-suite test-pandoc
|
||||||
Type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
Main-Is: test-pandoc.hs
|
main-is: test-pandoc.hs
|
||||||
Hs-Source-Dirs: test
|
hs-source-dirs: test
|
||||||
if impl(ghc < 7.10)
|
if impl(ghc < 7.10)
|
||||||
Hs-Source-Dirs: prelude
|
hs-source-dirs: prelude
|
||||||
Other-Modules: Prelude
|
other-modules: Prelude
|
||||||
Build-Depends: base >= 4.2 && < 5,
|
build-depends: base >= 4.2 && < 5,
|
||||||
syb >= 0.1 && < 0.8,
|
syb >= 0.1 && < 0.8,
|
||||||
pandoc,
|
pandoc,
|
||||||
pandoc-types >= 1.17.1 && < 1.18,
|
pandoc-types >= 1.17.1 && < 1.18,
|
||||||
|
@ -563,7 +566,7 @@ Test-Suite test-pandoc
|
||||||
executable-path >= 0.0 && < 0.1,
|
executable-path >= 0.0 && < 0.1,
|
||||||
zip-archive >= 0.2.3.4 && < 0.4,
|
zip-archive >= 0.2.3.4 && < 0.4,
|
||||||
mtl >= 2.2 && < 2.3
|
mtl >= 2.2 && < 2.3
|
||||||
Other-Modules: Tests.Old
|
other-modules: Tests.Old
|
||||||
Tests.Command
|
Tests.Command
|
||||||
Tests.Helpers
|
Tests.Helpers
|
||||||
Tests.Lua
|
Tests.Lua
|
||||||
|
@ -591,21 +594,21 @@ Test-Suite test-pandoc
|
||||||
Tests.Writers.RST
|
Tests.Writers.RST
|
||||||
Tests.Writers.TEI
|
Tests.Writers.TEI
|
||||||
Tests.Writers.Muse
|
Tests.Writers.Muse
|
||||||
Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind -threaded
|
ghc-options: -rtsopts -Wall -fno-warn-unused-do-bind -threaded
|
||||||
Default-Language: Haskell98
|
default-language: Haskell98
|
||||||
|
|
||||||
benchmark benchmark-pandoc
|
benchmark benchmark-pandoc
|
||||||
Type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
Main-Is: benchmark-pandoc.hs
|
main-is: benchmark-pandoc.hs
|
||||||
Hs-Source-Dirs: benchmark
|
hs-source-dirs: benchmark
|
||||||
if impl(ghc < 7.10)
|
if impl(ghc < 7.10)
|
||||||
Hs-Source-Dirs: prelude
|
hs-source-dirs: prelude
|
||||||
Other-Modules: Prelude
|
other-modules: Prelude
|
||||||
Build-Depends: pandoc,
|
build-depends: pandoc,
|
||||||
time, bytestring, containers,
|
time, bytestring, containers,
|
||||||
base >= 4.2 && < 5,
|
base >= 4.2 && < 5,
|
||||||
text >= 0.11 && < 1.3,
|
text >= 0.11 && < 1.3,
|
||||||
syb >= 0.1 && < 0.8,
|
syb >= 0.1 && < 0.8,
|
||||||
criterion >= 1.0 && < 1.3
|
criterion >= 1.0 && < 1.3
|
||||||
Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
|
ghc-options: -rtsopts -Wall -fno-warn-unused-do-bind
|
||||||
Default-Language: Haskell98
|
default-language: Haskell98
|
||||||
|
|
Loading…
Reference in a new issue