summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2014-12-18 14:22:43 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2014-12-18 14:26:10 -0400
commitac2a9bb2705bac6eb094bbe33aa748ce31ca64d0 (patch)
tree56025a4428e80b1cbfff1b7dca0b5bc764b07031 /git-annex.cabal
parent1ee12c6c3cd3e0d9228eaf302621a2551e9a7194 (diff)
When possible, build with the haskell torrent library for parsing torrent files.
Diffstat (limited to 'git-annex.cabal')
-rw-r--r--git-annex.cabal7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index 568374b4b..b8bca22cb 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -93,6 +93,9 @@ Flag CryptoHash
Flag DesktopNotify
Description: Enable desktop environment notifications
+Flag TorrentParser
+ Description: Use haskell torrent library to parse torrent files
+
Flag EKG
Description: Enable use of EKG to monitor git-annex as it runs (at http://localhost:4242/)
Default: False
@@ -234,6 +237,10 @@ Executable git-annex
Build-Depends: aeson
CPP-Options: -DWITH_TAHOE
+ if flag(TorrentParser)
+ Build-Depends: torrent (>= 10000.0.0)
+ CPP-Options: -DWITH_TORRENTPARSER
+
if flag(EKG)
Build-Depends: ekg
GHC-Options: -with-rtsopts=-T