@@ -0,0 +1,62 @@
1+name: libyaml
2+version: 0.1.0.0
3+synopsis: Low-level, streaming YAML interface.
4+description: README and API documentation are available at <https://www.stackage.org/package/libyaml>
5+category: Text
6+author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov
7+maintainer: Michael Snoyman <michael@snoyman.com>
8+license: BSD3
9+github: snoyberg/yaml
10+stability: stable
11+
12+extra-source-files:
13+- c/helper.h
14+- libyaml_src/yaml_private.h
15+- libyaml_src/yaml.h
16+- libyaml_src/LICENSE
17+- README.md
18+- ChangeLog.md
19+
20+flags:
21+ system-libyaml:
22+ description: Use the system-wide libyaml instead of the bundled copy
23+ manual: false
24+ default: false
25+ no-unicode:
26+ description: Don't enable unicode output. Instead, unicode characters will be escaped.
27+ manual: false
28+ default: false
29+
30+dependencies:
31+- base >=4.9.1 && <5 # GHC 8.0.2 and later
32+- bytestring >=0.9.1.4
33+- conduit >=1.2.8 && <1.4
34+- resourcet >=0.3 && <1.3
35+
36+library:
37+ c-sources: c/helper.c
38+ ghc-options: -Wall
39+ include-dirs:
40+ - c
41+ source-dirs: src
42+ when:
43+ - condition: flag(no-unicode)
44+ cpp-options: -D__NO_UNICODE__
45+ - condition: ! '!(flag(system-libyaml))'
46+ then:
47+ c-sources:
48+ - libyaml_src/api.c
49+ - libyaml_src/dumper.c
50+ - libyaml_src/emitter.c
51+ - libyaml_src/loader.c
52+ - libyaml_src/parser.c
53+ - libyaml_src/reader.c
54+ - libyaml_src/scanner.c
55+ - libyaml_src/writer.c
56+ include-dirs:
57+ - libyaml_src
58+ else:
59+ extra-libraries: yaml
60+ - condition: os(windows)
61+ cpp-options: -DWINDOWS
62+