packages feed

zlib-bindings-0.0.0: zlib-bindings.cabal

name:            zlib-bindings
version:         0.0.0
license:         BSD3
license-file:    LICENSE
author:          Michael Snoyman <michael@snoyman.com>
maintainer:      Michael Snoyman <michael@snoyman.com>
synopsis:        Low-level bindings to the zlib package.
category:        Codec
stability:       Experimental
cabal-version:   >= 1.6
build-type:      Simple
homepage:        http://github.com/snoyberg/zlib-bindings
extra-source-files: cbits/crc32.h cbits/inffast.h cbits/inflate.h
                    cbits/trees.h cbits/deflate.h cbits/inffixed.h
                    cbits/inftrees.h cbits/zutil.h
flag test
  description: Build the test executable.
  default: False

library
    if flag(test)
        Buildable: False
    build-depends: base                  >= 4       && < 5
                 , bytestring            >= 0.9.1.4 && < 0.10
                 , zlib                  >= 0.5.2.0 && < 0.6
    exposed-modules: Codec.Zlib
    ghc-options:     -Wall
    c-sources:       c/helper.c
    if os(windows)
        include-dirs:  cbits
        install-includes: zlib.h zconf.h

executable zlib-bindings-test 
    main-is: test.hs
    if flag(test)
        Buildable: True
        build-depends: base                  >= 4       && < 5
                     , bytestring            >= 0.9.1.4 && < 0.10
                     , zlib                  >= 0.5.2.0 && < 0.6
                     , HTF                   >= 0.5     && < 0.6
                     , QuickCheck            >= 2.1.2
    else
        Buildable: False
    ghc-options:     -Wall
    c-sources:       c/helper.c
    if os(windows)
        include-dirs:  cbits
        install-includes: zlib.h zconf.h

source-repository head
  type:     git
  location: git://github.com/snoyberg/zlib-bindings.git