summaryrefslogtreecommitdiff
path: root/bittorrent.cabal
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2016-08-20 02:19:53 -0400
committerjoe <joe@jerkface.net>2016-08-20 02:19:53 -0400
commit6db720421a4fbfda957e7199464f16b6f261b40a (patch)
tree512eac457fd924caaf0ff88b4b43710d553a42fd /bittorrent.cabal
parent0ab23a36da3949fb92a1a251a13854fcfb4be610 (diff)
Build fixes.
Diffstat (limited to 'bittorrent.cabal')
-rw-r--r--bittorrent.cabal24
1 files changed, 19 insertions, 5 deletions
diff --git a/bittorrent.cabal b/bittorrent.cabal
index bc062921..efc1cb0d 100644
--- a/bittorrent.cabal
+++ b/bittorrent.cabal
@@ -42,6 +42,10 @@ flag examples
42 description: Whether to build examples. 42 description: Whether to build examples.
43 default: False 43 default: False
44 44
45flag network-uri
46 description: Use network-uri package.
47 default: True
48
45library 49library
46 default-language: Haskell2010 50 default-language: Haskell2010
47 default-extensions: PatternGuards 51 default-extensions: PatternGuards
@@ -98,7 +102,6 @@ library
98 , bits-extras >= 0.1.2 102 , bits-extras >= 0.1.2
99 , convertible >= 1.0 103 , convertible >= 1.0
100 , pretty >= 1.1 104 , pretty >= 1.1
101 , prettyclass >= 1.0
102 105
103 -- Control 106 -- Control
104 , deepseq >= 1.3 107 , deepseq >= 1.3
@@ -153,7 +156,6 @@ library
153 , time >= 1.0 156 , time >= 1.0
154 157
155 -- Network 158 -- Network
156 , network >= 2.4
157 , krpc >= 0.6.1 159 , krpc >= 0.6.1
158 , http-types >= 0.8 160 , http-types >= 0.8
159 , http-client >= 0.2 161 , http-client >= 0.2
@@ -170,11 +172,19 @@ library
170 , filepath >= 1.3 172 , filepath >= 1.3
171 , mmap >= 0.5 173 , mmap >= 0.5
172 174
175 if flag(network-uri)
176 Build-depends: network >= 2.6
177 , network-uri >= 2.6
178 else
179 Build-depends: network >= 2.4 && < 2.6
180
173 ghc-options: -Wall 181 ghc-options: -Wall
174 ghc-prof-options: 182 ghc-prof-options:
175 183
176 184
177test-suite spec 185test-suite spec
186 if !flag(testing)
187 buildable: False
178 default-language: Haskell2010 188 default-language: Haskell2010
179 default-extensions: OverloadedStrings 189 default-extensions: OverloadedStrings
180 type: exitcode-stdio-1.0 190 type: exitcode-stdio-1.0
@@ -236,7 +246,6 @@ test-suite spec
236 -- * Network 246 -- * Network
237 , http-types 247 , http-types
238 , iproute 248 , iproute
239 , network
240 249
241 -- * System 250 -- * System
242 , optparse-applicative >= 0.8 251 , optparse-applicative >= 0.8
@@ -254,6 +263,11 @@ test-suite spec
254 , krpc >= 0.6.1 263 , krpc >= 0.6.1
255 , bittorrent 264 , bittorrent
256 , temporary 265 , temporary
266 if flag(network-uri)
267 Build-depends: network >= 2.6
268 , network-uri >= 2.6
269 else
270 Build-depends: network >= 2.4 && < 2.6
257 ghc-options: -Wall -fno-warn-orphans 271 ghc-options: -Wall -fno-warn-orphans
258 272
259 273
@@ -285,7 +299,7 @@ executable mktorrent
285 build-depends: base == 4.* 299 build-depends: base == 4.*
286 , bytestring 300 , bytestring
287 , text 301 , text
288 , prettyclass 302 , pretty
289 303
290 , mtl 304 , mtl
291 , conduit 305 , conduit
@@ -311,6 +325,6 @@ executable client
311 build-depends: base == 4.* 325 build-depends: base == 4.*
312 , bittorrent 326 , bittorrent
313 , mtl 327 , mtl
314 , prettyclass 328 , pretty
315 , data-default 329 , data-default
316 , optparse-applicative 330 , optparse-applicative