File: bzlib.cabal

package info (click to toggle)
haskell-bzlib 0.5.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 280 kB
  • ctags: 407
  • sloc: ansic: 3,610; haskell: 206; makefile: 2
file content (52 lines) | stat: -rw-r--r-- 2,110 bytes parent folder | download
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
name:            bzlib
version:         0.5.0.0
copyright:       (c) 2006-2008 Duncan Coutts
license:         BSD3
license-file:    LICENSE
author:          Duncan Coutts <duncan@haskell.org>
maintainer:      Duncan Coutts <duncan@haskell.org>
category:        Codec
synopsis:        Compression and decompression in the bzip2 format
description:     This package provides a pure interface for compressing and 
                 decompressing streams of data represented as lazy 
                 'ByteString's. It uses the bz2 C library so it has high
                 performance.
                 .
                 It provides a convenient high level api suitable for most
                 tasks and for the few cases where more control is needed it
                 provides access to the full bzip2 feature set.
stability:       provisional
build-type:      Simple
cabal-version:   >= 1.2.1
extra-source-files: cbits/bzlib_private.h
                    -- demo programs:
                    bzip2.hs bunzip2.hs

flag bytestring-in-base
  description: In the ghc-6.6 era the bytestring modules were
               included in the base package.

library
  exposed-modules: Codec.Compression.BZip,
                   Codec.Compression.BZip.Internal
  other-modules:   Codec.Compression.BZip.Stream
  extensions:      CPP, ForeignFunctionInterface
  if flag(bytestring-in-base)
    -- bytestring was in base-2.0 and 2.1.1
    build-depends: base >= 2.0 && < 2.2
    cpp-options: -DBYTESTRING_IN_BASE
  else
    build-depends: base < 2.0 || >= 2.2, bytestring >= 0.9
  includes:        bzlib.h
  ghc-options:     -Wall
  if !os(windows)
    -- Normally we use the the standard system bz2 lib:
    extra-libraries: bz2
  else
    -- However for the benefit of users of Windows (which does not have zlib
    -- by default) we bundle a complete copy of the C sources of bzip2-1.0.5
    c-sources:     cbits/blocksort.c cbits/bzlib.c cbits/compress.c
                   cbits/crctable.c cbits/decompress.c cbits/huffman.c
                   cbits/randtable.c
    include-dirs:  cbits
    install-includes: bzlib.h