summaryrefslogtreecommitdiff
path: root/charsetdetect.cabal
blob: f1a7defd9dfdfdf389dd1d30f391052e4b28b013 (plain)
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
Name:                charsetdetect
Version:             1.0
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.
License:             LGPL
License-File:        LICENSE
Author:              Max Bolingbroke <batterseapower@hotmail.com>
Maintainer:          Max Bolingbroke <batterseapower@hotmail.com>
Homepage:            http://www.github.com/batterseapower/charsetdetect
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/batterseapower/charsetdetect.git

Library
        Exposed-Modules:        Codec.Text.Detect
        
        Build-Depends:          base >= 4.2.0.2 && < 5, bytestring >= 0.9.1.7 && < 0.10
        
        -- We really need to ensure that the *final program* links with g++
        -- It is useless to specify that the library links with it..
        --Ghc-Options:            -pgml g++
        
        -- 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