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

111
    build-depends: base     >= 4        && < 5,
Andres Löh's avatar
Andres Löh committed
112
                   Cabal    >= 1.17.0   && < 1.18,
Andres Löh's avatar
Andres Löh committed
113
                   filepath >= 1.0      && < 1.4,
Duncan Coutts's avatar
Duncan Coutts committed
114
                   network  >= 1        && < 3,
115
                   HTTP     >= 4000.0.8 && < 4001,
116
                   zlib     >= 0.5.3    && < 0.6,
Andres Löh's avatar
Andres Löh committed
117
                   time     >= 1.1      && < 1.5,
118
                   mtl      >= 2.0      && < 3,
119 120
                   stm      >= 2.0      && < 3,
                     bytestring >= 0.9 && < 1,
tuncer's avatar
tuncer committed
121
                     process    >= 1   && < 1.3,
122
                     directory  >= 1   && < 1.3,
123
                     pretty     >= 1   && < 1.2,
124
                     random     >= 1   && < 1.1,
Andres Löh's avatar
Andres Löh committed
125
                     containers >= 0.1 && < 0.6,
Andres Löh's avatar
Andres Löh committed
126 127
                     array      >= 0.1 && < 0.5,
                     old-time   >= 1   && < 1.2
128

129 130

    if os(windows)
131
      build-depends: Win32 >= 2 && < 3
132
      cpp-options: -DWIN32
133
    else
134
      build-depends: unix >= 1.0 && < 2.7
135
    c-sources: cbits/getnumcores.c
136 137 138 139

Executable cabal
    Main-Is:            Main.hs
    hs-source-dirs:     src
140
    ghc-options:        -Wall -fwarn-tabs
141 142
    if !arch(arm)
       ghc-options: -threaded
143
    build-depends:      base          >= 4      && < 5,
144 145
                        Cabal         >= 1.17.0 && < 1.18,
                        cabal-install >= 1.17.0 && < 1.18,
146
                        directory     >= 1      && < 1.3,
147
                        filepath      >= 1.0    && < 1.4
148 149 150 151 152 153 154

Test-Suite unit-tests
  type: exitcode-stdio-1.0
  main-is: UnitTests.hs
  hs-source-dirs: tests
  build-depends:
        base,
155
        filepath,
156 157
        test-framework,
        test-framework-hunit,
158
        test-framework-quickcheck2,
159
        HUnit,
160
        QuickCheck (>= 2.5),
161 162
        cabal-install,
        Cabal
163
  ghc-options: -Wall -fwarn-tabs
164 165
  if !arch(arm)
     ghc-options: -threaded