Wed Aug 5 17:26:53 CEST 2009 Petr Rockai <me@mornfall.net>
* Add script that tricks cabal into installing our build-depends only.
diff -rN -u -p old-mainline/contrib/install-deps.sh new-mainline/contrib/install-deps.sh
|
old
|
new
|
|
| | 1 | set -x |
| | 2 | cabal update || exit 1 |
| | 3 | cabal install "$@" -fdeps-only 2>&1 | tee install-deps.log |
| | 4 | # ensure that we got as far as attempting to configure darcs |
| | 5 | grep -iq "package darcs.* can't be built on this system." install-deps.log || exit 2 |
| | 6 | rm install-deps.log |
diff -rN -u -p old-mainline/darcs.cabal new-mainline/darcs.cabal
|
old
|
new
|
|
| 103 | 103 | flag hpc |
| 104 | 104 | default: False |
| 105 | 105 | |
| | 106 | flag deps-only |
| | 107 | default: False |
| | 108 | description: A cunning trick to have cabal install build dependencies |
| | 109 | |
| 106 | 110 | Executable witnesses |
| 107 | 111 | main-is: witnesses.hs |
| 108 | 112 | hs-source-dirs: src |
| … |
… |
|
| 342 | 346 | cpp-options: -DHAVE_HTTP |
| 343 | 347 | x-have-http: |
| 344 | 348 | |
| 345 | | if !flag(curl) && !flag(http) |
| | 349 | if (!flag(curl) && !flag(http)) || flag(deps-only) |
| 346 | 350 | buildable: False |
| 347 | 351 | |
| 348 | 352 | if flag(mmap) && !os(windows) |
| … |
… |
|
| 459 | 463 | cpp-options: -DHAVE_HTTP |
| 460 | 464 | x-have-http: |
| 461 | 465 | |
| 462 | | if !flag(curl) && !flag(http) |
| | 466 | if (!flag(curl) && !flag(http)) || flag(deps-only) |
| 463 | 467 | buildable: False |
| 464 | 468 | |
| 465 | 469 | if flag(mmap) && !os(windows) |