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