Find git executable at run time
[git-darcs-import.git] / darcs.cabal.in
blobb914cc2f6f88febe403951222e66460128aa4cbe
1 Name:           darcs
2 version:        @DARCS_VERSION@
3 License:        GPL
4 License-file:   COPYING
5 Author:         David Roundy <droundy@darcs.net>, <darcs-users@darcs.net>
6 Maintainer:     <darcs-users@darcs.net>
8 Stability:      Experimental
9 Category:       Development
10 Synopsis:       Darcs advanced revision control system
11 Description:    Darcs is a revision control system, along the lines of CVS or arch.
12                 That means that it keeps track of various revisions and branches of
13                 your project, allows for changes to propagate from one branch to another.
14                 Darcs is intended to be an _advanced_ revision control system.
15                 Darcs has two particularly distinctive features which differ from other,
16                 centralized, revision control systems:
17                 .
18                 * each copy of the source is a fully functional branch, and
19                 .
20                 * underlying darcs is a consistent and powerful theory of patches.
21                 .
22                 The Darcs repository can be found at <http://darcs.net/>.
23 Homepage:       http://darcs.net/
25 Build-Type:     Custom
26 Cabal-Version:  >= 1.2
27 Tested-with:    GHC==6.8.2
29 flag curl
30      description: Enables curl support.
32 Executable          darcs
33     main-is:        darcs.lhs
34     hs-source-dirs: src
35     cpp-options:    -DHAVE_BYTESTRING
37     build-depends: regex-compat >= 0.71.0 && < 0.72,
38                    mtl >= 1.1.0 && < 1.2,
39                    parsec >= 2.1 && < 3.0,
40                    html >= 1.0 && < 1.1,
41                    filepath >= 1.1.0 && < 1.2,
42                    QuickCheck >= 2.0 && < 2.1,
43                    HUnit >= 1.2 && < 1.3,
44                    utf8-string >= 0.3.1 && < 0.4,
45                    bytestring >= 0.9.0 && < 0.10,
46                    terminfo >= 0.2.2 && < 0.3,
47                    haskeline >= 0.3.1 && < 0.4,
48                    zlib >= 0.4.0 && < 0.5
50     if impl(ghc >= 6.8)
51         build-depends: base >= 3 && < 4,
52                        old-time >= 1.0 && < 1.1,
53                        directory >= 1.0 && < 1.1,
54                        process >= 1.0 && < 1.1,
55                        containers >= 0.1 && < 0.2,
56                        array >= 0.1 && < 0.2
58         if !os(windows)
59            build-depends: unix >= 2.3 && < 2.4
61     else
62         build-depends: base < 3
64     -- We need optimizations and warnings, regardless of what Hackage says
65     ghc-options:      -Wall -O2 -funbox-strict-fields -threaded
66     ghc-prof-options: -prof -auto-all
68     if flag(curl)
69        extra-libraries: curl
70        cpp-options: -DHAVE_CURL
71        cc-options: -DHAVE_CURL
72     else
73        build-depends: HTTP
74        cpp-options: -DHAVE_HTTP