From 9504781e4b6f8e44b4627b5c8f0a2a4f971aa64d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 13 Sep 2014 12:02:02 -0400 Subject: [PATCH] deal with network-uri split, in a backwards-compatable way --- git-annex.cabal | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/git-annex.cabal b/git-annex.cabal index 8a9ab058ad..8471a6b5e4 100644 --- a/git-annex.cabal +++ b/git-annex.cabal @@ -92,10 +92,14 @@ Flag EKG Description: Enable use of EKG to monitor git-annex as it runs (at http://localhost:4242/) Default: False +Flag network-uri + Description: Get Network.URI from the network-uri package + Default: True + Executable git-annex Main-Is: git-annex.hs Build-Depends: MissingH, hslogger, directory, filepath, - containers, utf8-string, network (>= 2.0), mtl (>= 2), + containers, utf8-string, mtl (>= 2), bytestring, old-locale, time, dataenc, SHA, process, json, base (>= 4.5 && < 4.9), monad-control, exceptions (>= 0.6), transformers, IfElse, text, QuickCheck >= 2.1, bloomfilter, edit-distance, process, @@ -107,6 +111,11 @@ Executable git-annex -- Some things don't work with the non-threaded RTS. GHC-Options: -threaded + if flag(network-uri) + Build-Depends: network-uri (>= 2.6), network (>= 2.6) + else + Build-Depends: network (< 2.6), network (>= 2.0) + if flag(Production) GHC-Options: -O2