@@ -2,18 +2,26 @@ name: yaml
2version: 0.4.1
2version: 0.4.1
3license: BSD3
3license: BSD3
4license-file: LICENSE
4license-file: LICENSE
5−author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>
5+author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov
6maintainer: Michael Snoyman <michael@snoyman.com>
6maintainer: Michael Snoyman <michael@snoyman.com>
7synopsis: Low-level binding to the libyaml C library.
7synopsis: Low-level binding to the libyaml C library.
8−description: Provides support for parsing and emitting Yaml documents. Includes the full C library in the package so you don't need to worry about any non-Haskell dependencies.
8+description: Provides support for parsing and emitting Yaml documents.
10+ This package includes the full libyaml C library version 0.1.12 by Kirill
11+ Simonov (<http://pyyaml.org/wiki/LibYAML>) in the package so you
12+ don't need to worry about any non-Haskell dependencies.
9category: Web
13category: Web
10stability: unstable
14stability: unstable
11cabal-version: >= 1.2
15cabal-version: >= 1.2
12build-type: Simple
16build-type: Simple
13homepage: http://github.com/snoyberg/yaml/
17homepage: http://github.com/snoyberg/yaml/
14extra-source-files: c/helper.h,
18extra-source-files: c/helper.h,
15− c/yaml_private.h,
19+ libyaml/yaml_private.h,
16− c/yaml.h
20+ libyaml/yaml.h,
24+ description: Use the system-wide libyaml instead of the bundled copy
19 description: Skip building the library
27 description: Skip building the library
@@ -33,16 +41,20 @@ library
33 , enumerator >= 0.4 && < 0.5
41 , enumerator >= 0.4 && < 0.5
34 exposed-modules: Text.Libyaml
42 exposed-modules: Text.Libyaml
35 ghc-options: -Wall
43 ghc-options: -Wall
36− c-sources: c/helper.c,
44+ c-sources: c/helper.c
45 include-dirs: c
45 include-dirs: c
46+ if flag(system-libyaml)
47+ pkgconfig-depends: yaml-0.1
49+ c-sources: libyaml/api.c,
57+ include-dirs: libyaml
47executable runtests
59executable runtests
48 if flag(buildtests)
60 if flag(buildtests)
@@ -60,14 +72,18 @@ executable runtests
61 Buildable: False
73 Buildable: False
62 ghc-options: -Wall
74 ghc-options: -Wall
63− c-sources: c/helper.c,
75+ c-sources: c/helper.c
72 include-dirs: c
76 include-dirs: c
77+ if flag(system-libyaml)
78+ pkgconfig-depends: yaml-0.1
80+ c-sources: libyaml/api.c,
88+ include-dirs: libyaml
73 main-is: runtests.hs
89 main-is: runtests.hs