packages feed

diagrams-builder-0.2.0.0: diagrams-builder.cabal

name:                diagrams-builder
version:             0.2.0.0
synopsis:            hint-based build service for the diagrams graphics EDSL.

description:         @diagrams-builder@ provides backend-agnostic tools for
                     dynamically turning code into rendered diagrams,
                     using the @hint@ wrapper to the GHC API.  It
                     supports conditional recompilation using hashing
                     of diagrams source code, to avoid recompiling
                     code that has not changed.  It is useful for
                     creating tools which compile diagrams code
                     embedded in other documents.  For example, it is
                     used by the @BlogLiterately-diagrams@ package (a
                     plugin for @BlogLiterately@) to compile diagrams
                     embedded in Markdown-formatted blog posts.
                     .
                     An executable specific to the cairo backend is
                     included (more executables specific to other
                     backends will be included in the future).  It
                     takes an input file and an expression to render
                     and outputs an image file, using the cairo
                     backend.  If you want it you must explicitly
                     enable the cairo flag with @-fcairo@.
                     .
                     A LaTeX package, @diagrams-latex.sty@, is also
                     provided in the @latex/@ directory of the source
                     distribution, which renders diagrams code found
                     within @diagram@ environments.  It makes use of
                     the @diagrams-builder-cairo@ executable, so if
                     you want to use @diagrams-latex.sty@ you should
                     install @diagrams-builder@ with the @-fcairo@
                     option.  Note that @diagrams-latex.sty@ is
                     licensed under the GPL.
homepage:            http://projects.haskell.org/diagrams
license:             BSD3
license-file:        LICENSE
extra-source-files:  CHANGES, latex/diagrams-latex.sty
author:              Brent Yorgey
maintainer:          diagrams-discuss@googlegroups.com
category:            Graphics
build-type:          Simple
cabal-version:       >=1.10
bug-reports:         https://github.com/diagrams/diagrams-builder/issues
Source-repository head
  type:     git
  location: https://github.com/diagrams/diagrams-builder

library
  exposed-modules:     Diagrams.Builder
                       Diagrams.Builder.Modules
  build-depends:       base >=4.2 && < 4.7,
                       diagrams-lib >=0.3 && < 0.6,
                       hint ==0.3.*,
                       directory,
                       filepath,
                       haskell-src-exts >= 1.13.1 && < 1.14,
                       cryptohash >= 0.7.4 && < 0.8,
                       bytestring >= 0.9.2 && < 0.10,
                       base16-bytestring >= 0.1.1 && < 0.2
  hs-source-dirs:      src
  default-language:    Haskell2010
  other-extensions:    StandaloneDeriving,
                       DeriveDataTypeable,
                       ScopedTypeVariables,
                       FlexibleContexts

flag cairo
  description: install cairo-specific builder tool
  default:     False

executable diagrams-builder-cairo
  main-is:             diagrams-builder-cairo.hs
  hs-source-dirs:      src/tools
  default-language:    Haskell2010
  other-extensions:    StandaloneDeriving,
                       DeriveDataTypeable

  if !flag(cairo)
    buildable: False

  if flag(cairo)
    build-depends:     base >= 4 && < 5,
                       filepath,
                       directory,
                       diagrams-builder,
                       diagrams-lib >= 0.5 && < 0.6,
                       diagrams-cairo >= 0.5 && < 0.6,
                       cmdargs >= 0.6 && < 0.11