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