forked from creswick/cabal-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cabal-dev.cabal
146 lines (128 loc) · 4.35 KB
/
cabal-dev.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
Name: cabal-dev
Version: 0.7.4.1
Synopsis: Manage sandboxed Haskell build environments
Description: cabal-dev is a tool for managing development builds of
Haskell projects. It supports maintaining sandboxed
cabal-install repositories, and sandboxed ghc package
databases.
.
By default, it uses a cabal-dev directory under
the current working directory as the sandbox.
.
For most packages, just use @cabal-dev@ instead of
@cabal@, and you will get a sandboxed build that
will not install anything (even automatically installed
dependencies) into the user or global ghc package
databases.
.
If your build depends on patched or unreleased libraries,
you can add them to your sandboxed build environment so
they can be installed by @cabal-dev@ or @cabal@. Just run:
.
> cabal-dev add-source /path/to/source/code
.
@cabal-dev add-source@ also supports importing tarballs
into a local cabal repository.
.
This tool has been tested with GHC 6.8-7.0.1.
License: BSD3
License-file: LICENSE
Author: Josh Hoyt, Jonathan Daughtery, Rogan Creswick
Maintainer: j3h@galois.com, jtd@galois.com, creswick@galois.com
Homepage: https://github.com/creswick/cabal-dev
Copyright: 2010 Galois, Inc.
Category: Development
Build-type: Custom
Cabal-version: >=1.6
Data-Files:
admin/cabal-config.in,
admin/00-index.tar
source-repository head
type: git
location: git://github.com/creswick/cabal-dev.git
Flag no-cabal-dev
Description: Do not build cabal-dev (just build ghc-pkg-6_8-compat).
This is useful for bootstrapping on GHC 6.8.
Default: False
-- Don't try to flip this flag when looking for a
-- satisfiable configuration for this package
Manual: True
Flag build-tests
Description: Build and install the test executable
Default: False
Manual: True
Executable ghc-pkg-6_8-compat
Main-is: GhcPkgCompat.hs
Build-Depends:
base < 5,
Cabal >=1.2 && < 1.11
GHC-Options: -Wall
HS-Source-Dirs: src
Executable cabal-dev-test
Main-is: RunTests.hs
GHC-Options: -Wall
HS-Source-Dirs: src, test
if flag(no-cabal-dev) || !flag(build-tests)
Buildable: False
else
if impl(ghc >= 6.10)
Build-depends:
base >= 4 && < 5
else
Build-depends:
base >= 3 && < 4
Build-depends:
MonadRandom >= 0.1 && < 0.2,
random >= 1 && < 1.1,
test-framework >= 0.3 && < 0.4,
test-framework-hunit >= 0.2,
HUnit >= 1.2 && <2,
-- These dependencies are needed for the cabal-install
-- code that is pulled in automatically by the userhooks
containers >= 0.1 && < 0.4,
network >= 1 && < 3,
array >= 0.1 && < 0.4,
pretty >= 1 && < 1.1
if os(windows)
build-depends: Win32 >= 2.1 && < 2.3
Executable cabal-dev
HS-Source-Dirs: src
Main-is: Main.hs
GHC-Options: -Wall
if flag(no-cabal-dev)
Buildable: False
else
if impl(ghc >= 6.10)
Build-depends:
base >= 4 && < 5
else
Build-depends:
base >= 3 && < 4
Build-depends:
bytestring >= 0.9 && < 0.10,
directory >= 1.0 && < 1.3,
filepath >= 1.1 && < 1.3,
Cabal >= 1.10.0.0 && < 1.11,
HTTP >= 4000.0.9 && < 4000.2,
mtl >= 1.1 && < 2.1,
network >= 2.2 && < 2.4,
pretty >= 1.0 && < 1.1,
process >= 1.0 && < 1.1,
tar >= 0.3 && < 0.4,
zlib >= 0.5 && < 0.6
if os(windows)
build-depends: Win32 >= 2.1 && < 2.3
Build-tools:
cabal >= 0.8.2
Other-modules:
Distribution.Dev.AddSource,
Distribution.Dev.Sandbox,
Distribution.Dev.Command,
Distribution.Dev.CabalInstall,
Distribution.Dev.Flags,
Distribution.Dev.Ghci,
Distribution.Dev.InvokeCabal,
Distribution.Dev.InstallDependencies,
Distribution.Dev.RewriteCabalConfig,
Distribution.Dev.InitPkgDb,
Distribution.Dev.Utilities