git.iko.soy/typeable/pandoc
on master help sign in
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.

commitc0cb852265c334e8b432a97760446125b6d7060c authorJohn MacFarlane <fiddlosopher@gmail.com> dateMon 6 Feb 2012, 13:49 (15 years ago) parent66ac842
1 file changed+25−25
pandoc.cabal+25−25
pandoc.cabal+25−25
@@ -391,30 +391,30 @@ Executable test-pandoc
391391 FlexibleInstances
392392 Hs-Source-Dirs: src
393393 -- END DUPLICATED SECTION
394− if impl(ghc >= 7)
395− cpp-options: -D_LIT=lit
394+ if !flag(tests)
395+ Buildable: False
396396 else
397− cpp-options: -D_LIT=$lit
398− if flag(tests)
399397 Buildable: True
400− else
401− Buildable: False
402− Other-Extensions: TemplateHaskell, QuasiQuotes
403− Build-Depends: Diff, test-framework >= 0.3 && < 0.6,
404− test-framework-hunit >= 0.2 && < 0.3,
405− test-framework-quickcheck2 >= 0.2.9 && < 0.3,
406− QuickCheck >= 2.4 && < 2.6,
407− HUnit >= 1.2 && < 1.3,
408− template-haskell >= 2.4 && < 2.8,
409− ansi-terminal == 0.5.*
410− Other-Modules: Tests.Old
411− Tests.Helpers
412− Tests.Arbitrary
413− Tests.Shared
414− Tests.Readers.LaTeX
415− Tests.Readers.Markdown
416− Tests.Readers.RST
417− Tests.Writers.Native
418− Tests.Writers.ConTeXt
419− Tests.Writers.HTML
420− Tests.Writers.Markdown
398+ if impl(ghc >= 7)
399+ cpp-options: -D_LIT=lit
400+ else
401+ cpp-options: -D_LIT=$lit
402+ Other-Extensions: TemplateHaskell, QuasiQuotes
403+ Build-Depends: Diff, test-framework >= 0.3 && < 0.6,
404+ test-framework-hunit >= 0.2 && < 0.3,
405+ test-framework-quickcheck2 >= 0.2.9 && < 0.3,
406+ QuickCheck >= 2.4 && < 2.6,
407+ HUnit >= 1.2 && < 1.3,
408+ template-haskell >= 2.4 && < 2.8,
409+ ansi-terminal == 0.5.*
410+ Other-Modules: Tests.Old
411+ Tests.Helpers
412+ Tests.Arbitrary
413+ Tests.Shared
414+ Tests.Readers.LaTeX
415+ Tests.Readers.Markdown
416+ Tests.Readers.RST
417+ Tests.Writers.Native
418+ Tests.Writers.ConTeXt
419+ Tests.Writers.HTML
420+ Tests.Writers.Markdown