summaryrefslogtreecommitdiff
path: root/charsetdetect.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'charsetdetect.cabal')
-rw-r--r--charsetdetect.cabal104
1 files changed, 104 insertions, 0 deletions
diff --git a/charsetdetect.cabal b/charsetdetect.cabal
new file mode 100644
index 0000000..f1a7def
--- /dev/null
+++ b/charsetdetect.cabal
@@ -0,0 +1,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