/
diagrams-builder.cabal
141 lines (127 loc) · 5.39 KB
/
diagrams-builder.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
name: diagrams-builder
version: 0.4.1
synopsis: hint-based build service for the diagrams graphics EDSL.
description: @diagrams-builder@ provides backend-agnostic tools for
dynamically turning code into rendered diagrams,
using the @hint@ wrapper to the GHC API. It
supports conditional recompilation using hashing
of diagrams source code, to avoid recompiling
code that has not changed. It is useful for
creating tools which compile diagrams code
embedded in other documents. For example, it is
used by the @BlogLiterately-diagrams@ package (a
plugin for @BlogLiterately@) to compile diagrams
embedded in Markdown-formatted blog posts.
.
Executables specific to the cairo, SVG, and postscript
backends are included (more executables specific
to other backends may be included in the future).
All take an input file and an expression to
render, and output an image file. If you want
these executables you must explicitly enable the
@-fcairo@, @-fsvg@, or @-fps@ flags.
.
A LaTeX package, @diagrams-latex.sty@, is also
provided in the @latex/@ directory of the source
distribution, which renders diagrams code found
within @diagram@ environments. Note that
@diagrams-latex.sty@ is licensed under the GPL.
homepage: http://projects.haskell.org/diagrams
license: BSD3
license-file: LICENSE
extra-source-files: CHANGES.markdown, README.markdown, latex/diagrams-latex.sty
author: Brent Yorgey
maintainer: diagrams-discuss@googlegroups.com
category: Graphics
build-type: Simple
cabal-version: >=1.10
tested-with: GHC == 7.4.2, GHC == 7.6.1
bug-reports: https://github.com/diagrams/diagrams-builder/issues
Source-repository head
type: git
location: https://github.com/diagrams/diagrams-builder
library
exposed-modules: Diagrams.Builder
Diagrams.Builder.Modules
Diagrams.Builder.CmdLine
build-depends: base >=4.2 && < 4.7,
diagrams-lib >=0.6 && < 0.8,
hint ==0.3.*,
directory,
filepath,
transformers >= 0.3 && < 0.4,
split >= 0.2 && < 0.3,
haskell-src-exts >= 1.13.1 && < 1.15,
cryptohash >= 0.8 && < 0.12,
bytestring >= 0.9.2 && < 0.11,
cmdargs >= 0.6 && < 0.11
hs-source-dirs: src
default-language: Haskell2010
other-extensions: StandaloneDeriving,
DeriveDataTypeable,
ScopedTypeVariables,
FlexibleContexts
flag cairo
description: install cairo-specific builder tool
default: False
manual: True
flag svg
description: install svg-specific builder tool
default: False
manual: True
flag ps
description: install postscript-specific builder tool
default: False
manual: True
executable diagrams-builder-cairo
main-is: diagrams-builder-cairo.hs
hs-source-dirs: src/tools
default-language: Haskell2010
other-extensions: DeriveDataTypeable
RecordWildCards
if !flag(cairo)
buildable: False
if flag(cairo)
build-depends: base >= 4 && < 5,
filepath,
directory,
diagrams-builder,
diagrams-lib >= 0.6 && < 0.8,
diagrams-cairo >= 0.6 && < 0.8,
cmdargs >= 0.6 && < 0.11,
lens >= 3.8 && < 3.11
executable diagrams-builder-svg
main-is: diagrams-builder-svg.hs
hs-source-dirs: src/tools
default-language: Haskell2010
other-extensions: DeriveDataTypeable
RecordWildCards
if !flag(svg)
buildable: False
if flag(svg)
build-depends: base >= 4 && < 5,
filepath,
directory,
diagrams-builder,
diagrams-lib >= 0.6 && < 0.8,
diagrams-svg >= 0.8.0.1 && < 0.9,
blaze-svg >= 0.3.3 && < 0.4,
bytestring >= 0.9.2 && < 0.11,
cmdargs >= 0.6 && < 0.11
executable diagrams-builder-ps
main-is: diagrams-builder-ps.hs
hs-source-dirs: src/tools
default-language: Haskell2010
other-extensions: DeriveDataTypeable
RecordWildCards
if !flag(ps)
buildable: False
if flag(ps)
build-depends: base >= 4 && < 5,
filepath,
directory,
diagrams-builder,
diagrams-lib >= 0.6 && < 0.8,
diagrams-postscript >= 0.6 && < 0.8,
cmdargs >= 0.6 && < 0.11,
lens >= 3.8 && < 3.11