diff options
author | joe <joe@jerkface.net> | 2017-01-18 21:24:38 -0500 |
---|---|---|
committer | joe <joe@jerkface.net> | 2017-01-18 21:24:38 -0500 |
commit | 1d7dd944e0a13d3f09b65f7629d1f96098ea7974 (patch) | |
tree | 6c02f4d9d6e95f9a2d596c1854d5938daeeeddcc /krpc.cabal | |
parent | 3c9e37d4f349ba2b4395cb10b5a3671decf89d68 (diff) | |
parent | a8498921ddf37e864968a3865e3e254352b5d285 (diff) |
Merge branch 'krpc' into dht-only
Diffstat (limited to 'krpc.cabal')
-rw-r--r-- | krpc.cabal | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/krpc.cabal b/krpc.cabal new file mode 100644 index 00000000..452f1132 --- /dev/null +++ b/krpc.cabal | |||
@@ -0,0 +1,109 @@ | |||
1 | name: krpc | ||
2 | version: 0.6.1.0 | ||
3 | license: BSD3 | ||
4 | license-file: LICENSE | ||
5 | author: Sam Truzjan | ||
6 | maintainer: Sam Truzjan <pxqr.sta@gmail.com> | ||
7 | copyright: (c) 2013-2014 Sam Truzjan | ||
8 | category: Network | ||
9 | build-type: Simple | ||
10 | cabal-version: >= 1.10 | ||
11 | tested-with: GHC == 7.4.1 | ||
12 | , GHC == 7.6.3 | ||
13 | homepage: https://github.com/cobit/krpc | ||
14 | bug-reports: https://github.com/cobit/krpc/issues | ||
15 | synopsis: KRPC protocol implementation | ||
16 | description: | ||
17 | |||
18 | The KRPC protocol is a simple RPC mechanism consisting of bencoded | ||
19 | dictionaries sent over UDP. | ||
20 | . | ||
21 | <http://bittorrent.org/beps/bep_0005.html#krpc-protocol> | ||
22 | |||
23 | extra-source-files: README.md | ||
24 | , ChangeLog | ||
25 | |||
26 | source-repository head | ||
27 | type: git | ||
28 | location: git://github.com/cobit/krpc.git | ||
29 | branch: master | ||
30 | |||
31 | source-repository this | ||
32 | type: git | ||
33 | location: git://github.com/cobit/krpc.git | ||
34 | branch: master | ||
35 | tag: v0.6.1.0 | ||
36 | |||
37 | flag builder | ||
38 | description: Use older bytestring package and bytestring-builder. | ||
39 | default: False | ||
40 | |||
41 | flag aeson | ||
42 | description: Use aeson for pretty-printing bencoded data. | ||
43 | default: True | ||
44 | |||
45 | library | ||
46 | default-language: Haskell2010 | ||
47 | default-extensions: PatternGuards | ||
48 | , RecordWildCards | ||
49 | hs-source-dirs: src | ||
50 | exposed-modules: Network.KRPC | ||
51 | Network.KRPC.Message | ||
52 | Network.KRPC.Method | ||
53 | Network.KRPC.Manager | ||
54 | Data.BEncode.Pretty | ||
55 | build-depends: base == 4.* | ||
56 | , text >= 0.11 | ||
57 | , data-default-class | ||
58 | , lifted-base >= 0.1.1 | ||
59 | , transformers >= 0.2 | ||
60 | , mtl | ||
61 | , monad-control >= 0.3 | ||
62 | , monad-logger >= 0.3 | ||
63 | , bencoding >= 0.4.3 | ||
64 | , network >= 2.3 | ||
65 | , cereal | ||
66 | , containers | ||
67 | if flag(aeson) | ||
68 | build-depends: aeson, aeson-pretty, unordered-containers, vector | ||
69 | ghc-options: -DBENCODE_AESON | ||
70 | if flag(builder) | ||
71 | build-depends: bytestring >= 0.9, bytestring-builder | ||
72 | else | ||
73 | build-depends: bytestring >= 0.10 | ||
74 | |||
75 | if impl(ghc < 7.6) | ||
76 | build-depends: ghc-prim | ||
77 | ghc-options: -Wall | ||
78 | |||
79 | test-suite spec | ||
80 | type: exitcode-stdio-1.0 | ||
81 | default-language: Haskell2010 | ||
82 | hs-source-dirs: tests | ||
83 | main-is: Spec.hs | ||
84 | other-modules: Network.KRPCSpec | ||
85 | Network.KRPC.MethodSpec | ||
86 | Network.KRPC.MessageSpec | ||
87 | build-depends: base == 4.* | ||
88 | , bytestring | ||
89 | , network | ||
90 | , mtl | ||
91 | , monad-logger | ||
92 | , hspec | ||
93 | , QuickCheck | ||
94 | , quickcheck-instances | ||
95 | , bencoding | ||
96 | , krpc | ||
97 | |||
98 | benchmark bench | ||
99 | type: exitcode-stdio-1.0 | ||
100 | default-language: Haskell2010 | ||
101 | hs-source-dirs: bench | ||
102 | main-is: Main.hs | ||
103 | build-depends: base == 4.* | ||
104 | , bytestring | ||
105 | , mtl | ||
106 | , monad-logger | ||
107 | , criterion | ||
108 | , krpc | ||
109 | ghc-options: -O2 -fforce-recomp | ||