cabal-install.cabal 6.94 KB
Newer Older
1
Name:               cabal-install
2
Version:            1.19.2
3
Synopsis:           The command-line interface for Cabal and Hackage.
4
Description:
5
6
7
    The \'cabal\' command-line program simplifies the process of managing
    Haskell software by automating the fetching, configuration, compilation
    and installation of Haskell libraries and programs.
8
homepage:           http://www.haskell.org/cabal/
9
bug-reports:        https://github.com/haskell/cabal/issues
10
11
License:            BSD3
License-File:       LICENSE
12
13
Author:             Lemmih <lemmih@gmail.com>
                    Paolo Martini <paolo@nemail.it>
14
15
                    Bjorn Bringert <bjorn@bringert.net>
                    Isaac Potoczny-Jones <ijones@syntaxpolice.org>
Duncan Coutts's avatar
Duncan Coutts committed
16
                    Duncan Coutts <duncan@community.haskell.org>
17
Maintainer:         cabal-devel@haskell.org
18
19
Copyright:          2005 Lemmih <lemmih@gmail.com>
                    2006 Paolo Martini <paolo@nemail.it>
20
21
                    2007 Bjorn Bringert <bjorn@bringert.net>
                    2007 Isaac Potoczny-Jones <ijones@syntaxpolice.org>
22
                    2007-2012 Duncan Coutts <duncan@community.haskell.org>
23
24
Category:           Distribution
Build-type:         Simple
25
Extra-Source-Files: README bash-completion/cabal bootstrap.sh
26
Cabal-Version:      >= 1.8
Duncan Coutts's avatar
Duncan Coutts committed
27
28

source-repository head
29
30
  type:     git
  location: https://github.com/haskell/cabal/
Duncan Coutts's avatar
Duncan Coutts committed
31
  subdir:   cabal-install
32

33
34
35
36
Flag old-directory
  description:  Use directory < 1.2 and old-time
  default:      False

37
38
39
40
executable cabal
    main-is:        Main.hs
    ghc-options:    -Wall -fwarn-tabs
    other-modules:
Duncan Coutts's avatar
Duncan Coutts committed
41
42
        Distribution.Client.BuildReports.Anonymous
        Distribution.Client.BuildReports.Storage
Duncan Coutts's avatar
Duncan Coutts committed
43
        Distribution.Client.BuildReports.Types
Duncan Coutts's avatar
Duncan Coutts committed
44
        Distribution.Client.BuildReports.Upload
45
46
        Distribution.Client.Check
        Distribution.Client.Config
Duncan Coutts's avatar
Duncan Coutts committed
47
        Distribution.Client.Configure
48
49
50
51
52
        Distribution.Client.Dependency
        Distribution.Client.Dependency.TopDown
        Distribution.Client.Dependency.TopDown.Constraints
        Distribution.Client.Dependency.TopDown.Types
        Distribution.Client.Dependency.Types
53
        Distribution.Client.Dependency.Modular
54
55
56
        Distribution.Client.Dependency.Modular.Assignment
        Distribution.Client.Dependency.Modular.Builder
        Distribution.Client.Dependency.Modular.Configured
Andres Löh's avatar
Andres Löh committed
57
        Distribution.Client.Dependency.Modular.ConfiguredConversion
58
59
60
61
        Distribution.Client.Dependency.Modular.Dependency
        Distribution.Client.Dependency.Modular.Explore
        Distribution.Client.Dependency.Modular.Flag
        Distribution.Client.Dependency.Modular.Index
62
        Distribution.Client.Dependency.Modular.IndexConversion
63
64
65
66
67
68
69
70
71
        Distribution.Client.Dependency.Modular.Log
        Distribution.Client.Dependency.Modular.Message
        Distribution.Client.Dependency.Modular.Package
        Distribution.Client.Dependency.Modular.Preference
        Distribution.Client.Dependency.Modular.PSQ
        Distribution.Client.Dependency.Modular.Solver
        Distribution.Client.Dependency.Modular.Tree
        Distribution.Client.Dependency.Modular.Validate
        Distribution.Client.Dependency.Modular.Version
72
        Distribution.Client.Fetch
Duncan Coutts's avatar
Duncan Coutts committed
73
        Distribution.Client.FetchUtils
74
        Distribution.Client.Freeze
75
        Distribution.Client.Get
76
        Distribution.Client.GZipUtils
77
        Distribution.Client.Haddock
78
79
        Distribution.Client.HttpUtils
        Distribution.Client.IndexUtils
80
81
82
83
        Distribution.Client.Init
        Distribution.Client.Init.Heuristics
        Distribution.Client.Init.Licenses
        Distribution.Client.Init.Types
84
85
        Distribution.Client.Install
        Distribution.Client.InstallPlan
86
        Distribution.Client.InstallSymlink
87
        Distribution.Client.JobControl
88
        Distribution.Client.List
89
        Distribution.Client.PackageIndex
90
        Distribution.Client.PackageUtils
91
        Distribution.Client.ParseUtils
refold's avatar
refold committed
92
        Distribution.Client.Run
93
        Distribution.Client.Sandbox
94
95
        Distribution.Client.Sandbox.Index
        Distribution.Client.Sandbox.PackageEnvironment
96
        Distribution.Client.Sandbox.Timestamp
97
        Distribution.Client.Sandbox.Types
98
99
100
101
        Distribution.Client.Setup
        Distribution.Client.SetupWrapper
        Distribution.Client.SrcDist
        Distribution.Client.Tar
102
        Distribution.Client.Targets
103
104
105
106
        Distribution.Client.Types
        Distribution.Client.Update
        Distribution.Client.Upload
        Distribution.Client.Utils
107
        Distribution.Client.World
108
        Distribution.Client.Win32SelfUpgrade
109
        Distribution.Client.Compat.Environment
110
        Distribution.Client.Compat.ExecutablePath
111
112
113
        Distribution.Client.Compat.FilePerms
        Distribution.Client.Compat.Semaphore
        Distribution.Client.Compat.Time
114
        Paths_cabal_install
115

Mikhail Glushenkov's avatar
Mikhail Glushenkov committed
116
117
    -- NOTE: when updating build-depends, don't forget to update version regexps
    -- in bootstrap.sh.
Ben Millwood's avatar
Ben Millwood committed
118
    build-depends:
119
        array      >= 0.1      && < 0.6,
120
        base       >= 4.3      && < 5,
Ben Millwood's avatar
Ben Millwood committed
121
        bytestring >= 0.9      && < 1,
122
        Cabal      == 1.19.2,
Ben Millwood's avatar
Ben Millwood committed
123
124
125
126
127
128
129
130
131
132
        containers >= 0.1      && < 0.6,
        filepath   >= 1.0      && < 1.4,
        HTTP       >= 4000.0.8 && < 4001,
        mtl        >= 2.0      && < 3,
        network    >= 1        && < 3,
        pretty     >= 1        && < 1.2,
        random     >= 1        && < 1.1,
        stm        >= 2.0      && < 3,
        time       >= 1.1      && < 1.5,
        zlib       >= 0.5.3    && < 0.6
133

134
    if flag(old-directory)
135
136
      build-depends: directory >= 1 && < 1.2, old-time >= 1 && < 1.2,
                     process   >= 1.0.1.1  && < 1.1.0.2
137
    else
138
139
      build-depends: directory >= 1.2 && < 1.3,
                     process   >= 1.1.0.2  && < 1.3
140
141

    if os(windows)
142
      build-depends: Win32 >= 2 && < 3
143
      cpp-options: -DWIN32
144
    else
145
      build-depends: unix >= 2.0 && < 2.8
146

147
148
    if arch(arm) && impl(ghc < 7.6)
       -- older ghc on arm does not supprt -threaded
149
150
       cc-options:  -DCABAL_NO_THREADED
    else
151
       ghc-options: -threaded
152
153
154

    c-sources: cbits/getnumcores.c

155
156
157
158

Test-Suite unit-tests
  type: exitcode-stdio-1.0
  main-is: UnitTests.hs
159
160
161
162
163
164
  hs-source-dirs: tests, .
  ghc-options: -Wall -fwarn-tabs
  other-modules:
    UnitTests.Distribution.Client.Targets
    UnitTests.Distribution.Client.Dependency.Modular.PSQ
    UnitTests.Distribution.Client.Sandbox
165
166
  build-depends:
        base,
167
168
169
170
171
172
173
174
175
        array,
        bytestring,
        Cabal,
        containers,
        mtl,
        network,
        pretty,
        process,
        directory,
176
        filepath,
177
178
179
180
181
        stm,
        time,
        network,
        HTTP,
        zlib,
refold's avatar
refold committed
182

183
184
        test-framework,
        test-framework-hunit,
185
        test-framework-quickcheck2 >= 0.3,
186
        HUnit,
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
        QuickCheck >= 2.5

  if flag(old-directory)
    build-depends: old-time

  if os(windows)
    build-depends: Win32
    cpp-options: -DWIN32
  else
    build-depends: unix

  if arch(arm)
    cc-options:  -DCABAL_NO_THREADED
  else
    ghc-options: -threaded