Cabal.cabal 6.62 KB
Newer Older
1
2
3
name: Cabal
version: 1.17.0
copyright: 2003-2006, Isaac Jones
Duncan Coutts's avatar
Duncan Coutts committed
4
           2005-2011, Duncan Coutts
5
6
7
license: BSD3
license-file: LICENSE
author: Isaac Jones <ijones@syntaxpolice.org>
Duncan Coutts's avatar
Duncan Coutts committed
8
        Duncan Coutts <duncan@community.haskell.org>
9
10
maintainer: cabal-devel@haskell.org
homepage: http://www.haskell.org/cabal/
11
bug-reports: https://github.com/haskell/cabal/issues
12
13
synopsis: A framework for packaging Haskell software
description:
ijones's avatar
ijones committed
14
        The Haskell Common Architecture for Building Applications and
ijones's avatar
ijones committed
15
        Libraries: a framework defining a common interface for authors to more
ijones's avatar
ijones committed
16
17
        easily build their Haskell applications in a portable way.
        .
18
19
        The Haskell Cabal is part of a larger infrastructure for distributing,
        organizing, and cataloging Haskell libraries and tools.
20
category: Distribution
21
cabal-version: >=1.10
22
build-type: Custom
Ross Paterson's avatar
Ross Paterson committed
23
-- Even though we do use the default Setup.lhs it's vital to bootstrapping
24
-- that we build Setup.lhs using our own local Cabal source code.
25

26
extra-source-files:
27
        README changelog
28

29
source-repository head
30
31
  type:     git
  location: https://github.com/haskell/cabal/
32
  subdir:   Cabal
33

34
library
35
  build-depends:   base       >= 4   && < 5,
36
                   deepseq    >= 1.3 && < 1.4,
37
38
                   filepath   >= 1   && < 1.4,
                   directory  >= 1   && < 1.3,
Ian Lynagh's avatar
Ian Lynagh committed
39
                   process    >= 1   && < 1.2,
Ben Millwood's avatar
Ben Millwood committed
40
                   time       >= 1.1 && < 1.5,
Ian Lynagh's avatar
Ian Lynagh committed
41
                   containers >= 0.1 && < 0.6,
Ian Lynagh's avatar
Ian Lynagh committed
42
                   array      >= 0.1 && < 0.5,
43
44
                   pretty     >= 1   && < 1.2,
                   bytestring >= 0.9
45

46
  if !os(windows)
47
    build-depends: unix       >= 2.0 && < 2.7
48

49
  ghc-options: -Wall -fno-ignore-asserts
Duncan Coutts's avatar
Duncan Coutts committed
50
51
  if impl(ghc >= 6.8)
    ghc-options: -fwarn-tabs
52
  nhc98-options: -K4M
53

54
  exposed-modules:
ijones's avatar
ijones committed
55
        Distribution.Compiler,
ijones's avatar
ijones committed
56
57
58
        Distribution.InstalledPackageInfo,
        Distribution.License,
        Distribution.Make,
59
        Distribution.ModuleName,
ijones's avatar
ijones committed
60
61
        Distribution.Package,
        Distribution.PackageDescription,
62
        Distribution.PackageDescription.Configuration,
63
        Distribution.PackageDescription.Parse,
64
        Distribution.PackageDescription.Check,
jutaro's avatar
jutaro committed
65
        Distribution.PackageDescription.PrettyPrint,
ijones's avatar
ijones committed
66
        Distribution.ParseUtils,
67
        Distribution.ReadE,
ijones's avatar
ijones committed
68
69
        Distribution.Simple,
        Distribution.Simple.Build,
70
71
        Distribution.Simple.Build.Macros,
        Distribution.Simple.Build.PathsModule,
72
        Distribution.Simple.BuildPaths,
refold's avatar
refold committed
73
        Distribution.Simple.BuildTarget,
tibbe's avatar
tibbe committed
74
        Distribution.Simple.Bench,
75
        Distribution.Simple.Command,
76
        Distribution.Simple.CCompiler,
77
        Distribution.Simple.Compiler,
ijones's avatar
ijones committed
78
        Distribution.Simple.Configure,
Ross Paterson's avatar
Ross Paterson committed
79
        Distribution.Simple.GHC,
80
        Distribution.Simple.LHC,
81
        Distribution.Simple.Haddock,
82
        Distribution.Simple.Hpc,
Ross Paterson's avatar
Ross Paterson committed
83
        Distribution.Simple.Hugs,
ijones's avatar
ijones committed
84
        Distribution.Simple.Install,
85
        Distribution.Simple.InstallDirs,
Ross Paterson's avatar
Ross Paterson committed
86
        Distribution.Simple.JHC,
ijones's avatar
ijones committed
87
        Distribution.Simple.LocalBuildInfo,
Ross Paterson's avatar
Ross Paterson committed
88
        Distribution.Simple.NHC,
89
        Distribution.Simple.PackageIndex,
90
91
92
        Distribution.Simple.PreProcess,
        Distribution.Simple.PreProcess.Unlit,
        Distribution.Simple.Program,
93
        Distribution.Simple.Program.Ar,
Duncan Coutts's avatar
Duncan Coutts committed
94
95
        Distribution.Simple.Program.Builtin,
        Distribution.Simple.Program.Db,
96
        Distribution.Simple.Program.GHC,
Duncan Coutts's avatar
Duncan Coutts committed
97
        Distribution.Simple.Program.HcPkg,
98
        Distribution.Simple.Program.Hpc,
99
        Distribution.Simple.Program.Ld,
Duncan Coutts's avatar
Duncan Coutts committed
100
101
102
        Distribution.Simple.Program.Run,
        Distribution.Simple.Program.Script,
        Distribution.Simple.Program.Types,
ijones's avatar
ijones committed
103
        Distribution.Simple.Register,
104
        Distribution.Simple.Setup,
ijones's avatar
ijones committed
105
        Distribution.Simple.SrcDist,
106
        Distribution.Simple.Test,
Andres Loeh's avatar
Andres Loeh committed
107
        Distribution.Simple.UHC,
108
        Distribution.Simple.UserHooks,
ijones's avatar
ijones committed
109
        Distribution.Simple.Utils,
110
        Distribution.System,
ttuegel's avatar
ttuegel committed
111
        Distribution.TestSuite,
112
        Distribution.Text,
113
        Distribution.Verbosity,
ijones's avatar
ijones committed
114
        Distribution.Version,
Ian Lynagh's avatar
Ian Lynagh committed
115
        Distribution.Compat.ReadP,
116
        Language.Haskell.Extension
117

118
  other-modules:
ijones's avatar
ijones committed
119
        Distribution.GetOpt,
120
        Distribution.Compat.Exception,
121
        Distribution.Compat.CopyFile,
Duncan Coutts's avatar
Duncan Coutts committed
122
123
        Distribution.Compat.TempFile,
        Distribution.Simple.GHC.IPI641,
124
125
        Distribution.Simple.GHC.IPI642,
        Paths_Cabal
126

127
128
  default-language: Haskell98
  default-extensions: CPP
129

130
-- Small, fast running tests.
131
132
test-suite unit-tests
  type: exitcode-stdio-1.0
133
134
135
136
137
138
  main-is: UnitTests.hs
  hs-source-dirs: tests
  build-depends:
        base,
        test-framework,
        test-framework-hunit,
139
        test-framework-quickcheck2,
140
        HUnit,
141
        QuickCheck,
142
        Cabal
tibbe's avatar
tibbe committed
143
  ghc-options: -Wall
144
  default-language: Haskell98
145
146
147
148
149

-- Large, system tests that build packages.
test-suite package-tests
  type: exitcode-stdio-1.0
  main-is: PackageTests.hs
150
151
152
153
154
155
156
157
158
159
160
  other-modules: PackageTests.BuildDeps.GlobalBuildDepsNotAdditive1.Check,
                 PackageTests.BuildDeps.GlobalBuildDepsNotAdditive2.Check,
                 PackageTests.BuildDeps.InternalLibrary0.Check,
                 PackageTests.BuildDeps.InternalLibrary1.Check,
                 PackageTests.BuildDeps.InternalLibrary2.Check,
                 PackageTests.BuildDeps.InternalLibrary3.Check,
                 PackageTests.BuildDeps.InternalLibrary4.Check,
                 PackageTests.BuildDeps.TargetSpecificDeps1.Check,
                 PackageTests.BuildDeps.TargetSpecificDeps2.Check,
                 PackageTests.BuildDeps.TargetSpecificDeps3.Check,
                 PackageTests.BuildDeps.SameDepsAllRound.Check,
tibbe's avatar
tibbe committed
161
                 PackageTests.PreProcess.Check,
ttuegel's avatar
ttuegel committed
162
                 PackageTests.TestOptions.Check,
163
                 PackageTests.TestStanza.Check,
164
                 PackageTests.TestSuiteExeV10.Check,
165
                 PackageTests.BenchmarkOptions.Check,
tibbe's avatar
tibbe committed
166
                 PackageTests.BenchmarkStanza.Check,
167
                 PackageTests.BenchmarkExeV10.Check,
168
                 PackageTests.TemplateHaskell.Check,
169
                 PackageTests.CMain.Check,
170
                 PackageTests.PackageTester
tibbe's avatar
tibbe committed
171
172
                 PackageTests.PathsModule.Executable.Check
                 PackageTests.PathsModule.Library.Check
tibbe's avatar
tibbe committed
173
                 Distribution.Compat.CreatePipe
174
175
176
177
  hs-source-dirs: tests
  build-depends:
        base,
        test-framework,
178
        test-framework-quickcheck2 >= 0.2.12,
179
180
181
182
183
184
185
186
        test-framework-hunit,
        HUnit,
        QuickCheck >= 2.1.0.1,
        Cabal,
        process,
        directory,
        filepath,
        extensible-exceptions,
tibbe's avatar
tibbe committed
187
188
189
        bytestring
  if !os(windows)
    build-depends: unix
tibbe's avatar
tibbe committed
190
  ghc-options: -Wall
191
192
  default-extensions: CPP
  default-language: Haskell98