packages feed

phash-0.0.5: phash.cabal

name:               phash
version:            0.0.5
synopsis:           Haskell bindings to pHash, the open source perceptual hash library
description:        See http://www.phash.org/ for more info. Note that you
                    must have libphash installed on your system to use this
                    library. Check your system library.
license:            GPL-3
license-file:       LICENSE
author:             Michael Xavier <michael@michaelxavier.net>
maintainer:         Michael Xavier <michael@michaelxavier.net>
copyright:          Copyright: (c) 2014 Michael Xavier
category:           Data
build-type:         Simple
cabal-version:      >= 1.10
extra-source-files: README.md
                    test/fixtures/grump_gray.jpg
                    test/fixtures/grump.jpg
                    test/fixtures/grump_flip.jpg
                    test/fixtures/grump_bright.jpg
homepage:           http://github.com/michaelxavier/phash
bug-reports:        http://github.com/michaelxavier/phash/issues

flag lib-Werror
  default: False
  manual: True

library
  exposed-modules:  Data.PHash
  exposed-modules:  Data.PHash.Image
  exposed-modules:  Data.PHash.Types
  build-depends:    base >= 4.6 && < 4.9
  hs-source-dirs:   src
  default-language: Haskell2010
  extra-libraries:  pHash
  if flag(lib-Werror)
    ghc-options: -Werror

  ghc-options: -Wall

test-suite spec
  type:             exitcode-stdio-1.0
  main-is:          Test.hs
  default-language: Haskell2010
  hs-source-dirs:   src, test
  extra-libraries:  pHash
  build-depends:    base
  build-depends:    tasty >= 0.7 && < 1.0
  build-depends:    tasty-smallcheck >= 0.2 && < 1.0
  build-depends:    tasty-hunit >= 0.4.1 && < 1.0
  build-depends:    HUnit >= 1.2.5.2 && < 2.0
  build-depends:    smallcheck
  if flag(lib-Werror)
    ghc-options: -Werror

  ghc-options: -Wall

test-suite docs
  type:             exitcode-stdio-1.0
  main-is:          DocTest.hs
  default-language: Haskell2010
  hs-source-dirs:   src, test
  extra-libraries:  pHash
  ghc-options:      -threaded
  build-depends:    base
  build-depends:    doctest >= 0.9.10 && < 1.0
  build-depends:    phash

source-repository head
  Type:     git
  Location: https://github.com/michaelxavier/phash