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