use regexps for "^patt" targets
[diohsc.git] / diohsc.cabal
blob81abbaee300d07c5244b651f4c738fe4b95055fa
1 name:                diohsc
2 version:             0.1
3 synopsis:            Gemini client
4 homepage:            https://mbays.sdf.org/diohsc
5 category:            Browser
6 license:             GPL-3
7 license-file:        COPYING
8 author:              Martin Bays
9 maintainer:          mbays@sdf.org
10 build-type:          Simple
11 cabal-version:       >=1.10
12 extra-source-files:  README.md, THANKS, diohscrc.sample, other/curlproxy/README.gmi, other/curlproxy/*.sh
14 description:
15   Line-based command-oriented interactive client for the gemini protocol.
17 source-repository head
18     type: git
19     location: https://repo.or.cz/diohsc.git
21 Flag Libiconv
22     Description: On windows: use libiconv for charset conversion
23         (iconv is always used on POSIX systems, with no need for this flag)
24     Default: False
25     Manual: True
27 Flag Magic
28     Description: Use libmagic to determine mimetypes of local files
29     Default: False
30     -- with `Default: True`, `cabal install` fails if libmagic is not installed
31     Manual: True
33 executable diohsc
34   main-is: diohsc.hs
35   build-depends:
36         base >=4.3, base < 5
37       , array
38       , asn1-types
39       , bytestring
40       , containers
41       , cryptonite
42       , data-default-class
43       , data-hash
44       , directory >= 1.3
45       , drunken-bishop
46       , exceptions
47       , filepath
48       , haskeline >= 0.8
49       , hourglass
50       , mime
51       , mtl
52       , network
53       , network-uri
54       , parsec
55       , pem
56       , process
57       , regex-compat
58       , safe
59       , temporary
60       , terminal-size
61       , text
62       , tls
63       , transformers
64       , x509
65       , x509-store
66       , x509-validation
67   other-modules:
68         ActiveIdentities
69       , Alias
70       , ANSIColour
71       , BoundedBSChan
72       , BStack
73       , ClientCert
74       , ClientSessionManager
75       , Command
76       , CommandLine
77       , Fingerprint
78       , GeminiProtocol
79       , Identity
80       , Marks
81       , MetaString
82       , Mundanities
83       , Opts
84       , Pager
85       , Prompt
86       , Request
87       , RunExternal
88       , ServiceCerts
89       , Slurp
90       , TextGemini
91       , URI
92       , Util
93       , Version
94   default-language: Haskell2010
95   ghc-options: -threaded
96   if os(windows)
97     CPP-Options: -DWINDOWS
98   else
99     build-depends:
100       unix
101   if flag(Magic)
102     CPP-Options: -DMAGIC
103     build-depends:
104       magic
105   if ! os(windows) || flag(Libiconv)
106     CPP-Options: -DICONV
107     build-depends:
108       iconv