commit:     6e2b2dd1d0e4d93b5e8e046f7d7ab2fc10392457
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Tue May 11 21:58:10 2021 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Tue May 11 21:58:32 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e2b2dd1

app-text/pandoc: add 'text' depend to 'trypandoc'

Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/785268
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 app-text/pandoc/files/pandoc-2.13-trypandoc.patch | 12 ++++++++++++
 app-text/pandoc/pandoc-2.13.ebuild                |  2 ++
 2 files changed, 14 insertions(+)

diff --git a/app-text/pandoc/files/pandoc-2.13-trypandoc.patch 
b/app-text/pandoc/files/pandoc-2.13-trypandoc.patch
new file mode 100644
index 00000000000..1a0dacce99b
--- /dev/null
+++ b/app-text/pandoc/files/pandoc-2.13-trypandoc.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/785268
+--- a/pandoc.cabal
++++ b/pandoc.cabal
+@@ -729,7 +729,7 @@ executable trypandoc
+   main-is:         trypandoc.hs
+   hs-source-dirs:  trypandoc
+   if flag(trypandoc)
+-    build-depends: aeson, http-types, wai >= 0.3, wai-extra >= 3.0.24
++    build-depends: aeson, http-types, wai >= 0.3, wai-extra >= 3.0.24, text
+     buildable:     True
+   else
+     buildable:     False

diff --git a/app-text/pandoc/pandoc-2.13.ebuild 
b/app-text/pandoc/pandoc-2.13.ebuild
index 72c73a65465..f0ae5e9a824 100644
--- a/app-text/pandoc/pandoc-2.13.ebuild
+++ b/app-text/pandoc/pandoc-2.13.ebuild
@@ -94,6 +94,8 @@ DEPEND="${RDEPEND}
                >=dev-haskell/tasty-quickcheck-0.8 
<dev-haskell/tasty-quickcheck-0.11 )
 "
 
+PATCHES=("${FILESDIR}"/${P}-trypandoc.patch)
+
 src_prepare() {
        default
        # optimisations require ~16GB of memory on ghc-8.8.3

Reply via email to