This repository has been archived by the owner on Sep 22, 2019. It is now read-only.
/
bsdiff.cabal
125 lines (105 loc) · 3.17 KB
/
bsdiff.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
name: bsdiff
version: 0.0
synopsis: Haskell bindings to Bsdiff
description:
@bsdiff@ is a tool for creating/applying patches to binary files.
.
These are the complete Haskell bindings. They're based on minibsdiff,
which is a portable derivative of bsdiff v4.3. See
<http://github.com/thoughtpolice/minibsdiff>
.
This package also includes a reimplementation of @bsdiff/bspatch@, called
@bspatcher@, which demonstrates how to use the library and offers several
compression modes as opposed to just bzlib like the standard bsdiff. If you
want to enable snappy support in @bspatcher@, install with the @-fsnappy@
flag.
.
Please see the bsdiff homepage for more information: <http://www.daemonology.net/bsdiff/>
homepage: http://thoughtpolice.github.com/hs-bsdiff
bug-reports: http://github.com/thoughtpolice/hs-bsdiff/issues
license: BSD3
license-file: LICENSE.txt
copyright: Copyright (c) Austin Seipp 2012
author: Austin Seipp <mad.one@gmail.com>
maintainer: Austin Seipp <mad.one@gmail.com>
stability: Experimental
category: Data
build-type: Simple
cabal-version: >=1.10
tested-with: GHC == 7.0.4,
GHC == 7.2.1, GHC == 7.2.2,
GHC == 7.4.1
extra-source-files:
AUTHORS.txt
README.md
tests/*.hs
bench/*.hs
src/cbits/*.txt, src/cbits/*.md
src/cbits/*.h, src/cbits/test.c
src/cbits/makefile
source-repository head
type: git
location: https://github.com/thoughtpolice/hs-bsdiff.git
flag no-exe
description: Disable compilation of bspatcher utility
default: False
flag snappy
description: Enable snappy compression (requires external library)
default: False
library
exposed-modules:
Data.ByteString.BSDiff
build-depends:
base >= 4,
bytestring,
filepath
hs-source-dirs: src
include-dirs: src/cbits
c-sources:
src/cbits/bsdiff.c
src/cbits/bspatch.c
ghc-options: -Wall -O2 -funbox-strict-fields
-fwarn-tabs
default-extensions: CPP, ForeignFunctionInterface
default-language: Haskell2010
executable bspatcher
main-is: bspatcher.hs
build-depends:
base >= 4,
bytestring,
bsdiff,
lz4, zlib, bzlib, quicklz
if flag(snappy)
cpp-options: -DSNAPPY
build-depends: snappy
if flag(no-exe)
buildable: False
hs-source-dirs: . src
ghc-options: -Wall -O2 -funbox-strict-fields
-fwarn-tabs
default-language: Haskell2010
test-suite properties
hs-source-dirs: tests
main-is: Properties.hs
type: exitcode-stdio-1.0
build-depends:
base >= 4,
bytestring,
QuickCheck,
quickcheck-instances,
hspec,
bsdiff
ghc-options: -Wall -fno-cse -fno-warn-orphans
-threaded -rtsopts
default-language: Haskell2010
benchmark bench1
hs-source-dirs: bench
main-is: Bench1.hs
type: exitcode-stdio-1.0
build-depends:
base >= 4,
bytestring,
criterion,
bsdiff
ghc-options: -Wall -fno-warn-orphans -threaded
default-language: Haskell2010