cabal-install.cabal 6.38 KB
Newer Older
1
Name:               cabal-install
tibbe's avatar
tibbe committed
2
Version:            1.17.0
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
Library
38
    ghc-options: -Wall -fwarn-tabs
39
    if arch(arm)
refold's avatar
refold committed
40
       cc-options:  -DCABAL_NO_THREADED
41
    Exposed-Modules:
Duncan Coutts's avatar
Duncan Coutts committed
42
43
        Distribution.Client.BuildReports.Anonymous
        Distribution.Client.BuildReports.Storage
Duncan Coutts's avatar
Duncan Coutts committed
44
        Distribution.Client.BuildReports.Types
Duncan Coutts's avatar
Duncan Coutts committed
45
        Distribution.Client.BuildReports.Upload
46
47
        Distribution.Client.Check
        Distribution.Client.Config
Duncan Coutts's avatar
Duncan Coutts committed
48
        Distribution.Client.Configure
49
50
51
52
53
        Distribution.Client.Dependency
        Distribution.Client.Dependency.TopDown
        Distribution.Client.Dependency.TopDown.Constraints
        Distribution.Client.Dependency.TopDown.Types
        Distribution.Client.Dependency.Types
54
        Distribution.Client.Dependency.Modular
55
56
57
        Distribution.Client.Dependency.Modular.Assignment
        Distribution.Client.Dependency.Modular.Builder
        Distribution.Client.Dependency.Modular.Configured
Andres Löh's avatar
Andres Löh committed
58
        Distribution.Client.Dependency.Modular.ConfiguredConversion
59
60
61
62
        Distribution.Client.Dependency.Modular.Dependency
        Distribution.Client.Dependency.Modular.Explore
        Distribution.Client.Dependency.Modular.Flag
        Distribution.Client.Dependency.Modular.Index
63
        Distribution.Client.Dependency.Modular.IndexConversion
64
65
66
67
68
69
70
71
72
        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
73
        Distribution.Client.Fetch
Duncan Coutts's avatar
Duncan Coutts committed
74
        Distribution.Client.FetchUtils
75
        Distribution.Client.Get
76
        Distribution.Client.GZipUtils
77
        Distribution.Client.Haddock
78
        Distribution.Client.HttpUtils
79
        Distribution.Client.Index
80
        Distribution.Client.IndexUtils
81
82
83
84
        Distribution.Client.Init
        Distribution.Client.Init.Heuristics
        Distribution.Client.Init.Licenses
        Distribution.Client.Init.Types
85
86
        Distribution.Client.Install
        Distribution.Client.InstallPlan
87
        Distribution.Client.InstallSymlink
88
        Distribution.Client.JobControl
89
        Distribution.Client.List
90
        Distribution.Client.PackageEnvironment
91
        Distribution.Client.PackageIndex
92
        Distribution.Client.PackageUtils
93
        Distribution.Client.ParseUtils
refold's avatar
refold committed
94
        Distribution.Client.Run
95
        Distribution.Client.Sandbox
96
97
98
99
        Distribution.Client.Setup
        Distribution.Client.SetupWrapper
        Distribution.Client.SrcDist
        Distribution.Client.Tar
100
        Distribution.Client.Targets
101
102
103
104
        Distribution.Client.Types
        Distribution.Client.Update
        Distribution.Client.Upload
        Distribution.Client.Utils
105
        Distribution.Client.World
106
        Distribution.Client.Win32SelfUpgrade
Sergei Trofimovich's avatar
Sergei Trofimovich committed
107
        Distribution.Compat.Exception
refold's avatar
refold committed
108
        Distribution.Compat.Env
109
        Distribution.Compat.FilePerms
110
        Distribution.Compat.Semaphore
111
        Distribution.Compat.Time
112
    Other-Modules:
113
        Paths_cabal_install
114

Ben Millwood's avatar
Ben Millwood committed
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
    build-depends:
        array      >= 0.1      && < 0.5,
        base       >= 4        && < 5,
        bytestring >= 0.9      && < 1,
        Cabal      >= 1.17.0   && < 1.18,
        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,
        process    >= 1        && < 1.3,
        random     >= 1        && < 1.1,
        stm        >= 2.0      && < 3,
        time       >= 1.1      && < 1.5,
        zlib       >= 0.5.3    && < 0.6
131

132
133
134
135
    if flag(old-directory)
      build-depends: directory >= 1 && < 1.2, old-time >= 1 && < 1.2
    else
      build-depends: directory >= 1.2 && < 1.3
136
137

    if os(windows)
138
      build-depends: Win32 >= 2 && < 3
139
      cpp-options: -DWIN32
140
    else
141
      build-depends: unix >= 1.0 && < 2.7
142
    c-sources: cbits/getnumcores.c
143
144
145
146

Executable cabal
    Main-Is:            Main.hs
    hs-source-dirs:     src
147
    ghc-options:        -Wall -fwarn-tabs
148
149
    if !arch(arm)
       ghc-options: -threaded
150
    build-depends:      base          >= 4      && < 5,
151
152
                        Cabal         >= 1.17.0 && < 1.18,
                        cabal-install >= 1.17.0 && < 1.18,
153
                        directory     >= 1      && < 1.3,
154
                        filepath      >= 1.0    && < 1.4
155
156
157
158
159
160
161

Test-Suite unit-tests
  type: exitcode-stdio-1.0
  main-is: UnitTests.hs
  hs-source-dirs: tests
  build-depends:
        base,
162
        filepath,
163
164
        test-framework,
        test-framework-hunit,
165
        test-framework-quickcheck2,
166
        HUnit,
167
        QuickCheck (>= 2.5),
168
169
        cabal-install,
        Cabal
170
  ghc-options: -Wall -fwarn-tabs
171
172
  if !arch(arm)
     ghc-options: -threaded