forked from vmchale/libarchive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libarchive.cabal
374 lines (335 loc) · 11.8 KB
/
libarchive.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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
cabal-version: 3.0
name: libarchive
version: 3.0.2.2
license: BSD-3-Clause
license-file: LICENSE
copyright: Copyright: (c) 2018-2020 Vanessa McHale
maintainer: vamchale@gmail.com
author: Vanessa McHale
tested-with: ghc ==7.10.3 ghc ==8.0.2 ghc == 8.2.2 ghc ==8.4.4 ghc ==8.6.5 ghc ==8.8.4 ghc ==8.10.4 ghc ==9.0.1
bug-reports: https://github.com/vmchale/libarchive/issues
synopsis: Haskell interface to libarchive
description:
Haskell bindings for [libarchive](https://www.libarchive.org/). Provides the ability to unpack archives, including the ability to unpack archives lazily.
category: Codec
build-type: Custom
extra-doc-files:
README.md
CHANGELOG.md
extra-source-files:
./c/autoconf-darwin/config.h
./c/autoconf-linux/config.h
./c/autoconf-freebsd/config.h
./c/autoconf-windows/config.h
./c/*.c
./c/*.h
./c/zlib/*.c
./c/zlib/*.h
test/data/aarch64-linux-dist.tar
source-repository head
type: git
location: https://github.com/vmchale/libarchive
custom-setup
setup-depends:
base -any,
Cabal -any,
chs-cabal -any
flag cross
description: Set this flag if cross-compiling
default: False
manual: True
flag low-memory
description: Run low-memory version of test suite
default: False
flag system-libarchive
default: True
description: Use libarchive found with pkg-config rather than the bundled sources
library
exposed-modules:
Codec.Archive
Codec.Archive.Foreign
Codec.Archive.Foreign.Archive
Codec.Archive.Foreign.ArchiveEntry
Codec.Archive.Internal.Pack
Codec.Archive.Internal.Pack.Lazy
Codec.Archive.Internal.Pack.Common
Codec.Archive.Internal.Unpack.Lazy
Codec.Archive.Internal.Unpack
Codec.Archive.Internal.Monad
hs-source-dirs: src
other-modules:
Codec.Archive.Foreign.Archive.Macros
Codec.Archive.Foreign.ArchiveEntry.Macros
Codec.Archive.Types
Codec.Archive.Types.Foreign
Codec.Archive.Permissions
default-language: Haskell2010
other-extensions: DeriveGeneric DeriveAnyClass
ghc-options: -Wall
build-depends:
base >=4.8 && <5,
bytestring -any,
composition-prelude >=2.0.5.0,
dlist -any,
filepath -any,
mtl >=2.2.1,
unix-compat >=0.1.2.1,
deepseq >=1.4.0.0
if os(windows)
cc-options: -U__GCC_ASM_FLAG_OUTPUTS__
if arch(i386)
-- https://github.com/vmchale/libarchive/issues/12
cc-options: -D_Alignas(t)=__attribute__((__aligned__(t)))
if !flag(cross)
build-tool-depends: c2hs:c2hs >=0.26.1
, cpphs:cpphs
if !impl(ghc >=8.0)
build-depends:
semigroups -any,
transformers -any
if impl(ghc >=8.0)
ghc-options:
-Wincomplete-uni-patterns -Wincomplete-record-updates
-Wredundant-constraints
if impl(ghc >=8.4)
ghc-options: -Wmissing-export-lists
if impl(ghc >=8.10)
ghc-options: -Wunused-packages
if !flag(system-libarchive)
include-dirs: c
if !flag(system-libarchive)
-- version 3.5.0
c-sources:
./c/archive_acl.c
./c/archive_blake2sp_ref.c
./c/archive_blake2s_ref.c
./c/archive_check_magic.c
./c/archive_cmdline.c
./c/archive_cryptor.c
./c/archive_digest.c
./c/archive_disk_acl_darwin.c
./c/archive_disk_acl_freebsd.c
./c/archive_disk_acl_linux.c
./c/archive_disk_acl_sunos.c
./c/archive_entry.c
./c/archive_entry_copy_bhfi.c
./c/archive_entry_copy_stat.c
./c/archive_entry_link_resolver.c
./c/archive_entry_sparse.c
./c/archive_entry_stat.c
./c/archive_entry_strmode.c
./c/archive_entry_xattr.c
./c/archive_getdate.c
./c/archive_hmac.c
./c/archive_match.c
./c/archive_options.c
./c/archive_pack_dev.c
./c/archive_pathmatch.c
./c/archive_ppmd7.c
./c/archive_ppmd8.c
./c/archive_random.c
./c/archive_rb.c
./c/archive_read_add_passphrase.c
./c/archive_read_append_filter.c
./c/archive_read.c
./c/archive_read_data_into_fd.c
./c/archive_read_disk_entry_from_file.c
./c/archive_read_disk_posix.c
./c/archive_read_disk_set_standard_lookup.c
./c/archive_read_disk_windows.c
./c/archive_read_extract2.c
./c/archive_read_extract.c
./c/archive_read_open_fd.c
./c/archive_read_open_file.c
./c/archive_read_open_filename.c
./c/archive_read_open_memory.c
./c/archive_read_set_format.c
./c/archive_read_set_options.c
./c/archive_read_support_filter_all.c
./c/archive_read_support_filter_by_code.c
./c/archive_read_support_filter_bzip2.c
./c/archive_read_support_filter_compress.c
./c/archive_read_support_filter_grzip.c
./c/archive_read_support_filter_gzip.c
./c/archive_read_support_filter_lrzip.c
./c/archive_read_support_filter_lz4.c
./c/archive_read_support_filter_lzop.c
./c/archive_read_support_filter_none.c
./c/archive_read_support_filter_program.c
./c/archive_read_support_filter_rpm.c
./c/archive_read_support_filter_uu.c
./c/archive_read_support_filter_xz.c
./c/archive_read_support_filter_zstd.c
./c/archive_read_support_format_7zip.c
./c/archive_read_support_format_all.c
./c/archive_read_support_format_ar.c
./c/archive_read_support_format_by_code.c
./c/archive_read_support_format_cab.c
./c/archive_read_support_format_cpio.c
./c/archive_read_support_format_empty.c
./c/archive_read_support_format_iso9660.c
./c/archive_read_support_format_lha.c
./c/archive_read_support_format_mtree.c
./c/archive_read_support_format_rar5.c
./c/archive_read_support_format_rar.c
./c/archive_read_support_format_raw.c
./c/archive_read_support_format_tar.c
./c/archive_read_support_format_warc.c
./c/archive_read_support_format_xar.c
./c/archive_read_support_format_zip.c
./c/archive_string.c
./c/archive_string_sprintf.c
./c/archive_util.c
./c/archive_version_details.c
./c/archive_virtual.c
./c/archive_windows.c
./c/archive_write_add_filter_b64encode.c
./c/archive_write_add_filter_by_name.c
./c/archive_write_add_filter_bzip2.c
./c/archive_write_add_filter.c
./c/archive_write_add_filter_compress.c
./c/archive_write_add_filter_grzip.c
./c/archive_write_add_filter_gzip.c
./c/archive_write_add_filter_lrzip.c
./c/archive_write_add_filter_lz4.c
./c/archive_write_add_filter_lzop.c
./c/archive_write_add_filter_none.c
./c/archive_write_add_filter_program.c
./c/archive_write_add_filter_uuencode.c
./c/archive_write_add_filter_xz.c
./c/archive_write_add_filter_zstd.c
./c/archive_write.c
./c/archive_write_disk_posix.c
./c/archive_write_disk_set_standard_lookup.c
./c/archive_write_disk_windows.c
./c/archive_write_open_fd.c
./c/archive_write_open_file.c
./c/archive_write_open_filename.c
./c/archive_write_open_memory.c
./c/archive_write_set_format_7zip.c
./c/archive_write_set_format_ar.c
./c/archive_write_set_format_by_name.c
./c/archive_write_set_format.c
./c/archive_write_set_format_cpio.c
./c/archive_write_set_format_cpio_newc.c
./c/archive_write_set_format_filter_by_ext.c
./c/archive_write_set_format_gnutar.c
./c/archive_write_set_format_iso9660.c
./c/archive_write_set_format_mtree.c
./c/archive_write_set_format_pax.c
./c/archive_write_set_format_raw.c
./c/archive_write_set_format_shar.c
./c/archive_write_set_format_ustar.c
./c/archive_write_set_format_v7tar.c
./c/archive_write_set_format_warc.c
./c/archive_write_set_format_xar.c
./c/archive_write_set_format_zip.c
./c/archive_write_set_options.c
./c/archive_write_set_passphrase.c
./c/filter_fork_posix.c
./c/filter_fork_windows.c
./c/xxhash.c
-- zlib-1.2.11
-- see https://github.com/vmchale/libarchive/issues/25
./c/zlib/adler32.c
./c/zlib/crc32.c
./c/zlib/deflate.c
./c/zlib/inffast.c
./c/zlib/zutil.c
./c/zlib/compress.c
./c/zlib/infback.c
./c/zlib/inflate.c
./c/zlib/inftrees.c
./c/zlib/trees.c
./c/zlib/uncompr.c
if os(darwin)
include-dirs: c/autoconf-darwin
elif os(linux)
include-dirs: c/autoconf-linux
elif os(freebsd)
include-dirs: c/autoconf-freebsd
elif os(windows)
include-dirs: c/autoconf-windows
else
build-depends: unbuildable<0
buildable: False
include-dirs: c/ c/zlib/
cc-options: -std=c11 -DHAVE_CONFIG_H
else
pkgconfig-depends: libarchive (==3.5.0 || >3.5.0) && <4.0
test-suite libarchive-test
type: exitcode-stdio-1.0
main-is: Spec.hs
build-tool-depends: cpphs:cpphs -any
hs-source-dirs: test
other-modules:
Codec.Archive.Roundtrip
Codec.Archive.Test
default-language: Haskell2010
other-extensions: OverloadedStrings
ghc-options: -threaded -rtsopts "-with-rtsopts=-N -K1K" -Wall
build-depends:
base -any,
libarchive -any,
hspec -any,
hspec-core -any,
bytestring -any,
directory >=1.2.5.0,
filepath -any,
temporary -any,
mtl >=2.2.2,
dir-traverse -any,
composition-prelude >=2.0.5.0,
pathological-bytestrings -any
if flag(low-memory)
cpp-options: -DLOW_MEMORY
if !impl(ghc >=8.0)
build-depends: transformers -any
if impl(ghc >=8.0)
ghc-options:
-Wincomplete-uni-patterns -Wincomplete-record-updates
-Wredundant-constraints
if impl(ghc >=8.4)
ghc-options: -Wmissing-export-lists
if impl(ghc >=8.10)
ghc-options: -Wunused-packages
benchmark libarchive-bench
type: exitcode-stdio-1.0
main-is: Bench.hs
hs-source-dirs: bench
default-language: Haskell2010
ghc-options: -Wall
build-depends:
base -any,
libarchive -any,
criterion -any,
bytestring -any,
tar -any,
tar-conduit >=0.2.5,
temporary -any
if impl(ghc >=8.0)
ghc-options:
-Wincomplete-uni-patterns -Wincomplete-record-updates
-Wredundant-constraints
if impl(ghc >=8.4)
ghc-options: -Wmissing-export-lists
if impl(ghc >=8.10)
ghc-options: -Wunused-packages
benchmark mem
type: exitcode-stdio-1.0
main-is: Mem.hs
hs-source-dirs: mem
default-language: Haskell2010
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
build-depends:
base -any,
libarchive -any,
bytestring -any
if impl(ghc >=8.0)
ghc-options:
-Wincomplete-uni-patterns -Wincomplete-record-updates
-Wredundant-constraints
if impl(ghc >=8.4)
ghc-options: -Wmissing-export-lists
if impl(ghc >=8.10)
ghc-options: -Wunused-packages