packages feed

charsetdetect-ae-1.1: charsetdetect-ae.cabal

Name:                charsetdetect-ae
Version:             1.1
Cabal-Version:       >= 1.6
Category:            Text
Synopsis:            Character set detection using Mozilla's Universal Character Set Detector
Description:
  Mozilla have developed a robust and efficient character set detection algorithm for use in their web browsers. The algorithm is able to detect all of the most frequently encountered character encodings totally automatically.
  .
  This library wraps up their library and exposes a very simple Haskell interface to it. The library is portable, and is confirmed to work on both Unix and Windows.
  .
  This library is a /maintained/ fork of charsetdetect:
  .
    * It compiles with recent version of bytestring.
    * It works correctly in presence of Template Haskell on GHC 7.6.
    * It builds on 64-bit Windows.
License:             LGPL
License-File:        LICENSE
Author:              Max Bolingbroke <batterseapower@hotmail.com>
Maintainer:          Artyom <yom@artyom.me>
Homepage:            http://github.com/aelve/charsetdetect-ae
Build-Type:          Simple

Extra-Source-Files:  libcharsetdetect/README.md
                     libcharsetdetect/nspr-emu/README.md

Extra-Source-Files:  libcharsetdetect/charsetdetect.h
                     libcharsetdetect/charsetdetectPriv.h
                     libcharsetdetect/nscore.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/Big5Freq.tab
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/CharDistribution.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/EUCKRFreq.tab
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/EUCTWFreq.tab
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/GB2312Freq.tab
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/JISFreq.tab
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/JpCntx.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsBig5Prober.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsCharSetProber.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsCodingStateMachine.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsEscCharsetProber.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsEUCJPProber.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsEUCKRProber.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsEUCTWProber.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsGB2312Prober.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsHebrewProber.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsLatin1Prober.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsMBCSGroupProber.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsPkgInt.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsSBCharSetProber.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsSBCSGroupProber.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsSJISProber.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsUniversalDetector.h
                     libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsUTF8Prober.h
                     libcharsetdetect/nspr-emu/prcpucfg.h
                     libcharsetdetect/nspr-emu/prcpucfg_freebsd.h
                     libcharsetdetect/nspr-emu/prcpucfg_linux.h
                     libcharsetdetect/nspr-emu/prcpucfg_mac.h
                     libcharsetdetect/nspr-emu/prcpucfg_openbsd.h
                     libcharsetdetect/nspr-emu/prcpucfg_win.h
                     libcharsetdetect/nspr-emu/prmem.h
                     libcharsetdetect/nspr-emu/prtypes.h
                     libcharsetdetect/nspr-emu/obsolete/protypes.h

Source-Repository head
  type:     git
  location: git://github.com/aelve/charsetdetect-ae.git

Library
        Exposed-Modules:        Codec.Text.Detect
        
        Build-Depends:          base >= 4.2.0.2 && < 5, bytestring >= 0.9.1.7
        
        -- Needed to ensure correct build on GHC 7.6 when imported by a
        -- library which uses Template Haskell.
        --
        -- See http://stackoverflow.com/a/26454930/615030
        -- and issue #1.
        if impl(ghc < 7.8)
            cc-options: -fno-weak
            c-sources: cbits/dso_handle.c

        -- This is a bit dodgy since g++ might link in more stuff, but will probably work in practice:
        Extra-Libraries:        stdc++
        
        Include-Dirs:           libcharsetdetect
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base
                                libcharsetdetect/nspr-emu
                                libcharsetdetect/nspr-emu/obsolete
        C-Sources:              libcharsetdetect/charsetdetect.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/CharDistribution.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/JpCntx.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/LangBulgarianModel.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/LangCyrillicModel.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/LangGreekModel.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/LangHebrewModel.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/LangHungarianModel.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/LangThaiModel.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsBig5Prober.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsCharSetProber.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsEscCharsetProber.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsEscSM.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsEUCJPProber.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsEUCKRProber.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsEUCTWProber.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsGB2312Prober.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsHebrewProber.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsLatin1Prober.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsMBCSGroupProber.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsMBCSSM.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsSBCharSetProber.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsSBCSGroupProber.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsSJISProber.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsUniversalDetector.cpp
                                libcharsetdetect/mozilla/extensions/universalchardet/src/base/nsUTF8Prober.cpp