cabal-install.cabal 3.38 KB
Newer Older
1
Name:               cabal-install
Duncan Coutts's avatar
Duncan Coutts committed
2
Version:            0.5.1
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
25
Cabal-Version:      >= 1.2
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:
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
        Distribution.Client.Check
        Distribution.Client.Config
        Distribution.Client.Dependency
        Distribution.Client.Dependency.Bogus
        Distribution.Client.Dependency.Naive
        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.Info
        Distribution.Client.Install
        Distribution.Client.InstallPlan
        Distribution.Client.List
        Distribution.Client.Logging
        Distribution.Client.ParseUtils
        Distribution.Client.Reporting
        Distribution.Client.Setup
        Distribution.Client.SetupWrapper
        Distribution.Client.SrcDist
        Distribution.Client.Tar
        Distribution.Client.Types
        Distribution.Client.Update
        Distribution.Client.Upload
        Distribution.Client.Utils
66

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

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

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

    if os(windows)
91
      build-depends: Win32 >= 2 && < 3
92
      cpp-options: -DWIN32