summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'git-annex.cabal')
-rw-r--r--git-annex.cabal39
1 files changed, 33 insertions, 6 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index 15ac1e3d5..ec96bdc32 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -1,5 +1,5 @@
Name: git-annex
-Version: 3.20120721
+Version: 3.20120722
Cabal-Version: >= 1.8
License: GPL
Maintainer: Joey Hess <joey@kitenet.net>
@@ -31,20 +31,28 @@ Flag S3
Flag Inotify
Description: Enable inotify support
+Flag Dbus
+ Description: Enable dbus support
+
Flag Assistant
Description: Enable git-annex assistant and watch command
+Flag Webapp
+ Description: Enable git-annex webapp
+
Executable git-annex
Main-Is: git-annex.hs
Build-Depends: MissingH, hslogger, directory, filepath,
unix, containers, utf8-string, network, mtl, bytestring, old-locale, time,
pcre-light, extensible-exceptions, dataenc, SHA, process, json, HTTP,
base == 4.5.*, monad-control, transformers-base, lifted-base,
- IfElse, text, QuickCheck >= 2.1, bloomfilter, edit-distance
- -- Need to list this because it's generated from a .hsc file.
- Other-Modules: Utility.Touch
- C-Sources: Utility/libdiskfree.c
+ IfElse, text, QuickCheck >= 2.1, bloomfilter, edit-distance, process
+ -- Need to list these because they're generated from .hsc files.
+ Other-Modules: Utility.Touch Utility.Mounts
+ Include-Dirs: Utility
+ C-Sources: Utility/libdiskfree.c Utility/libmounts.c
Extensions: CPP
+ GHC-Options: -threaded
if flag(S3)
Build-Depends: hS3
@@ -57,6 +65,23 @@ Executable git-annex
if os(linux) && flag(Inotify)
Build-Depends: hinotify
CPP-Options: -DWITH_INOTIFY
+ else
+ if (! os(windows))
+ CPP-Options: -DWITH_KQUEUE
+
+ if os(linux) && flag(Dbus)
+ Build-Depends: dbus
+ CPP-Options: -DWITH_DBUS
+
+ if flag(Webapp)
+ Build-Depends: yesod, yesod-static, yesod-default, case-insensitive,
+ http-types, transformers, wai, wai-logger, warp, blaze-builder,
+ blaze-html, crypto-api, hamlet, clientsession,
+ template-haskell
+ CPP-Options: -DWITH_WEBAPP
+
+ if os(darwin)
+ CPP-Options: -DOSX
Test-Suite test
Type: exitcode-stdio-1.0
@@ -65,10 +90,12 @@ Test-Suite test
unix, containers, utf8-string, network, mtl, bytestring, old-locale, time,
pcre-light, extensible-exceptions, dataenc, SHA, process, json, HTTP,
base == 4.5.*, monad-control, transformers-base, lifted-base,
- IfElse, text, QuickCheck >= 2.1, bloomfilter, edit-distance
+ IfElse, text, QuickCheck >= 2.1, bloomfilter, edit-distance, process
Other-Modules: Utility.Touch
+ Include-Dirs: Utility
C-Sources: Utility/libdiskfree.c
Extensions: CPP
+ GHC-Options: -threaded
source-repository head
type: git