Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-haskell/patience/, dev-haskell/patience/files/
Date: Sat, 01 Aug 2020 08:08:54
Message-Id: 1596269082.4c07de34dcdecc569ca058108c408b0fe3bc7140.slyfox@gentoo
1 commit: 4c07de34dcdecc569ca058108c408b0fe3bc7140
2 Author: Jack Todaro <solpeth <AT> posteo <DOT> org>
3 AuthorDate: Sat Aug 1 05:38:09 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 1 08:04:42 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c07de34
7
8 dev-haskell/patience: patch for >=dev-lang/ghc-8.6
9
10 Package-Manager: Portage-3.0.1, Repoman-2.3.23
11 Signed-off-by: Jack Todaro <solpeth <AT> posteo.org>
12 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
13
14 .../patience/files/patience-0.1.1-ghc-8.6.patch | 20 +++++++++++++++++
15 dev-haskell/patience/patience-0.1.1-r1.ebuild | 26 ++++++++++++++++++++++
16 2 files changed, 46 insertions(+)
17
18 diff --git a/dev-haskell/patience/files/patience-0.1.1-ghc-8.6.patch b/dev-haskell/patience/files/patience-0.1.1-ghc-8.6.patch
19 new file mode 100644
20 index 00000000000..e844e1d9df5
21 --- /dev/null
22 +++ b/dev-haskell/patience/files/patience-0.1.1-ghc-8.6.patch
23 @@ -0,0 +1,20 @@
24 +diff -ru patience-0.1.1/Data/Algorithm/Patience.hs patience-modified/Data/Algorithm/Patience.hs
25 +--- patience-0.1.1/Data/Algorithm/Patience.hs 2011-08-17 08:08:14.000000000 +0800
26 ++++ patience-modified/Data/Algorithm/Patience.hs 2018-07-11 15:17:45.021338649 +0800
27 +@@ -15,6 +15,7 @@
28 + import Data.Sequence ( (<|), (|>), (><), ViewL(..), ViewR(..) )
29 + import qualified Data.Foldable as F
30 + import qualified Data.Map as M
31 ++import qualified Data.Map.Strict as MS
32 + import qualified Data.IntMap as IM
33 +
34 + import Data.List
35 +@@ -68,7 +69,7 @@
36 + -- Elements whose second component appears exactly once.
37 + unique :: (Ord t) => S.Seq (a,t) -> M.Map t a
38 + unique = M.mapMaybe id . F.foldr ins M.empty where
39 +- ins (a,x) = M.insertWith' (\_ _ -> Nothing) x (Just a)
40 ++ ins (a,x) = MS.insertWith (\_ _ -> Nothing) x (Just a)
41 +
42 + -- Given two sequences of numbered "lines", returns a list of points
43 + -- where unique lines match up.
44
45 diff --git a/dev-haskell/patience/patience-0.1.1-r1.ebuild b/dev-haskell/patience/patience-0.1.1-r1.ebuild
46 new file mode 100644
47 index 00000000000..54fcdd48641
48 --- /dev/null
49 +++ b/dev-haskell/patience/patience-0.1.1-r1.ebuild
50 @@ -0,0 +1,26 @@
51 +# Copyright 1999-2020 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=6
55 +
56 +# ebuild generated by hackport 0.3.6.9999
57 +
58 +CABAL_FEATURES="lib profile haddock hoogle hscolour"
59 +inherit haskell-cabal
60 +
61 +DESCRIPTION="Patience diff and longest increasing subsequence"
62 +HOMEPAGE="http://hackage.haskell.org/package/patience"
63 +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
64 +
65 +LICENSE="BSD"
66 +SLOT="0/${PV}"
67 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
68 +IUSE=""
69 +
70 +RDEPEND=">=dev-lang/ghc-7.4.1:=
71 +"
72 +DEPEND="${RDEPEND}
73 + >=dev-haskell/cabal-1.2
74 +"
75 +
76 +PATCHES=("${FILESDIR}"/${P}-ghc-8.6.patch)