Do not use getLazyByteString, semantics change in binary-0.7
[darcs-mirror-arbtt.git] / arbtt.cabal
1 name:               arbtt
2 version:            0.7.1
3 license:            GPL
4 license-file:       LICENSE
5 category:           Desktop
6 cabal-version:      >= 1.10
7 build-type:         Simple
8 author:             Joachim Breitner <mail@joachim-breitner.de>
9 maintainer:         Joachim Breitner <mail@joachim-breitner.de>
10 copyright:          Joachim Breitner 2009-2013
11 synopsis:           Automatic Rule-Based Time Tracker
12 description:
13     arbtt is a background daemon that stores which windows are open, which one
14     has the focus and how long since your last action (and possbly more sources
15     later), and stores this. It is also a program that will, based on
16     expressive rules you specify, derive what you were doing, and what for.
17     .
18     WARNING: The log file might contain very sensitive private data. Make sure
19     you understand the consequences of a full-time logger and be careful with this
20     data.
21 homepage:           http://arbtt.nomeata.de/
22
23 extra-source-files:
24     categorize.cfg, arbtt-capture.desktop, README.md,
25     doc/arbtt.xml, doc/fptools.css, doc/Makefile,
26     setup.iss, modpath.iss
27
28 executable arbtt-capture
29     main-is:            capture-main.hs
30     hs-source-dirs:     src
31     build-depends:
32         base == 4.5.* || == 4.6.*,
33         filepath, directory, transformers, time >= 1.4, utf8-string,
34         aeson == 0.6.*, array == 0.4.*,
35         binary >= 0.5.*,
36         bytestring, deepseq, strict, old-locale
37     other-modules:
38         Data
39         Data.MyText
40         Data.Binary.StringRef
41         CommonStartup
42         Capture
43         TimeLog
44         UpgradeLog1
45         LeftFold
46     
47     ghc-options: -rtsopts
48
49     if os(windows) 
50         extra-libraries: psapi
51         cpp-options:    -DWIN32
52         ghc-options:    -optl-mwindows
53         other-modules:
54             Capture.Win32
55             Graphics.Win32.Window.Extra
56             System.Win32.Mutex
57         build-depends:
58              Win32
59     else
60         extra-libraries: Xss
61         other-modules:
62             Capture.X11
63             Graphics.X11.XScreenSaver
64             System.Locale.SetLocale
65         build-depends:
66             X11 > 1.4.4, unix
67     default-language: Haskell98
68
69 executable arbtt-stats
70     main-is:            stats-main.hs
71     hs-source-dirs:     src
72     build-depends:
73         base == 4.5.* || == 4.6.*,
74         parsec == 3.*, containers == 0.5.*, pcre-light, old-locale,
75         binary >= 0.5.*,
76         deepseq, bytestring, utf8-string, time >= 1.4, strict,
77         transformers, unix, directory, filepath,
78         aeson == 0.6.*, array == 0.4.*,
79         terminal-progress-bar, bytestring-progress
80     other-modules:
81         Data
82         Data.MyText
83         Data.Binary.StringRef
84         CommonStartup
85         Categorize
86         TimeLog
87         Stats
88         Text.Parsec.ExprFail
89         Text.ParserCombinators.Parsec.ExprFail
90         Text.Regex.PCRE.Light.Text
91         TermSize
92     ghc-options: -rtsopts
93     if os(windows) 
94         cpp-options:    -DWIN32
95     else
96         other-modules:
97             System.Locale.SetLocale
98     default-language: Haskell98
99
100 executable arbtt-dump
101     main-is:            dump-main.hs
102     hs-source-dirs:     src
103     build-depends:
104         base == 4.5.* || == 4.6.*,
105         parsec == 3.*, containers == 0.5.*,
106         aeson == 0.6.*, array == 0.4.*,
107         binary >= 0.5.*,
108         deepseq, bytestring, utf8-string, time >= 1.4, strict,
109         transformers, unix, directory, filepath,
110         old-locale
111     other-modules:
112         Data
113         Data.MyText
114         Data.Binary.StringRef
115         CommonStartup
116         TimeLog
117         DumpFormat
118         Data.List.TakeR
119     ghc-options: -rtsopts
120     if os(windows) 
121         cpp-options:    -DWIN32
122     else
123         other-modules:
124             System.Locale.SetLocale
125     default-language: Haskell98
126
127 executable arbtt-import
128     main-is:            import-main.hs
129     hs-source-dirs:     src
130     build-depends:
131         base == 4.5.* || == 4.6.*,
132         parsec == 3.*, containers == 0.5.*,
133         binary >= 0.5.*,
134         deepseq, bytestring, utf8-string, time >= 1.4, strict,
135         transformers, unix, directory, filepath
136     other-modules:
137         Data
138         Data.MyText
139         Data.Binary.StringRef
140         CommonStartup
141         TimeLog
142     ghc-options: -rtsopts
143     if os(windows) 
144         cpp-options:    -DWIN32
145     else
146         other-modules:
147             System.Locale.SetLocale
148     default-language: Haskell98
149
150 executable arbtt-recover
151     main-is:            recover-main.hs
152     hs-source-dirs:     src
153     build-depends:
154         base == 4.5.* || == 4.6.*,
155         parsec == 3.*, containers == 0.5.*,
156         binary >= 0.5.*,
157         deepseq, bytestring, utf8-string, time >= 1.4, strict,
158         transformers, unix, directory, filepath
159     other-modules:
160         Data
161         Data.MyText
162         Data.Binary.StringRef
163         CommonStartup
164         TimeLog
165     ghc-options: -rtsopts
166     if os(windows) 
167         cpp-options:    -DWIN32
168     else
169         other-modules:
170             System.Locale.SetLocale
171     default-language: Haskell98
172
173 test-suite test
174   Type:
175     exitcode-stdio-1.0
176   Hs-source-dirs:
177     tests
178     src
179   Main-is:
180     test.hs
181   Build-depends:
182       base >= 4 && < 5
183       , tasty == 0.7.*
184       , tasty-golden == 2.2.*
185       , tasty-hunit == 0.2.*
186       , HUnit == 1.2.*
187       , process-extras == 0.2.*
188       , deepseq
189       , binary >= 0.5.*
190       , bytestring
191       , utf8-string
192       , time
193       , unix
194       , directory
195       , parsec == 3.*, containers == 0.5.*, pcre-light, old-locale
196       , transformers
197   default-language: Haskell98
198
199 source-repository head
200     type:     darcs
201     location: http://darcs.nomeata.de/arbtt