-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.yaml
118 lines (109 loc) · 3.04 KB
/
package.yaml
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
name: pcre2
version: 2.2.1
github: "sjshuck/hs-pcre2"
license: Apache-2.0
license-file: LICENSE # [LICENSE, src/c/pcre2/LICENCE] doesn't work with stack sdist
author: "Shlomo Shuck and contributors"
maintainer: "[email protected]"
copyright: "2020-2022 Shlomo Shuck"
extra-source-files:
- README.md
- ChangeLog.md
- src/c/**/*.h
- src/c/**/*.c
synopsis: Regular expressions via the PCRE2 C library (included)
category: Text
# To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is
# common to point users to the README.md file.
description: Please see the README on GitHub at <https://github.com/sjshuck/hs-pcre2>
dependencies:
- base >= 4.9 && < 5
- containers
- microlens
- mtl
- template-haskell
- text >= 2
library:
source-dirs: src/hs
include-dirs:
- src/c
- src/c/pcre2/src
c-sources:
# Per src/c/pcre2/NON-AUTOTOOLS-BUILD
- src/c/pcre2/src/pcre2_auto_possess.c
- src/c/pcre2_chartables.c
- src/c/pcre2/src/pcre2_chkdint.c
- src/c/pcre2/src/pcre2_compile.c
- src/c/pcre2/src/pcre2_config.c
- src/c/pcre2/src/pcre2_context.c
- src/c/pcre2/src/pcre2_convert.c
- src/c/pcre2/src/pcre2_dfa_match.c
- src/c/pcre2/src/pcre2_error.c
- src/c/pcre2/src/pcre2_extuni.c
- src/c/pcre2/src/pcre2_find_bracket.c
- src/c/pcre2/src/pcre2_jit_compile.c
- src/c/pcre2/src/pcre2_maketables.c
- src/c/pcre2/src/pcre2_match.c
- src/c/pcre2/src/pcre2_match_data.c
- src/c/pcre2/src/pcre2_newline.c
- src/c/pcre2/src/pcre2_ord2utf.c
- src/c/pcre2/src/pcre2_pattern_info.c
- src/c/pcre2/src/pcre2_script_run.c
- src/c/pcre2/src/pcre2_serialize.c
- src/c/pcre2/src/pcre2_string_utils.c
- src/c/pcre2/src/pcre2_study.c
- src/c/pcre2/src/pcre2_substitute.c
- src/c/pcre2/src/pcre2_substring.c
- src/c/pcre2/src/pcre2_tables.c
- src/c/pcre2/src/pcre2_ucd.c
- src/c/pcre2/src/pcre2_valid_utf.c
- src/c/pcre2/src/pcre2_xclass.c
ghc-options:
- -W
- -optc=-DPCRE2_CODE_UNIT_WIDTH=8
- -optc=-DPCRE2_STATIC=1
- -optc=-DSUPPORT_PCRE2_8
- -optc=-Wno-discarded-qualifiers
- -optc=-Wno-incompatible-pointer-types
cc-options:
- -DHAVE_CONFIG_H
- -DHAVE_INTTYPES_H=1
- -DHAVE_LIMITS_H=1
- -DHAVE_MEMMOVE_H=1
- -DHAVE_STDINT_H=1
- -DHAVE_STDLIB_H=1
- -DHAVE_STRERROR_H=1
- -DHAVE_STRING_H=1
- -DSUPPORT_JIT=1
- -DSUPPORT_UNICODE=1
exposed-modules:
- Text.Regex.Pcre2
- Text.Regex.Pcre2.Foreign
- Text.Regex.Pcre2.Unsafe
tests:
pcre2-test:
main: Spec.hs
source-dirs: test
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- pcre2
- hspec
- microlens-platform
benchmarks:
pcre2-benchmarks:
main: Bench.hs
source-dirs: bench
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- pcre2
- criterion
- microlens-platform
- pcre-light
- regex-pcre-builtin