packages feed

scholdoc-texmath-0.1: scholdoc-texmath.cabal

Name:                scholdoc-texmath
Version:             0.1
Cabal-Version:       >= 1.10
Build-type:          Simple
Synopsis:            Scholdoc fork of texmath
Description:         This package is a fork of @texmath@, intended to support
                     the development of Scholdoc. It is currently just a
                     trivial fork just so it can compile against
                     @scholdoc-types@ without polluting the @texmath@ package
                     namespace.
                     .
                     This package is currently up to date with @taxmath@
                     version 0.8
                     .
                     The @texmath@ library provides functions to read and write 
                     TeX math, presentation MathML, and OMML (Office Math
                     Markup Language, used in Microsoft Office). For
                     descriptions of the original @texmath@ package, please
                     visit <http://hackage.haskell.org/package/texmath>

Category:            Text
Stability:           Experimental
License:             GPL
License-File:        LICENSE
Author:              Tim T.Y. Lin
Maintainer:          timtylin@gmail.com
Homepage:            http://github.com/timtylin/scholdoc-texmath
Bug-Reports:         http://github.com/timtylin/scholdoc-texmath/issues
Extra-source-files:  README.md
                     README_TEXMATH.md
                     changelog
                     man/texmath.1.md
                     man/Makefile
                     man/man1/texmath.1
                     cgi/texmath.html
                     tests/src/*.mml
                     tests/src/*.tex
                     tests/src/*.omml
                     tests/readers/mml/*.native
                     tests/readers/tex/*.native
                     tests/readers/omml/*.native
                     tests/writers/*.mml
                     tests/writers/*.tex
                     tests/writers/*.omml
                     lib/totexmath/unicodetotex.hs
                     lib/totexmath/unimathsymbols.txt
                     lib/totexmath/Makefile
                     lib/mmldict/unicode.xml
                     lib/mmldict/operatorDictionary.xsl
                     lib/mmldict/generateMMLDict.hs
                     lib/mmldict/Makefile
                     lib/tounicode/mkUnicodeTable.hs
                     lib/tounicode/UnicodeData.txt
                     lib/tounicode/Makefile

Source-repository head
  type:              git
  location:          git://github.com/timtylin/scholdoc-texmath.git

Flag executable
  description:       Compile test executable.
  default:           False

Flag network-uri
  description: Get Network.URI from the network-uri package
  default: True

Library
    Build-depends:       xml, parsec >= 3, containers, scholdoc-types >= 0.1.3 , mtl
    if impl(ghc >= 6.10)
      Build-depends: base >= 4.5 && < 5, syb
    else
      Build-depends: base >= 3 && < 4
    Exposed-modules:     Text.TeXMath,
                         Text.TeXMath.Types,
                         Text.TeXMath.Readers.TeX,
                         Text.TeXMath.Readers.TeX.Macros,
                         Text.TeXMath.Readers.MathML,
                         Text.TeXMath.Readers.MathML.MMLDict,
                         Text.TeXMath.Readers.MathML.EntityMap,
                         Text.TeXMath.Readers.OMML,
                         Text.TeXMath.Writers.MathML,
                         Text.TeXMath.Writers.OMML,
                         Text.TeXMath.Writers.Pandoc,
                         Text.TeXMath.Writers.TeX,
                         Text.TeXMath.Unicode.ToUnicode,
                         Text.TeXMath.Unicode.ToTeX,
                         Text.TeXMath.Unicode.ToASCII
    Other-modules:       Text.TeXMath.Compat,
                         Text.TeXMath.Shared,
                         Text.TeXMath.TeX
    if impl(ghc >= 6.12)
      Ghc-Options:     -Wall -fno-warn-unused-do-bind
    else
      Ghc-Options:     -Wall
    Ghc-Prof-Options:  -auto-all -caf-all
    Default-Language:    Haskell2010
    Hs-Source-Dirs:    src

Executable texmath
    Default-Language:    Haskell2010
    Main-is:             texmath.hs
    Hs-Source-Dirs:      extra
    if impl(ghc >= 6.12)
      Ghc-Options:     -Wall -fno-warn-unused-do-bind
    else
      Ghc-Options:     -Wall
    Ghc-Prof-Options:  -auto-all -caf-all
    if flag(executable)
      Buildable:         True
      Build-Depends:     base >= 4.5 && < 5, scholdoc-texmath, xml, 
                         scholdoc-types, split, aeson, bytestring, text
    else
      Buildable:         False
    if flag(network-uri)
      Build-Depends:     network-uri >= 2.6
    else
      Build-Depends:     network < 2.6

Test-Suite test-texmath
    Type:                exitcode-stdio-1.0
    Main-Is:             test-texmath.hs
    Hs-Source-Dirs:      tests
    Build-Depends:       base >= 4.2 && < 5, process, directory, filepath,
                         scholdoc-texmath, xml, utf8-string, bytestring, process,
                         temporary, text, split
    Default-Language:    Haskell2010
    Ghc-Options:         -Wall