summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViolet Purcell <vimproved@inventati.org>2023-11-13 12:42:45 -0500
committerSam James <sam@gentoo.org>2023-11-20 15:09:41 +0000
commitc420baf69d53267c8cf38f8b8df94ec6bf8a68ea (patch)
tree812931dff24920c595775d64e2f2bf21bfbb8a23 /dev-haskell
parentdev-python/ipython: Enable more flags on pypy3 (diff)
downloadgentoo-c420baf69d53267c8cf38f8b8df94ec6bf8a68ea.tar.gz
gentoo-c420baf69d53267c8cf38f8b8df94ec6bf8a68ea.tar.bz2
gentoo-c420baf69d53267c8cf38f8b8df94ec6bf8a68ea.zip
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 <hololeap@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/33919 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-haskell')
-rw-r--r--dev-haskell/foldl/files/foldl-1.4.15-cabal-doctest.patch6
1 files changed, 5 insertions, 1 deletions
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 6c554607eff5..a5fad758b449 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 )