1 |
commit: cc7132bd3ce1c2a4622c71e7585c0290a8ada077 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 4 21:20:17 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 4 21:20:17 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc7132bd |
7 |
|
8 |
dev-haskell/enumerator: tweak for ghc-8.8 |
9 |
|
10 |
Reported-by: Agostino Sarubbo |
11 |
Closes: https://bugs.gentoo.org/735866 |
12 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
dev-haskell/enumerator/enumerator-0.4.20.ebuild | 8 ++++++-- |
16 |
.../enumerator/files/enumerator-0.4.20-ghc84.patch | 21 +++++++++++++++++++++ |
17 |
2 files changed, 27 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/dev-haskell/enumerator/enumerator-0.4.20.ebuild b/dev-haskell/enumerator/enumerator-0.4.20.ebuild |
20 |
index 135477c4a95..c8d35ee60ce 100644 |
21 |
--- a/dev-haskell/enumerator/enumerator-0.4.20.ebuild |
22 |
+++ b/dev-haskell/enumerator/enumerator-0.4.20.ebuild |
23 |
@@ -1,7 +1,7 @@ |
24 |
-# Copyright 1999-2019 Gentoo Authors |
25 |
+# Copyright 1999-2020 Gentoo Authors |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
-EAPI=5 |
29 |
+EAPI=7 |
30 |
|
31 |
# ebuild generated by hackport 0.3.4.9999 |
32 |
|
33 |
@@ -24,3 +24,7 @@ RDEPEND=">=dev-haskell/text-0.7:=[profile?] |
34 |
DEPEND="${RDEPEND} |
35 |
>=dev-haskell/cabal-1.6.0.3 |
36 |
" |
37 |
+ |
38 |
+PATCHES=( |
39 |
+ "${FILESDIR}"/${P}-ghc84.patch |
40 |
+) |
41 |
|
42 |
diff --git a/dev-haskell/enumerator/files/enumerator-0.4.20-ghc84.patch b/dev-haskell/enumerator/files/enumerator-0.4.20-ghc84.patch |
43 |
new file mode 100644 |
44 |
index 00000000000..d992228d2e5 |
45 |
--- /dev/null |
46 |
+++ b/dev-haskell/enumerator/files/enumerator-0.4.20-ghc84.patch |
47 |
@@ -0,0 +1,21 @@ |
48 |
+--- a/enumerator.cabal |
49 |
++++ b/enumerator.cabal |
50 |
+@@ -152,2 +152,5 @@ library |
51 |
+ |
52 |
++ if !impl(ghc >= 8.0) |
53 |
++ build-depends: semigroups == 0.18.* |
54 |
++ |
55 |
+ exposed-modules: |
56 |
+--- a/lib/Data/Enumerator/Internal.hs |
57 |
++++ b/lib/Data/Enumerator/Internal.hs |
58 |
+@@ -50,2 +50,3 @@ import Data.Function (fix) |
59 |
+ import Data.Monoid (Monoid, mempty, mappend, mconcat) |
60 |
++import qualified Data.Semigroup as S |
61 |
+ |
62 |
+@@ -73,2 +74,6 @@ instance Monad Stream where |
63 |
+ |
64 |
++instance S.Semigroup (Stream a) where |
65 |
++ (<>) (Chunks xs) (Chunks ys) = Chunks (xs ++ ys) |
66 |
++ (<>) _ _ = EOF |
67 |
++ |
68 |
+ instance Monoid (Stream a) where |