cabal-install.cabal 6.78 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
flag old-base
  description: Old, monolithic base
35
  default: False
36

37 38
flag bytestring-in-base

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

Duncan Coutts's avatar
Duncan Coutts committed
119
    build-depends: base     >= 2        && < 5,
Andres Löh's avatar
Andres Löh committed
120
                   Cabal    >= 1.17.0   && < 1.18,
Andres Löh's avatar
Andres Löh committed
121
                   filepath >= 1.0      && < 1.4,
Duncan Coutts's avatar
Duncan Coutts committed
122
                   network  >= 1        && < 3,
123
                   HTTP     >= 4000.0.8 && < 4001,
Duncan Coutts's avatar
Duncan Coutts committed
124
                   zlib     >= 0.4      && < 0.6,
Andres Löh's avatar
Andres Löh committed
125
                   time     >= 1.1      && < 1.5,
126 127
                   mtl      >= 2.0      && < 3,
                   stm      >= 2.0      && < 3
128 129 130 131

    if flag(old-base)
      build-depends: base < 3
    else
132
      build-depends: base       >= 3,
133
                     process    >= 1   && < 1.2,
134
                     directory  >= 1   && < 1.3,
135
                     pretty     >= 1   && < 1.2,
136
                     random     >= 1   && < 1.1,
Andres Löh's avatar
Andres Löh committed
137
                     containers >= 0.1 && < 0.6,
Andres Löh's avatar
Andres Löh committed
138 139
                     array      >= 0.1 && < 0.5,
                     old-time   >= 1   && < 1.2
140

141 142 143 144
    if flag(bytestring-in-base)
      build-depends: base >= 2.0 && < 2.2
    else
      build-depends: base < 2.0 || >= 3.0, bytestring >= 0.9
145 146

    if os(windows)
147
      build-depends: Win32 >= 2 && < 3
148
      cpp-options: -DWIN32
149
    else
150
      build-depends: unix >= 1.0 && < 2.7
151
    c-sources: cbits/getnumcores.c
152 153 154 155 156

Executable cabal
    Main-Is:            Main.hs
    hs-source-dirs:     src
    ghc-options:        -Wall
157 158 159 160
    if !arch(arm)
       ghc-options: -threaded
    if impl(ghc >= 6.8)
       ghc-options: -fwarn-tabs
161 162 163 164 165 166 167 168 169
    build-depends:      base          >= 2      && < 5,
                        Cabal         >= 1.17.0 && < 1.18,
                        cabal-install >= 1.17.0 && < 1.18,
                        filepath      >= 1.0    && < 1.4
    if flag(old-base)
      build-depends: base < 3
    else
      build-depends: base       >= 3,
                     directory  >= 1 && < 1.3
170 171 172 173 174 175 176

Test-Suite unit-tests
  type: exitcode-stdio-1.0
  main-is: UnitTests.hs
  hs-source-dirs: tests
  build-depends:
        base,
177
        filepath,
178 179 180 181 182 183
        test-framework,
        test-framework-hunit,
        HUnit,
        cabal-install,
        Cabal
  ghc-options: -Wall
184 185 186 187
  if !arch(arm)
     ghc-options: -threaded
  if impl(ghc >= 6.8)
     ghc-options: -fwarn-tabs