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