commit:     6686dc7298afba5fc0a8daa6f6f97c400861e4b7
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 16 10:25:51 2017 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Thu Feb 16 10:26:39 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6686dc72

dev-haskell/constraints: bump up to 0.8

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-haskell/constraints/Manifest                   |  1 +
 dev-haskell/constraints/constraints-0.4.1.3.ebuild |  6 ++++-
 dev-haskell/constraints/constraints-0.8.ebuild     | 30 ++++++++++++++++++++++
 .../files/constraints-0.4.1.3-ghc-8.patch          | 17 ++++++++++++
 4 files changed, 53 insertions(+), 1 deletion(-)

diff --git a/dev-haskell/constraints/Manifest b/dev-haskell/constraints/Manifest
index d9a5a0e903..dccb0c0621 100644
--- a/dev-haskell/constraints/Manifest
+++ b/dev-haskell/constraints/Manifest
@@ -1 +1,2 @@
 DIST constraints-0.4.1.3.tar.gz 7311 SHA256 
dd4353b66c85980363050566a13d17ad0216f072a06f207cb8d36530ded67af0 SHA512 
0478c69be6a719b83d536aef7733d7383f5400a234829f49146597f89339d3aee46455f3f5001dfc213e07c116276699bf970a657051f3dddb8ab2d9f9593836
 WHIRLPOOL 
b780fa13817bf75ec0e7ec8e9df484a7447332b7dd61c2566ed7119256249a81757de80b1836648de00aca3e77d2a04580c35d51cc40405ad0f1a2611e13bad1
+DIST constraints-0.8.tar.gz 12348 SHA256 
4cd08765345a151f21a0a4c5ef0a85661f4e53ffe807a623d5502d9ed3ae1588 SHA512 
8cd6f16e70657f95f6d9b0824f85e5991d7da85852a1664abf8b99f95ab85456ecda09f3e59577019284358c09b198d298d01ff152acb3086121521ee302e665
 WHIRLPOOL 
2d51af561daf6f38a36b356fa2b8dd6fbf594343b4e0cccdb114c4f3d7d253547728535788d6c59c3de39e3e7175eaa84ab2b8358cbdc955b1784980503d0411

diff --git a/dev-haskell/constraints/constraints-0.4.1.3.ebuild 
b/dev-haskell/constraints/constraints-0.4.1.3.ebuild
index f268679a49..c645e3be92 100644
--- a/dev-haskell/constraints/constraints-0.4.1.3.ebuild
+++ b/dev-haskell/constraints/constraints-0.4.1.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -24,3 +24,7 @@ RDEPEND=">=dev-haskell/newtype-0.2:=[profile?] 
<dev-haskell/newtype-0.3:=[profil
 DEPEND="${RDEPEND}
        >=dev-haskell/cabal-1.10
 "
+
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-ghc-8.patch
+}

diff --git a/dev-haskell/constraints/constraints-0.8.ebuild 
b/dev-haskell/constraints/constraints-0.8.ebuild
new file mode 100644
index 0000000000..9794eb6938
--- /dev/null
+++ b/dev-haskell/constraints/constraints-0.8.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.7.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour"
+inherit haskell-cabal
+
+DESCRIPTION="Constraint manipulation"
+HOMEPAGE="https://github.com/ekmett/constraints/";
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-haskell/binary-0.7.3:=[profile?] 
<dev-haskell/binary-0.9:=[profile?]
+       >=dev-haskell/hashable-1.2:=[profile?] 
<dev-haskell/hashable-1.3:=[profile?]
+       >=dev-haskell/mtl-2:=[profile?] <dev-haskell/mtl-2.3:=[profile?]
+       >=dev-haskell/transformers-0.2:=[profile?] 
<dev-haskell/transformers-0.6:=[profile?]
+       >=dev-haskell/transformers-compat-0.4:=[profile?] 
<dev-haskell/transformers-compat-1:=[profile?]
+       >=dev-lang/ghc-7.8.2:=
+"
+DEPEND="${RDEPEND}
+       >=dev-haskell/cabal-1.18.1.3
+"

diff --git a/dev-haskell/constraints/files/constraints-0.4.1.3-ghc-8.patch 
b/dev-haskell/constraints/files/constraints-0.4.1.3-ghc-8.patch
new file mode 100644
index 0000000000..1b2f8169c4
--- /dev/null
+++ b/dev-haskell/constraints/files/constraints-0.4.1.3-ghc-8.patch
@@ -0,0 +1,17 @@
+diff --git a/Data/Constraint.hs b/Data/Constraint.hs
+index 84d67c0..a104f51 100644
+--- a/Data/Constraint.hs
++++ b/Data/Constraint.hs
+@@ -79,3 +79,7 @@ import Data.Data
+ #endif
++#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 707
++import GHC.Exts (Constraint)
++#else
+ import GHC.Prim (Constraint)
++#endif
+ 
+@@ -375,3 +379,3 @@ instance Class () (b :=> a) where cls = Sub Dict
+ instance Class b a => () :=> Class b a where ins = Sub Dict
+-instance (b :=> a) => () :=> b :=> a where ins = Sub Dict
++instance (b :=> a) => () :=> (b :=> a) where ins = Sub Dict
+ 

Reply via email to