split more
[diohsc.git] / diohsc.cabal
blobc2c7bbfcb6d97ab179daae9ae5358090db1c193c
1 cabal-version:      1.18
2 name:               diohsc
3 version:            0.1.13
4 license:            GPL-3
5 license-file:       COPYING
6 maintainer:         mbays@sdf.org
7 author:             Martin Bays
8 homepage:           https://mbays.sdf.org/diohsc
9 synopsis:           Gemini client
10 description:
11     Line-based command-oriented interactive client for the gemini protocol.
13 category:           Browser
14 build-type:         Simple
15 extra-doc-files:
16     README.md
17     THANKS
18     diohscrc.sample
19     Makefile
20     diohsc.1.md
21     CHANGELOG.md
23 source-repository head
24     type:     git
25     location: https://repo.or.cz/diohsc.git
27 flag libiconv
28     description:
29         On windows: use libiconv for charset conversion
30         (iconv is always used on POSIX systems, with no need for this flag)
32     default:     False
33     manual:      True
35 flag magic
36     description: Use libmagic to determine mimetypes of local files
37     default:     False
38     manual:      True
40 flag irilinks
41     description:
42         Allow IRIs in gemtext links (preparing for likely spec change).
43         Punycoding is not currently supported.
45     default:     False
46     manual:      True
48 executable diohsc
49     main-is:          diohsc.hs
50     other-modules:
51         ActiveIdentities
52         Alias
53         ANSIColour
54         BoundedBSChan
55         BStack
56         ClientCert
57         ClientOptions 
58         ClientSessionManager
59         ClientState 
60         Command
61         CommandLine
62         Fingerprint
63         History 
64         GeminiProtocol
65         Identity
66         LineClient
67         Marks
68         MetaString
69         Mundanities
70         Opts
71         Pager
72         Print
73         Prompt
74         Queue 
75         Request
76         ResolveTarget
77         RunExternal
78         ServiceCerts
79         Slurp
80         Target
81         TextGemini
82         URI
83         Util
84         WCWidth
85         Version
87     default-language: Haskell2010
88     ghc-options:      -threaded -Wall
89     build-depends:
90         base >=4.3 && <5,
91         asn1-encoding <0.10,
92         asn1-types >=0.3.4 && <0.4,
93         bytestring >=0.10.4.0 && <0.12,
94         containers >=0.5.5.1 && <0.7,
95         cryptonite >=0.26 && <0.31,
96         data-default-class >=0.1.2.0 && <0.2,
97         data-hash >=0.2.0.1 && <0.3,
98         directory >=1.2.1.0 && <1.4,
99         drunken-bishop >=0.1.0.0 && <0.2,
100         exceptions >=0.10.4 && <0.11,
101         filepath >=1.3.0.2 && <1.5,
102         haskeline ==0.8.*,
103         hourglass >=0.2.12 && <0.3,
104         mime >=0.4.0.2 && <0.5,
105         mtl >=2.1.3.1 && <2.4,
106         memory >=0.14 && <0.19,
107         network >=2.4.2.3 && <3.2,
108         network-simple >=0.4.3 && <0.5,
109         network-uri >=2.6.3.0 && <2.8,
110         parsec >=3.1.5 && <3.2,
111         pem >=0.2.4 && <0.3,
112         process >=1.2.0.0 && <1.7,
113         regex-compat >=0.95.1 && <0.96,
114         rset < 1.1,
115         safe >=0.3.19 && <0.4,
116         temporary ==1.3.*,
117         terminal-size >=0.3.2.1 && <0.4,
118         text >=1.1.0.0 && <2.1,
119         tls >=1.5.4 && <1.7,
120         transformers >=0.3.0.0 && <0.7,
121         x509 >=1.7.5 && <1.8,
122         x509-store >=1.6.7 && <1.7,
123         x509-validation >=1.6.11 && <1.7
125     if os(windows)
126         cpp-options: -DWINDOWS
128     else
129         build-depends: unix >=2.7.0.1 && <2.8
131     if flag(magic)
132         cpp-options:   -DMAGIC
133         build-depends: magic <1.2
135     if flag(irilinks)
136         cpp-options: -DIRILinks
138     if (!os(windows) || flag(libiconv))
139         cpp-options:   -DICONV
140         build-depends: iconv >=0.4.1.3 && <0.5