Source

haskell-aosd / aosd.cabal

-- aosd.cabal auto-generated by cabal init. For additional options,
-- see
-- http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#pkg-descr.
Name:                aosd
Version:             0.1.3
Synopsis:            Bindings to libaosd, a library for Cairo-based on-screen displays
Description:
 <http://www.atheme.org/project/libaosd>
 .
 @An advanced on screen display (OSD) library, which uses Cairo to create high quality rendered graphics to be overlaid on top of the screen.@
 .
 Distro packages providing /libaosd/:
 .
 * /Debian/: @libaosd2@
 .
 Example:
 .
 @
 &#123;-\# LANGUAGE OverloadedStrings \#-&#125;
 import "Graphics.Aosd.Pango"
 .
 markup = pSized 50 (pUnlines [pItalic \"AOSD\",\"Example\"])
 .
 main = aosdFlash
 \           defaultOpts
 \           (textRenderer markup) &#123; alignment = Just AlignCenter, colour = orange &#125;
 \           (symDurations 3000 3000)
 @
 .
 Tested with /libaosd/ version 0.2.7.

License:             BSD3
License-file:        LICENSE
Author:              Daniel Schüssler
Maintainer:          anotheraddress@gmx.de
-- Copyright:
Category:            Graphics
Build-type:          Simple
Extra-source-files:  test/test.hs
Cabal-version:       >=1.10

source-repository head
  type:     hg
  location: https://dschuessler@bitbucket.org/dschuessler/haskell-aosd

Flag DebugMemory
    Default: False
    Manual: True

Library
  Default-Extensions: ForeignFunctionInterface
  Exposed-modules:
    Graphics.Aosd.AOSD_H
    Graphics.Aosd
    Graphics.Aosd.Pango
  Other-modules:
    Graphics.Aosd.Options
    Graphics.Aosd.Renderer
    Graphics.Aosd.Util
    Graphics.Aosd.XUtil


  Build-depends:       monad-control, colour, transformers, X11, base >= 4 && < 5, bindings-DSL >= 1.0.11, cairo >= 0.12, pango >= 0.12
  Build-tools:         hsc2hs
  Pkgconfig-depends:   libaosd
  Default-language: Haskell2010

  if(flag(DebugMemory))
    Cpp-options: -DDEBUG_MEMORY


Test-Suite test-aosd
    type:       exitcode-stdio-1.0
    hs-source-dirs: test
    main-is:    test.hs
    Build-depends:       colour, base,aosd,pango,language-haskell-extract,template-haskell
    Default-language: Haskell2010
    ghc-options: -threaded