summaryrefslogtreecommitdiff
path: root/hackport.cabal
blob: 0ab195f9107763085cb7a374b3468002faf32446 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
Name:           hackport
Version:        0.6
License:        GPL
License-file:   LICENSE
Author:         Henning G√ľnther, Duncan Coutts, Lennart Kolmodin
Maintainer:     Gentoo Haskell team <haskell@gentoo.org>
Category:       Distribution
Synopsis:       Hackage and Portage integration tool
Description:    A command line tool to manage an overlay of Gentoo ebuilds
                that are generated from a hackage repo of Cabal packages.
Build-Type:     Simple
Cabal-Version:  >=1.10

source-repository head
  type: git
  location: git://github.com/gentoo-haskell/hackport.git

Executable    hackport
  ghc-options: -Wall
  ghc-prof-options: -caf-all -auto-all -rtsopts
  Main-Is:    Main.hs
  Default-Language: Haskell98
  Hs-Source-Dirs:
      .,
      cabal,
      cabal/Cabal,
      cabal/cabal-install,
      hackage-security/hackage-security/src
  Build-Depends:
    array,
    base >= 2.0 && < 5,
    deepseq >= 1.3,
    extensible-exceptions,
    filepath,
    HTTP >= 4000.0.3,
    MissingH,
    network >= 2.6, network-uri >= 2.6,
    parsec,
    pretty,
    old-locale,
    regex-compat,
    split,
    tar >= 0.5,
    time,
    zlib,
    xml >= 1.3.7,
    -- cabal depends
    binary,
    random,
    stm,
    unix,
    -- cabal-install depends
    async,
    --  hackage-security depends
    base16-bytestring,
    base64-bytestring,
    cryptohash,
    ed25519,
    ghc-prim,
    hashable,
    mtl,
    template-haskell,
    transformers

  default-extensions:
    -- hackage-security
    DefaultSignatures,
    DeriveDataTypeable,
    DoAndIfThenElse,
    EmptyDataDecls,
    ExistentialQuantification,
    FlexibleContexts,
    FlexibleInstances,
    GADTs,
    GeneralizedNewtypeDeriving,
    KindSignatures,
    MultiParamTypeClasses,
    PatternGuards,
    RankNTypes,
    RecordWildCards,
    ScopedTypeVariables,
    StandaloneDeriving,
    TypeFamilies,
    TypeOperators,
    ViewPatterns
  other-extensions:
    DeriveDataTypeable,
    PatternGuards,
    -- extensions due to bundled cabal-install
    CPP,
    ForeignFunctionInterface,
    --  hackage-security extensions
    DefaultSignatures,
    GeneralizedNewtypeDeriving,
    GADTs,
    KindSignatures,
    RankNTypes,
    RecordWildCards,
    TypeOperators

  Build-Depends:
    base >= 3 && < 5,
    directory,
    containers,
    process,
    old-time,
    bytestring

  other-modules:
    AnsiColor
    Cabal2Ebuild
    Error
    Overlays
    Paths_hackport
    Portage.Version
    Portage.Dependency
    Portage.EBuild
    Portage.EBuild.CabalFeature
    Portage.EBuild.Render
    Portage.GHCCore
    Portage.PackageId
    Portage.Overlay
    Portage.Resolve
    Portage.Host
    Portage.Tables
    Merge.Dependencies
    Status
    Merge
    Util
    -- hsc files
    Hackage.Security.Util.FileLock

Test-Suite test-resolve-category
  ghc-options: -Wall
  Type:                 exitcode-stdio-1.0
  Default-Language:     Haskell98
  Main-Is:              tests/resolveCat.hs
  Hs-Source-Dirs:       ., cabal, cabal/Cabal, cabal/cabal-install, tests
  Build-Depends:        array,
                        base >= 3 && < 5,
                        binary,
                        deepseq >= 1.3,
                        bytestring,
                        containers,
                        directory,
                        extensible-exceptions,
                        filepath,
                        HUnit,
                        parsec,
                        pretty,
                        process,
                        split,
                        time,
                        unix,
                        xml

Test-Suite test-print-deps
  ghc-options: -Wall
  Type:                 exitcode-stdio-1.0
  Default-Language:     Haskell98
  Main-Is:              tests/print_deps.hs
  Hs-Source-Dirs:       ., cabal, cabal/Cabal, cabal/cabal-install, tests
  Build-Depends:        array,
                        base >= 3 && < 5,
                        binary,
                        deepseq >= 1.3,
                        bytestring,
                        containers,
                        directory,
                        extensible-exceptions,
                        filepath,
                        HUnit,
                        parsec,
                        pretty,
                        process,
                        time,
                        unix,
                        xml

Test-Suite test-normalize-deps
  ghc-options: -Wall
  Type:                 exitcode-stdio-1.0
  Default-Language:     Haskell98
  Main-Is:              tests/normalize_deps.hs
  Hs-Source-Dirs:       ., cabal, cabal/Cabal, cabal/cabal-install, tests
  Build-Depends:        array,
                        base >= 3 && < 5,
                        binary,
                        deepseq >= 1.3,
                        bytestring,
                        containers,
                        directory,
                        extensible-exceptions,
                        filepath,
                        HUnit,
                        parsec,
                        pretty,
                        process,
                        time,
                        unix,
                        xml