From ac2a9bb2705bac6eb094bbe33aa748ce31ca64d0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 18 Dec 2014 14:22:43 -0400 Subject: When possible, build with the haskell torrent library for parsing torrent files. --- git-annex.cabal | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'git-annex.cabal') 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 -- cgit v1.2.3