diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-02-06 13:49:56 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-02-06 13:49:56 -0800 |
commit | c0cb852265c334e8b432a97760446125b6d7060c (patch) | |
tree | 2e6caaa9937515801b255d9c545bee6c32c65da5 /pandoc.cabal | |
parent | 66ac842456b209d42e079dd6d631703f79d2e3b0 (diff) | |
download | pandoc-c0cb852265c334e8b432a97760446125b6d7060c.tar.gz |
cabal: Put build-depends for tests under conditional.
Otherwise even those who don't build with the tests flag need
to have dependencies like test-framework.
This restores the old behavior; I wrongly assumed that by now cabal
was smart enough not to bring in build-depends for components with
Buildable = False.
Diffstat (limited to 'pandoc.cabal')
-rw-r--r-- | pandoc.cabal | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/pandoc.cabal b/pandoc.cabal index 2fad328a2..362e9f404 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -391,30 +391,30 @@ Executable test-pandoc FlexibleInstances Hs-Source-Dirs: src -- END DUPLICATED SECTION - if impl(ghc >= 7) - cpp-options: -D_LIT=lit + if !flag(tests) + Buildable: False else - cpp-options: -D_LIT=$lit - if flag(tests) Buildable: True - else - Buildable: False - Other-Extensions: TemplateHaskell, QuasiQuotes - Build-Depends: Diff, test-framework >= 0.3 && < 0.6, - test-framework-hunit >= 0.2 && < 0.3, - test-framework-quickcheck2 >= 0.2.9 && < 0.3, - QuickCheck >= 2.4 && < 2.6, - HUnit >= 1.2 && < 1.3, - template-haskell >= 2.4 && < 2.8, - ansi-terminal == 0.5.* - Other-Modules: Tests.Old - Tests.Helpers - Tests.Arbitrary - Tests.Shared - Tests.Readers.LaTeX - Tests.Readers.Markdown - Tests.Readers.RST - Tests.Writers.Native - Tests.Writers.ConTeXt - Tests.Writers.HTML - Tests.Writers.Markdown + if impl(ghc >= 7) + cpp-options: -D_LIT=lit + else + cpp-options: -D_LIT=$lit + Other-Extensions: TemplateHaskell, QuasiQuotes + Build-Depends: Diff, test-framework >= 0.3 && < 0.6, + test-framework-hunit >= 0.2 && < 0.3, + test-framework-quickcheck2 >= 0.2.9 && < 0.3, + QuickCheck >= 2.4 && < 2.6, + HUnit >= 1.2 && < 1.3, + template-haskell >= 2.4 && < 2.8, + ansi-terminal == 0.5.* + Other-Modules: Tests.Old + Tests.Helpers + Tests.Arbitrary + Tests.Shared + Tests.Readers.LaTeX + Tests.Readers.Markdown + Tests.Readers.RST + Tests.Writers.Native + Tests.Writers.ConTeXt + Tests.Writers.HTML + Tests.Writers.Markdown |