Ticket #411: darcs-deps-only.diff

File darcs-deps-only.diff, 1.6 KB (added by mornfall, 4 years ago)
  • contrib/install-deps.sh

    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  
     1set -x 
     2cabal update || exit 1 
     3cabal install "$@" -fdeps-only 2>&1 | tee install-deps.log 
     4# ensure that we got as far as attempting to configure darcs 
     5grep -iq "package darcs.* can't be built on this system." install-deps.log || exit 2 
     6rm install-deps.log 
  • darcs.cabal

    diff -rN -u -p old-mainline/darcs.cabal new-mainline/darcs.cabal
    old new  
    103103flag hpc 
    104104  default:     False 
    105105 
     106flag deps-only 
     107  default:     False 
     108  description: A cunning trick to have cabal install build dependencies 
     109 
    106110Executable          witnesses 
    107111  main-is:          witnesses.hs 
    108112  hs-source-dirs:   src 
     
    342346      cpp-options:      -DHAVE_HTTP 
    343347      x-have-http: 
    344348 
    345   if !flag(curl) && !flag(http) 
     349  if (!flag(curl) && !flag(http)) || flag(deps-only) 
    346350      buildable: False 
    347351 
    348352  if flag(mmap) && !os(windows) 
     
    459463      cpp-options:      -DHAVE_HTTP 
    460464      x-have-http: 
    461465 
    462   if !flag(curl) && !flag(http) 
     466  if (!flag(curl) && !flag(http)) || flag(deps-only) 
    463467      buildable: False 
    464468 
    465469  if flag(mmap) && !os(windows)