1 |
commit: 2dc441dd028362e5463f8bdddabc73c73a46c388 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 14 22:59:58 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 14 23:00:04 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2dc441dd |
7 |
|
8 |
dev-haskell/biocore: tweak for ghc-8.8 |
9 |
|
10 |
Reported-by: Agostino Sarubbo |
11 |
Closes: https://bugs.gentoo.org/735860 |
12 |
Package-Manager: Portage-3.0.2, Repoman-2.3.23 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
dev-haskell/biocore/biocore-0.3.1.ebuild | 8 +++++-- |
16 |
.../biocore/files/biocore-0.3.1-ghc84.patch | 28 ++++++++++++++++++++++ |
17 |
2 files changed, 34 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/dev-haskell/biocore/biocore-0.3.1.ebuild b/dev-haskell/biocore/biocore-0.3.1.ebuild |
20 |
index a03f1244d73..54d16dfe8cd 100644 |
21 |
--- a/dev-haskell/biocore/biocore-0.3.1.ebuild |
22 |
+++ b/dev-haskell/biocore/biocore-0.3.1.ebuild |
23 |
@@ -1,7 +1,7 @@ |
24 |
# Copyright 1999-2020 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
-EAPI=5 |
28 |
+EAPI=6 |
29 |
|
30 |
# ebuild generated by hackport 0.3.3.9999 |
31 |
|
32 |
@@ -9,7 +9,7 @@ CABAL_FEATURES="lib profile haddock hoogle hscolour" |
33 |
inherit haskell-cabal |
34 |
|
35 |
DESCRIPTION="A bioinformatics library" |
36 |
-HOMEPAGE="https://hackage.haskell.org/package/biocore" |
37 |
+HOMEPAGE="http://hackage.haskell.org/package/biocore" |
38 |
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" |
39 |
|
40 |
LICENSE="LGPL-2.1" |
41 |
@@ -23,3 +23,7 @@ RDEPEND="dev-haskell/stringable:=[profile?] |
42 |
DEPEND="${RDEPEND} |
43 |
>=dev-haskell/cabal-1.6.0.3 |
44 |
" |
45 |
+ |
46 |
+PATCHES=( |
47 |
+ "${FILESDIR}"/${P}-ghc84.patch |
48 |
+) |
49 |
|
50 |
diff --git a/dev-haskell/biocore/files/biocore-0.3.1-ghc84.patch b/dev-haskell/biocore/files/biocore-0.3.1-ghc84.patch |
51 |
new file mode 100644 |
52 |
index 00000000000..b0a404eb8b4 |
53 |
--- /dev/null |
54 |
+++ b/dev-haskell/biocore/files/biocore-0.3.1-ghc84.patch |
55 |
@@ -0,0 +1,28 @@ |
56 |
+--- a/src/Bio/Core/Sequence.hs |
57 |
++++ b/src/Bio/Core/Sequence.hs |
58 |
+@@ -37,2 +37,3 @@ import Data.Stringable hiding (length) |
59 |
+ import Data.Monoid |
60 |
++import qualified Data.Semigroup as S |
61 |
+ |
62 |
+@@ -42,2 +43,5 @@ newtype SeqData = SeqData { unSD :: LC.ByteString } |
63 |
+ |
64 |
++instance S.Semigroup SeqData where |
65 |
++ (<>) (SeqData s1) (SeqData s2) = SeqData (mappend s1 s2) |
66 |
++ |
67 |
+ instance Monoid SeqData where |
68 |
+@@ -51,2 +55,9 @@ newtype SeqLabel = SeqLabel { unSL :: LC.ByteString } |
69 |
+ |
70 |
++instance S.Semigroup SeqLabel where |
71 |
++ (<>) (SeqLabel s1) (SeqLabel s2) = let |
72 |
++ (i1:r1) = LC.words s1 |
73 |
++ (i2:r2) = LC.words s2 |
74 |
++ sid = mconcat [i1,(LC.pack ":"),i2] |
75 |
++ in SeqLabel (LC.unwords ([sid]++r1++[LC.pack ":"]++r2)) |
76 |
++ |
77 |
+ instance Monoid SeqLabel where |
78 |
+@@ -68,2 +79,5 @@ newtype QualData = QualData { unQD :: L.ByteString } |
79 |
+ |
80 |
++instance S.Semigroup QualData where |
81 |
++ (<>) (QualData s1) (QualData s2) = QualData (mappend s1 s2) |
82 |
++ |
83 |
+ instance Monoid QualData where |