From c420baf69d53267c8cf38f8b8df94ec6bf8a68ea Mon Sep 17 00:00:00 2001 From: Violet Purcell Date: Mon, 13 Nov 2023 12:42:45 -0500 Subject: [PATCH] dev-haskell/foldl: fix building without USE=test The recent cabal-doctest patch broke building without USE=test since MIN_VERSION_cabal_doctest will be undefined. Fix this by defining it at the top of Setup.hs if it's undefined Closes: https://bugs.gentoo.org/917624 Signed-off-by: hololeap Closes: https://github.com/gentoo/gentoo/pull/33919 Signed-off-by: Sam James --- dev-haskell/foldl/files/foldl-1.4.15-cabal-doctest.patch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-haskell/foldl/files/foldl-1.4.15-cabal-doctest.patch b/dev-haskell/foldl/files/foldl-1.4.15-cabal-doctest.patch index 6c554607eff53..a5fad758b4495 100644 --- a/dev-haskell/foldl/files/foldl-1.4.15-cabal-doctest.patch +++ b/dev-haskell/foldl/files/foldl-1.4.15-cabal-doctest.patch @@ -18,11 +18,15 @@ diff --git a/Setup.hs b/Setup.hs index 9a994af..f21ad76 100644 --- a/Setup.hs +++ b/Setup.hs -@@ -1,2 +1,19 @@ +@@ -1,2 +1,23 @@ +{-# LANGUAGE CPP #-} + +module Main (main) where + ++#ifndef MIN_VERSION_cabal_doctest ++#define MIN_VERSION_cabal_doctest(x,y,z) 0 ++#endif ++ +#if MIN_VERSION_cabal_doctest(1,0,0) + +import Distribution.Extra.Doctest ( defaultMainWithDoctests )