summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhololeap <hololeap@users.noreply.github.com>2022-08-14 00:58:21 -0600
committerSam James <sam@gentoo.org>2022-08-21 03:21:45 +0100
commit42abe717b408760a4fc9dac98b7a5b35b3b24ffd (patch)
tree0655faa1b0da1a5335ee5b393230395d5d5c689a /dev-haskell/regex-tdfa
parentprofiles: Mask doctest-parallel (diff)
downloadgentoo-42abe717b408760a4fc9dac98b7a5b35b3b24ffd.tar.gz
gentoo-42abe717b408760a4fc9dac98b7a5b35b3b24ffd.tar.bz2
gentoo-42abe717b408760a4fc9dac98b7a5b35b3b24ffd.zip
dev-haskell/regex-tdfa: Disable doctests
doctest-parallel does not currently work with Setup.hs See: <https://github.com/martijnbastiaan/doctest-parallel/issues/45> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-haskell/regex-tdfa')
-rw-r--r--dev-haskell/regex-tdfa/files/regex-tdfa-1.3.2-disable-doctests.patch18
-rw-r--r--dev-haskell/regex-tdfa/regex-tdfa-1.3.2.ebuild9
2 files changed, 25 insertions, 2 deletions
diff --git a/dev-haskell/regex-tdfa/files/regex-tdfa-1.3.2-disable-doctests.patch b/dev-haskell/regex-tdfa/files/regex-tdfa-1.3.2-disable-doctests.patch
new file mode 100644
index 000000000000..c491fb877d05
--- /dev/null
+++ b/dev-haskell/regex-tdfa/files/regex-tdfa-1.3.2-disable-doctests.patch
@@ -0,0 +1,18 @@
+From: hololeap <hololeap@protonmail.com>
+Signed-off-by: hololeap <hololeap@protonmail.com>
+
+doctest-parallel does not currently work with Setup.hs
+
+See: <martijnbastiaan/doctest-parallel#45>
+
+diff -urN regex-tdfa-1.3.2/regex-tdfa.cabal regex-tdfa-1.3.2-r1/regex-tdfa.cabal
+--- regex-tdfa-1.3.2/regex-tdfa.cabal 2022-08-14 00:42:54.578227087 -0600
++++ regex-tdfa-1.3.2-r1/regex-tdfa.cabal 2022-08-14 00:43:17.428227098 -0600
+@@ -175,6 +175,7 @@
+ ghc-options: -O2
+
+ test-suite doc-test
++ buildable: False
+ type: exitcode-stdio-1.0
+ hs-source-dirs: test
+ main-is: DocTestMain.hs
diff --git a/dev-haskell/regex-tdfa/regex-tdfa-1.3.2.ebuild b/dev-haskell/regex-tdfa/regex-tdfa-1.3.2.ebuild
index c3aa4194136e..459e5d1880e4 100644
--- a/dev-haskell/regex-tdfa/regex-tdfa-1.3.2.ebuild
+++ b/dev-haskell/regex-tdfa/regex-tdfa-1.3.2.ebuild
@@ -16,13 +16,18 @@ LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~ppc64 ~x86"
+PATCHES=(
+ "${FILESDIR}/${PN}-1.3.2-disable-doctests.patch"
+)
+
RDEPEND=">=dev-haskell/regex-base-0.94:=[profile?] <dev-haskell/regex-base-0.95:=[profile?]
>=dev-lang/ghc-8.4.3:=
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-2.2.0.1
- test? ( >=dev-haskell/doctest-parallel-0.2.2
- >=dev-haskell/utf8-string-1.0.1 <dev-haskell/utf8-string-1.1 )
+ test? (
+ >=dev-haskell/utf8-string-1.0.1 <dev-haskell/utf8-string-1.1
+ )
"
src_configure() {