Bump version
[darcs-mirror-arbtt.git] / arbtt.cabal
1 name:               arbtt
2 version:            0.9.0.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     The documentation, which includes the changelog, can also be found at
19     <http://arbtt.nomeata.de/doc/users_guide/>.
20     .
21     WARNING: The log file might contain very sensitive private data. Make sure
22     you understand the consequences of a full-time logger and be careful with this
23     data.
24 homepage:           http://arbtt.nomeata.de/
25 bug-reports:        https://bitbucket.org/nomeata/arbtt/issues
26
27 extra-source-files:
28     categorize.cfg, arbtt-capture.desktop, README.md,
29     doc/arbtt.xml, doc/fptools.css, doc/Makefile,
30     setup.iss, modpath.iss,
31     tests/*.log, tests/*.out, tests/*.in, tests/*.cfg
32
33 executable arbtt-capture
34     main-is:            capture-main.hs
35     hs-source-dirs:     src
36     build-depends:
37         base == 4.5.* || == 4.6.* || == 4.7.* || == 4.8.*,
38         filepath, directory, transformers, time >= 1.4, utf8-string,
39         aeson == 0.6.* || == 0.7.* || == 0.8.*,
40         array == 0.4.* || == 0.5.*,
41         binary >= 0.5,
42         bytestring, deepseq, strict, old-locale
43     other-modules:
44         Data
45         Data.MyText
46         Data.Binary.StringRef
47         CommonStartup
48         Capture
49         TimeLog
50         UpgradeLog1
51         LeftFold
52
53     ghc-options: -rtsopts
54
55     if os(windows)
56         extra-libraries: psapi
57         cpp-options:    -DWIN32
58         ghc-options:    -optl-mwindows
59         other-modules:
60             Capture.Win32
61             Graphics.Win32.Window.Extra
62             System.Win32.Mutex
63         build-depends:
64              Win32
65     else
66         extra-libraries: Xss
67         other-modules:
68             Capture.X11
69             Graphics.X11.XScreenSaver
70             System.Locale.SetLocale
71         build-depends:
72             X11 > 1.4.4, unix
73     default-language: Haskell98
74
75 executable arbtt-stats
76     main-is:            stats-main.hs
77     hs-source-dirs:     src
78     build-depends:
79         base == 4.5.* || == 4.6.* || == 4.7.* || == 4.8.*,
80         parsec == 3.*,
81         containers == 0.5.*,
82         pcre-light, old-locale,
83         binary >= 0.5,
84         deepseq, bytestring, utf8-string, time >= 1.4, strict,
85         transformers, unix, directory, filepath,
86         aeson == 0.6.* || == 0.7.* || == 0.8.*,
87         array == 0.4.* || == 0.5.*,
88         terminal-progress-bar, bytestring-progress
89     other-modules:
90         Data
91         Data.MyText
92         Data.Binary.StringRef
93         CommonStartup
94         Categorize
95         TimeLog
96         Stats
97         Text.Parsec.ExprFail
98         Text.ParserCombinators.Parsec.ExprFail
99         Text.Regex.PCRE.Light.Text
100         TermSize
101     ghc-options: -rtsopts
102     if os(windows)
103         cpp-options:    -DWIN32
104     else
105         other-modules:
106             System.Locale.SetLocale
107     default-language: Haskell98
108
109 executable arbtt-dump
110     main-is:            dump-main.hs
111     hs-source-dirs:     src
112     build-depends:
113         base == 4.5.* || == 4.6.* || == 4.7.* || == 4.8.*,
114         parsec == 3.*,
115         containers == 0.5.*,
116         aeson == 0.6.* || == 0.7.* || == 0.8.*,
117         array == 0.4.* || == 0.5.*,
118         binary >= 0.5,
119         deepseq, bytestring, utf8-string, time >= 1.4, strict,
120         transformers, unix, directory, filepath,
121         old-locale
122     other-modules:
123         Data
124         Data.MyText
125         Data.Binary.StringRef
126         CommonStartup
127         TimeLog
128         DumpFormat
129         Data.List.TakeR
130     ghc-options: -rtsopts
131     if os(windows)
132         cpp-options:    -DWIN32
133     else
134         other-modules:
135             System.Locale.SetLocale
136     default-language: Haskell98
137
138 executable arbtt-import
139     main-is:            import-main.hs
140     hs-source-dirs:     src
141     build-depends:
142         base == 4.5.* || == 4.6.* || == 4.7.* || == 4.8.*,
143         parsec == 3.*,
144         containers == 0.5.*,
145         binary >= 0.5,
146         deepseq, bytestring, utf8-string, time >= 1.4, strict,
147         transformers, unix, directory, filepath
148     other-modules:
149         Data
150         Data.MyText
151         Data.Binary.StringRef
152         CommonStartup
153         TimeLog
154     ghc-options: -rtsopts
155     if os(windows)
156         cpp-options:    -DWIN32
157     else
158         other-modules:
159             System.Locale.SetLocale
160     default-language: Haskell98
161
162 executable arbtt-recover
163     main-is:            recover-main.hs
164     hs-source-dirs:     src
165     build-depends:
166         base == 4.5.* || == 4.6.* || == 4.7.* || == 4.8.*,
167         parsec == 3.*, containers == 0.5.*,
168         binary >= 0.5,
169         deepseq, bytestring, utf8-string, time >= 1.4, strict,
170         transformers, unix, directory, filepath
171     other-modules:
172         Data
173         Data.MyText
174         Data.Binary.StringRef
175         CommonStartup
176         TimeLog
177     ghc-options: -rtsopts
178     if os(windows)
179         cpp-options:    -DWIN32
180     else
181         other-modules:
182             System.Locale.SetLocale
183     default-language: Haskell98
184
185 test-suite test
186   Type:
187     exitcode-stdio-1.0
188   Hs-source-dirs:
189     tests
190     src
191   Main-is:
192     test.hs
193   Build-depends:
194       base == 4.5.* || == 4.6.* || == 4.7.* || == 4.8.*
195       , tasty >= 0.7 && < 0.11
196       , tasty-golden >= 2.2.0.2  && <= 2.4
197       , tasty-hunit >= 0.2  && < 0.11
198       , HUnit == 1.2.*
199       , process-extras == 0.2.* || == 0.3.*
200       , deepseq
201       , binary >= 0.5
202       , bytestring
203       , utf8-string
204       , time
205       , unix
206       , directory
207       , parsec == 3.*
208       , containers == 0.5.*
209       , pcre-light, old-locale
210       , transformers
211   default-language: Haskell98
212
213 source-repository head
214     type:     darcs
215     location: http://darcs.nomeata.de/arbtt