cabal-install.cabal 4.44 KB
Newer Older
1
Name:               cabal-install
Duncan Coutts's avatar
Duncan Coutts committed
2
Version:            0.9.6
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 9
homepage:           http://www.haskell.org/cabal/
bug-reports:        http://hackage.haskell.org/trac/hackage/
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>
Duncan Coutts's avatar
Duncan Coutts committed
22
                    2007-2011 Duncan Coutts <duncan@community.haskell.org>
23 24
Category:           Distribution
Build-type:         Simple
25
Extra-Source-Files: README bash-completion/cabal bootstrap.sh
Duncan Coutts's avatar
Duncan Coutts committed
26 27 28 29 30
Cabal-Version:      >= 1.6

source-repository head
  type:     darcs
  location: http://darcs.haskell.org/cabal-install/
31

32 33
flag old-base
  description: Old, monolithic base
34
  default: False
35

36 37
flag bytestring-in-base

38
Executable cabal
Don Stewart's avatar
Don Stewart committed
39
    Main-Is:            Main.hs
40 41
    -- We want assertion checking on even if people build with -O
    -- although it is expensive, we want to catch problems early:
Duncan Coutts's avatar
Duncan Coutts committed
42 43 44
    ghc-options:        -Wall -fno-ignore-asserts
    if impl(ghc >= 6.8)
      ghc-options: -fwarn-tabs
45
    Other-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 58
        Distribution.Client.Dependency
        Distribution.Client.Dependency.TopDown
        Distribution.Client.Dependency.TopDown.Constraints
        Distribution.Client.Dependency.TopDown.Types
        Distribution.Client.Dependency.Types
        Distribution.Client.Fetch
Duncan Coutts's avatar
Duncan Coutts committed
59
        Distribution.Client.FetchUtils
60
        Distribution.Client.GZipUtils
61
        Distribution.Client.Haddock
62 63
        Distribution.Client.HttpUtils
        Distribution.Client.IndexUtils
64 65 66 67
        Distribution.Client.Init
        Distribution.Client.Init.Heuristics
        Distribution.Client.Init.Licenses
        Distribution.Client.Init.Types
68 69
        Distribution.Client.Install
        Distribution.Client.InstallPlan
70
        Distribution.Client.InstallSymlink
71
        Distribution.Client.List
72
        Distribution.Client.PackageIndex
73
        Distribution.Client.PackageUtils
74 75 76 77
        Distribution.Client.Setup
        Distribution.Client.SetupWrapper
        Distribution.Client.SrcDist
        Distribution.Client.Tar
78
        Distribution.Client.Targets
79
        Distribution.Client.Types
Duncan Coutts's avatar
Duncan Coutts committed
80
        Distribution.Client.Unpack
81 82 83
        Distribution.Client.Update
        Distribution.Client.Upload
        Distribution.Client.Utils
84
        Distribution.Client.World
85
        Distribution.Client.Win32SelfUpgrade
Sergei Trofimovich's avatar
Sergei Trofimovich committed
86
        Distribution.Compat.Exception
87
        Paths_cabal_install
88

Duncan Coutts's avatar
Duncan Coutts committed
89
    build-depends: base     >= 2        && < 5,
Duncan Coutts's avatar
Duncan Coutts committed
90
                   Cabal    >= 1.10     && < 1.11,
91
                   filepath >= 1.0      && < 1.3,
Duncan Coutts's avatar
Duncan Coutts committed
92 93 94
                   network  >= 1        && < 3,
                   HTTP     >= 4000.0.2 && < 4001,
                   zlib     >= 0.4      && < 0.6,
95
                   time     >= 1.1      && < 1.3
96 97 98 99

    if flag(old-base)
      build-depends: base < 3
    else
100
      build-depends: base       >= 3,
101
                     process    >= 1   && < 1.1,
102
                     directory  >= 1   && < 1.2,
103 104
                     pretty     >= 1   && < 1.1,
                     random     >= 1   && < 1.1,
105
                     containers >= 0.1 && < 0.5,
Duncan Coutts's avatar
Duncan Coutts committed
106
                     array      >= 0.1 && < 0.4,
107
                     old-time   >= 1   && < 1.1
108

109 110 111 112
    if flag(bytestring-in-base)
      build-depends: base >= 2.0 && < 2.2
    else
      build-depends: base < 2.0 || >= 3.0, bytestring >= 0.9
113 114

    if os(windows)
115
      build-depends: Win32 >= 2 && < 3
116
      cpp-options: -DWIN32
117
    else
Duncan Coutts's avatar
Duncan Coutts committed
118
      build-depends: unix >= 1.0 && < 2.5
Duncan Coutts's avatar
Duncan Coutts committed
119
    extensions: CPP