This repository has been archived by the owner on Apr 30, 2021. It is now read-only.
/
pandoc-citeproc.cabal
255 lines (236 loc) · 8.57 KB
/
pandoc-citeproc.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
cabal-version: 1.12
name: pandoc-citeproc
version: 0.17.1
synopsis: Supports using pandoc with citeproc
description: The pandoc-citeproc library supports automatic
generation of citations and a bibliography in pandoc
documents using the Citation Style Language (CSL)
macro language. More details on CSL can be found at
<http://citationstyles.org/>.
.
In addition to a library, the package includes
an executable, pandoc-citeproc, which works as a pandoc
filter and also has a mode for converting bibliographic
databases into CSL JSON and pandoc YAML metadata formats.
.
pandoc-citeproc originated as a fork of Andrea
Rossato's citeproc-hs.
homepage: https://github.com/jgm/pandoc-citeproc
category: Text
tested-with: GHC == 8.0.1, GHC == 8.2.2, GHC == 8.4.3, GHC == 8.6.3
license: BSD3
license-file: LICENSE
author: John MacFarlane, Andrea Rossato
maintainer: jgm@berkeley.edu
build-type: Custom
data-files: chicago-author-date.csl
locales/*.xml
-- documentation
README.md
LICENSE
man/man1/pandoc-citeproc.1
changelog
extra-source-files: stack.yaml
-- tests
tests/*.in.native
tests/*.expected.native
tests/*.csl
tests/biblio.bib
tests/biblatex-examples.bib
tests/biblio2yaml/*.bibtex
tests/biblio2yaml/*.biblatex
tests/biblio2yaml/pandoc-2/*.biblatex
source-repository head
type: git
location: git://github.com/jgm/pandoc-citeproc.git
custom-setup
setup-depends: base, Cabal
flag bibutils
description: Use Chris Putnam's Bibutils.
default: True
flag embed_data_files
description: Embed locale files into the library (needed for windows packaging)
default: False
flag unicode_collation
description: Use Haskell bindings to the International Components for Unicode (ICU) libraries
default: False
flag test_citeproc
description: Build the test-citeproc program
default: False
flag debug
description: Turn on debug tracing.
default: False
flag static
description: Use static linking.
default: False
library
hs-source-dirs: src, compat
exposed-modules: Text.CSL.Pandoc
Text.CSL
Text.CSL.Reference
Text.CSL.Exception
Text.CSL.Style
Text.CSL.Eval
Text.CSL.Eval.Common
Text.CSL.Eval.Date
Text.CSL.Eval.Names
Text.CSL.Eval.Output
Text.CSL.Parser
Text.CSL.Proc
Text.CSL.Proc.Collapse
Text.CSL.Proc.Disamb
Text.CSL.Input.Bibutils
Text.CSL.Input.Bibtex
Text.CSL.Output.Pandoc
Text.CSL.Output.Plain
Text.CSL.Data
other-modules: Text.CSL.Util
Paths_pandoc_citeproc
Text.CSL.Compat.Pandoc
ghc-options: -funbox-strict-fields -Wall -fno-warn-unused-do-bind
ghc-prof-options: -fprof-auto-exported
build-depends: base >= 4 && < 5,
syb,
parsec,
old-locale,
time,
containers,
directory,
mtl,
bytestring, filepath,
network < 3.2,
pandoc-types >= 1.20 && < 1.23,
pandoc >= 2.8 && < 2.11,
tagsoup,
aeson >= 0.7 && < 1.6,
text,
vector,
transformers,
xml-conduit >= 1.2 && < 1.10,
unordered-containers >= 0.2 && < 0.3,
data-default,
setenv >= 0.1 && < 0.2,
split,
yaml >= 0.11,
HsYAML >= 0.2 && < 0.3,
HsYAML-aeson >= 0.2 && < 0.3
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*
if impl(ghc < 8.4)
hs-source-dirs: prelude
other-modules: Prelude
build-depends: base-compat >= 0.9
default-language: Haskell2010
default-extensions: CPP, NoImplicitPrelude
if flag(debug)
build-depends: pretty-show
cpp-options: -DTRACE
if flag(bibutils)
build-depends: hs-bibutils >= 6.4
cpp-options: -DUSE_BIBUTILS
if flag(embed_data_files)
build-depends: file-embed >= 0.0 && < 0.1
cpp-options: -DEMBED_DATA_FILES
other-modules: Text.CSL.Data.Embedded
if flag(unicode_collation)
build-depends: text, text-icu
cpp-options: -DUNICODE_COLLATION
else
build-depends: rfc5051 >= 0.2 && < 0.3
executable pandoc-citeproc
main-is: pandoc-citeproc.hs
hs-source-dirs: .
ghc-options: -funbox-strict-fields -Wall
ghc-prof-options: -fprof-auto-exported -rtsopts
build-depends: base >= 4 && < 5,
pandoc-citeproc,
pandoc-types >= 1.20 && < 1.23,
pandoc >= 2.8 && < 2.11,
aeson,
aeson-pretty >= 0.8,
yaml >= 0.11,
libyaml,
bytestring,
syb,
attoparsec,
text,
filepath,
safe
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*
if impl(ghc < 8.4)
hs-source-dirs: prelude
other-modules: Prelude
build-depends: base-compat >= 0.9
other-modules: Paths_pandoc_citeproc
default-language: Haskell2010
default-extensions: CPP, NoImplicitPrelude
ghc-options: -funbox-strict-fields -Wall -fno-warn-unused-do-bind -threaded
if flag(static)
ld-options: -static
if flag(bibutils)
cpp-options: -DUSE_BIBUTILS
executable test-citeproc
Main-Is: test-citeproc.hs
Other-Modules: JSON
Hs-Source-Dirs: tests, compat
if flag(test_citeproc)
Buildable: True
else
Buildable: False
build-depends: base >= 4 && < 5,
pandoc-citeproc,
aeson,
directory,
text,
mtl,
pandoc-types >= 1.20 && < 1.23,
pandoc >= 2.8 && < 2.11,
filepath,
bytestring,
process,
temporary >= 1.1,
yaml >= 0.11,
containers >= 0.4,
vector >= 0.10
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*
if impl(ghc < 8.4)
hs-source-dirs: prelude
other-modules: Prelude
build-depends: base-compat >= 0.9
ghc-options: -funbox-strict-fields -Wall -fno-warn-unused-do-bind -threaded
default-language: Haskell2010
default-extensions: CPP, NoImplicitPrelude
other-modules: Text.CSL.Compat.Pandoc
build-tools: pandoc-citeproc
test-suite test-pandoc-citeproc
Type: exitcode-stdio-1.0
Main-Is: test-pandoc-citeproc.hs
Other-Modules: JSON
Hs-Source-Dirs: tests, compat
build-depends: base >= 4 && < 5,
aeson,
directory,
text,
pandoc-types >= 1.20 && < 1.23,
mtl,
pandoc >= 2.8 && < 2.11,
filepath,
containers,
bytestring,
pandoc-citeproc,
process,
temporary >= 1.1,
yaml >= 0.11
ghc-options: -funbox-strict-fields -Wall -fno-warn-unused-do-bind -threaded
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*
if impl(ghc < 8.4)
hs-source-dirs: prelude
other-modules: Prelude
build-depends: base-compat >= 0.9
default-language: Haskell2010
default-extensions: CPP, NoImplicitPrelude
other-modules: Text.CSL.Compat.Pandoc
build-tools: pandoc-citeproc