cabal-install.cabal 3.54 KB
Newer Older
1
Name:               cabal-install
Duncan Coutts's avatar
Duncan Coutts committed
2
Version:            0.6.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 9
License:            BSD3
License-File:       LICENSE
10 11
Author:             Lemmih <lemmih@gmail.com>
                    Paolo Martini <paolo@nemail.it>
12 13 14
                    Bjorn Bringert <bjorn@bringert.net>
                    Isaac Potoczny-Jones <ijones@syntaxpolice.org>
                    Duncan Coutts <duncan@haskell.org>
15
Maintainer:         cabal-devel@haskell.org
16 17
Copyright:          2005 Lemmih <lemmih@gmail.com>
                    2006 Paolo Martini <paolo@nemail.it>
18 19 20
                    2007 Bjorn Bringert <bjorn@bringert.net>
                    2007 Isaac Potoczny-Jones <ijones@syntaxpolice.org>
                    2008 Duncan Coutts <duncan@haskell.org>
21 22 23
Stability:          Experimental
Category:           Distribution
Build-type:         Simple
24
Extra-Source-Files: README bash-completion/cabal bootstrap.sh
25
Cabal-Version:      >= 1.4
26

27 28
flag old-base
  description: Old, monolithic base
29
  default: False
30

31 32
flag bytestring-in-base

33
Executable cabal
Don Stewart's avatar
Don Stewart committed
34
    Main-Is:            Main.hs
35 36 37
    -- We want assertion checking on even if people build with -O
    -- although it is expensive, we want to catch problems early:
    Ghc-Options:        -Wall -fno-ignore-asserts
38
    Other-Modules:
Duncan Coutts's avatar
Duncan Coutts committed
39 40 41
        Distribution.Client.BuildReports.Anonymous
        Distribution.Client.BuildReports.Storage
        Distribution.Client.BuildReports.Upload
42 43 44 45 46 47 48 49 50 51 52 53 54
        Distribution.Client.Check
        Distribution.Client.Config
        Distribution.Client.Dependency
        Distribution.Client.Dependency.Bogus
        Distribution.Client.Dependency.TopDown
        Distribution.Client.Dependency.TopDown.Constraints
        Distribution.Client.Dependency.TopDown.Types
        Distribution.Client.Dependency.Types
        Distribution.Client.Fetch
        Distribution.Client.HttpUtils
        Distribution.Client.IndexUtils
        Distribution.Client.Install
        Distribution.Client.InstallPlan
55
        Distribution.Client.InstallSymlink
56 57 58 59 60 61 62 63 64
        Distribution.Client.List
        Distribution.Client.Setup
        Distribution.Client.SetupWrapper
        Distribution.Client.SrcDist
        Distribution.Client.Tar
        Distribution.Client.Types
        Distribution.Client.Update
        Distribution.Client.Upload
        Distribution.Client.Utils
65
        Distribution.Client.Win32SelfUpgrade
66
        Paths_cabal_install
67

68
    build-depends: Cabal >= 1.6 && < 1.7,
69 70 71
                   filepath >= 1.0,
                   network >= 1 && < 3,
                   HTTP >= 3000 && < 3002,
72
                   zlib >= 0.4 && < 0.6
73 74 75 76

    if flag(old-base)
      build-depends: base < 3
    else
77 78 79 80 81
      build-depends: base       >= 3   && < 4,
                     process    >= 1   && < 1.1,
                     directory  >= 1   && < 1.1,
                     pretty     >= 1   && < 1.1,
                     random     >= 1   && < 1.1,
82 83
                     containers >= 0.1 && < 0.3,
                     array      >= 0.1 && < 0.3,
84
                     old-time   >= 1   && < 1.1
85

86 87 88 89
    if flag(bytestring-in-base)
      build-depends: base >= 2.0 && < 2.2
    else
      build-depends: base < 2.0 || >= 3.0, bytestring >= 0.9
90 91

    if os(windows)
92
      build-depends: Win32 >= 2 && < 3
93
      cpp-options: -DWIN32
94
    else
95
      build-depends: unix >= 2.0 && < 2.4
Duncan Coutts's avatar
Duncan Coutts committed
96
    extensions: CPP