File: charsetdetect-ae.cabal

package info (click to toggle)
haskell-charsetdetect-ae 1.1.0.4-7.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 920 kB
  • sloc: cpp: 5,971; haskell: 45; makefile: 4; ansic: 1
file content (124 lines) | stat: -rw-r--r-- 8,428 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
Name:                charsetdetect-ae
Version:             1.1.0.4
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:
        if os(windows)
          if arch(x86_64)
            extra-libraries:    stdc++-6 gcc_s_seh-1
          else
            extra-libraries:    stdc++-6 gcc_s_dw2-1
        else
          if os(darwin)
            extra-libraries: c++
          else
            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