@@ -1,19 +1,19 @@
1−Name: pandoc
2−Version: 2.0
3−Cabal-Version: >= 1.10
4−Build-Type: Custom
5−License: GPL
6−License-File: COPYING.md
7−Copyright: (c) 2006-2017 John MacFarlane
8−Author: John MacFarlane <jgm@berkeley.edu>
9−Maintainer: John MacFarlane <jgm@berkeley.edu>
10−Bug-Reports: https://github.com/jgm/pandoc/issues
11−Stability: alpha
12−Homepage: http://pandoc.org
13−Category: Text
14−Tested-With: GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2
15−Synopsis: Conversion between markup formats
16−Description: Pandoc is a Haskell library for converting from one markup
1+name: pandoc
2+version: 2.0
3+cabal-version: >= 1.10
4+build-type: Custom
5+license: GPL
6+license-file: COPYING.md
7+copyright: (c) 2006-2017 John MacFarlane
8+author: John MacFarlane <jgm@berkeley.edu>
9+maintainer: John MacFarlane <jgm@berkeley.edu>
10+bug-reports: https://github.com/jgm/pandoc/issues
11+stability: alpha
12+homepage: http://pandoc.org
13+category: Text
14+tested-with: GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2
15+synopsis: Conversion between markup formats
16+description: Pandoc is a Haskell library for converting from one markup
1717 format to another, and a command-line tool that uses
1818 this library. It can read several dialects of Markdown and
1919 (subsets of) HTML, reStructuredText, LaTeX, DocBook,
@@ -35,7 +35,7 @@ Description: Pandoc is a Haskell library for converting from one markup
3535 which convert this native representation into a target
3636 format. Thus, adding an input or output format requires
3737 only adding a reader or writer.
38−Data-Files:
38+data-files:
3939 -- templates
4040 data/templates/default.html4
4141 data/templates/default.html5
@@ -119,7 +119,7 @@ Data-Files:
119119 data/jats.csl
120120 -- documentation
121121 MANUAL.txt, COPYRIGHT
122−Extra-Source-Files:
122+extra-source-files:
123123 -- documentation
124124 INSTALL.md, BUGS, README.md, CONTRIBUTING.md, changelog
125125 man/pandoc.1
@@ -138,6 +138,7 @@ Extra-Source-Files:
138138 test/*.native
139139 test/command/*.md
140140 test/command/3533-rst-csv-tables.csv
141+ test/command/3880.txt
141142 test/command/abbrevs
142143 test/command/SVG_logo-without-xml-declaration.svg
143144 test/command/SVG_logo.svg
@@ -260,32 +261,39 @@ Extra-Source-Files:
260261 test/odt/markdown/*.md
261262 test/odt/native/*.native
262263 test/lua/*.lua
263−Source-repository head
264+source-repository head
264265 type: git
265266 location: git://github.com/jgm/pandoc.git
266267
267−Flag embed_data_files
268+flag static
269+ Description: Use static linking for pandoc executable.
270+ Default: False
271+
272+flag embed_data_files
268273 Description: Embed data files in binary for relocatable executable.
269274 Default: False
270275
271−Flag trypandoc
276+flag trypandoc
272277 Description: Build trypandoc cgi executable.
273278 Default: False
274279
275−Flag weigh-pandoc
280+flag weigh-pandoc
276281 Description: Build weigh-pandoc to measure memory usage.
277282 Default: False
278283
279−Flag network-uri
284+flag network-uri
280285 Description: Get Network.URI from the network-uri package
281286 Default: True
282287
283−Flag old-locale
288+flag old-locale
284289 Description: Use old-locale and time < 1.5
285290 Default: False
286291
287−Library
288− Build-Depends: base >= 4.7 && < 5,
292+custom-setup
293+ setup-depends: base, Cabal
294+
295+library
296+ build-depends: base >= 4.7 && < 5,
289297 syb >= 0.1 && < 0.8,
290298 containers >= 0.4.2.1 && < 0.6,
291299 unordered-containers >= 0.2 && < 0.3,
@@ -331,37 +339,37 @@ Library
331339 http-types >= 0.8 && < 0.10,
332340 csv-conduit >= 0.6 && < 0.7
333341 if os(windows)
334− Cpp-options: -D_WINDOWS
342+ cpp-options: -D_WINDOWS
335343 else
336− Build-Depends: unix >= 2.4 && < 2.8
344+ build-depends: unix >= 2.4 && < 2.8
337345 if flag(old-locale)
338− Build-Depends: old-locale >= 1 && < 1.1,
346+ build-depends: old-locale >= 1 && < 1.1,
339347 time >= 1.2 && < 1.5
340348 else
341− Build-Depends: time >= 1.5 && < 1.9
349+ build-depends: time >= 1.5 && < 1.9
342350 if flag(network-uri)
343− Build-Depends: network-uri >= 2.6 && < 2.7, network >= 2.6
351+ build-depends: network-uri >= 2.6 && < 2.7, network >= 2.6
344352 else
345− Build-Depends: network >= 2 && < 2.6
353+ build-depends: network >= 2 && < 2.6
346354 if flag(embed_data_files)
347355 cpp-options: -DEMBED_DATA_FILES
348356 build-depends: file-embed >= 0.0 && < 0.1
349357 other-modules: Text.Pandoc.Data
350358 if os(windows)
351− Cpp-options: -D_WINDOWS
352− Ghc-Options: -Wall -fno-warn-unused-do-bind
353− Ghc-Prof-Options: -fprof-auto-exported
354− Default-Language: Haskell98
355− Other-Extensions: PatternGuards, OverloadedStrings,
359+ cpp-options: -D_WINDOWS
360+ ghc-options: -Wall -fno-warn-unused-do-bind
361+ ghc-prof-options: -fprof-auto-exported
362+ default-language: Haskell98
363+ other-extensions: PatternGuards, OverloadedStrings,
356364 ScopedTypeVariables, GeneralizedNewtypeDeriving,
357365 RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
358366 FlexibleInstances
359− Hs-Source-Dirs: src
367+ hs-source-dirs: src
360368 if impl(ghc < 7.10)
361− Hs-Source-Dirs: prelude
362− Other-Modules: Prelude
369+ hs-source-dirs: prelude
370+ other-modules: Prelude
363371
364− Exposed-Modules: Text.Pandoc,
372+ exposed-modules: Text.Pandoc,
365373 Text.Pandoc.App,
366374 Text.Pandoc.Options,
367375 Text.Pandoc.Extensions,
@@ -439,7 +447,7 @@ Library
439447 Text.Pandoc.Emoji,
440448 Text.Pandoc.ImageSize,
441449 Text.Pandoc.Class
442− Other-Modules: Text.Pandoc.Readers.Docx.Lists,
450+ other-modules: Text.Pandoc.Readers.Docx.Lists,
443451 Text.Pandoc.Readers.Docx.Combine,
444452 Text.Pandoc.Readers.Docx.Parse,
445453 Text.Pandoc.Readers.Docx.Util,
@@ -476,66 +484,67 @@ Library
476484 Text.Pandoc.Compat.Time,
477485 Paths_pandoc
478486
479− Buildable: True
480−
481−Executable pandoc
482− Build-Depends: pandoc, base >= 4.7 && < 5
483− Ghc-Options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
484− Ghc-Prof-Options: -fprof-auto-exported -rtsopts -with-rtsopts=-K16m
487+ buildable: True
485488
486− Default-Language: Haskell98
487− Other-Extensions: PatternGuards, OverloadedStrings,
489+executable pandoc
490+ build-depends: pandoc, base >= 4.7 && < 5
491+ ghc-options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
492+ ghc-prof-options: -fprof-auto-exported -rtsopts -with-rtsopts=-K16m
493+ if flag(static)
494+ ld-options: -static
495+ default-language: Haskell98
496+ other-extensions: PatternGuards, OverloadedStrings,
488497 ScopedTypeVariables, GeneralizedNewtypeDeriving,
489498 RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
490499 FlexibleInstances
491− Hs-Source-Dirs: .
500+ hs-source-dirs: .
492501 if impl(ghc < 7.10)
493− Hs-Source-Dirs: prelude
494− Other-Modules: Prelude
495− Main-Is: pandoc.hs
496− Buildable: True
497− Other-Modules: Paths_pandoc
502+ hs-source-dirs: prelude
503+ other-modules: Prelude
504+ main-is: pandoc.hs
505+ buildable: True
506+ other-modules: Paths_pandoc
498507
499−Executable trypandoc
500− Main-Is: trypandoc.hs
501− Hs-Source-Dirs: trypandoc
508+executable trypandoc
509+ main-is: trypandoc.hs
510+ hs-source-dirs: trypandoc
502511 if impl(ghc < 7.10)
503− Hs-Source-Dirs: prelude
504− Other-Modules: Prelude
512+ hs-source-dirs: prelude
513+ other-modules: Prelude
505514 default-language: Haskell2010
506515 if flag(trypandoc)
507− Build-Depends: base, aeson, pandoc,
516+ build-depends: base, aeson, pandoc,
508517 text, wai-extra, wai >= 0.3, http-types
509− Buildable: True
518+ buildable: True
510519 else
511− Buildable: False
520+ buildable: False
512521
513−Executable weigh-pandoc
514− Main-Is: weigh-pandoc.hs
515− Hs-Source-Dirs: benchmark
522+executable weigh-pandoc
523+ main-is: weigh-pandoc.hs
524+ hs-source-dirs: benchmark
516525 if impl(ghc < 7.10)
517− Hs-Source-Dirs: prelude
518− Other-Modules: Prelude
526+ hs-source-dirs: prelude
527+ other-modules: Prelude
519528 if flag(weigh-pandoc)
520− Build-Depends: pandoc,
529+ build-depends: pandoc,
521530 base >= 4.2 && < 5,
522531 text,
523532 weigh >= 0.0 && < 0.1,
524533 mtl >= 2.2 && < 2.3
525− Buildable: True
534+ buildable: True
526535 else
527− Buildable: False
528− Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
529− Default-Language: Haskell98
536+ buildable: False
537+ ghc-options: -rtsopts -Wall -fno-warn-unused-do-bind
538+ default-language: Haskell98
530539
531−Test-Suite test-pandoc
532− Type: exitcode-stdio-1.0
533− Main-Is: test-pandoc.hs
534− Hs-Source-Dirs: test
540+test-suite test-pandoc
541+ type: exitcode-stdio-1.0
542+ main-is: test-pandoc.hs
543+ hs-source-dirs: test
535544 if impl(ghc < 7.10)
536− Hs-Source-Dirs: prelude
537− Other-Modules: Prelude
538− Build-Depends: base >= 4.2 && < 5,
545+ hs-source-dirs: prelude
546+ other-modules: Prelude
547+ build-depends: base >= 4.2 && < 5,
539548 syb >= 0.1 && < 0.8,
540549 pandoc,
541550 pandoc-types >= 1.17.1 && < 1.18,
@@ -557,7 +566,7 @@ Test-Suite test-pandoc
557566 executable-path >= 0.0 && < 0.1,
558567 zip-archive >= 0.2.3.4 && < 0.4,
559568 mtl >= 2.2 && < 2.3
560− Other-Modules: Tests.Old
569+ other-modules: Tests.Old
561570 Tests.Command
562571 Tests.Helpers
563572 Tests.Lua
@@ -585,21 +594,21 @@ Test-Suite test-pandoc
585594 Tests.Writers.RST
586595 Tests.Writers.TEI
587596 Tests.Writers.Muse
588− Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind -threaded
589− Default-Language: Haskell98
597+ ghc-options: -rtsopts -Wall -fno-warn-unused-do-bind -threaded
598+ default-language: Haskell98
590599
591600benchmark benchmark-pandoc
592− Type: exitcode-stdio-1.0
593− Main-Is: benchmark-pandoc.hs
594− Hs-Source-Dirs: benchmark
601+ type: exitcode-stdio-1.0
602+ main-is: benchmark-pandoc.hs
603+ hs-source-dirs: benchmark
595604 if impl(ghc < 7.10)
596− Hs-Source-Dirs: prelude
597− Other-Modules: Prelude
598− Build-Depends: pandoc,
605+ hs-source-dirs: prelude
606+ other-modules: Prelude
607+ build-depends: pandoc,
599608 time, bytestring, containers,
600609 base >= 4.2 && < 5,
601610 text >= 0.11 && < 1.3,
602611 syb >= 0.1 && < 0.8,
603612 criterion >= 1.0 && < 1.3
604− Ghc-Options: -rtsopts -Wall -fno-warn-unused-do-bind
605− Default-Language: Haskell98
613+ ghc-options: -rtsopts -Wall -fno-warn-unused-do-bind
614+ default-language: Haskell98